Here's mine, from my how-to:
]]]]]]]]]]]]]]]]]]]]]
Quick version:
Assume the broken partition is /dev/sdxy.
Assume the ESP is sda1 (usually mounted at /boot/efi).
For BIOS systems: Omit the ESP: mount /dev/sda1 /boot/efi; umount /dev/sda1 /boot/efi
]]]]]]]]]]]]]]]]]]]]]
From live Kubuntu DVD/USB, and by chrooting, it is short and sweet.
]]]]]]]]]]]]]]]]]]]]]
Quick version:
Assume the broken partition is /dev/sdxy.
Assume the ESP is sda1 (usually mounted at /boot/efi).
For BIOS systems: Omit the ESP: mount /dev/sda1 /boot/efi; umount /dev/sda1 /boot/efi
Code:
kubuntu@kubuntu:~$ sudo mkdir /mnt/sdxy kubuntu@kubuntu:~$ sudo mount /dev/sdxy /mnt/sdxy kubuntu@kubuntu:~$ sudo mount --rbind /dev /mnt/sdxy/dev kubuntu@kubuntu:~$ sudo mount --rbind /sys /mnt/sdxy/sys kubuntu@kubuntu:~$ sudo mount --rbind /run /mnt/sdxy/run kubuntu@kubuntu:~$ sudo mount --rbind /proc /mnt/sdxy/proc kubuntu@kubuntu:~$ sudo chroot /mnt/sdxy root@kubuntu:/# mount /dev/sda1 /boot/efi root@kubuntu:/# [B]grub-install[/B] Installing for x86_64-efi platform...Installation finished. No error reported. root@kubuntu:/# [B]update-grub[/B] Generating grub configuration file ...etc ...done root@kubuntu:/# umount /dev/sda1 /boot/efi root@kubuntu:/# exit exit kubuntu@kubuntu:~$ sudo umount /proc /mnt/sdxy/proc kubuntu@kubuntu:~$ sudo umount /dev /mnt/sdxy/dev kubuntu@kubuntu:~$ sudo umount /sys /mnt/sdxy/sys kubuntu@kubuntu:~$ sudo umount /dev /mnt/sdxy/dev kubuntu@kubuntu:~$ sudo umount /dev/sdxy /mnt/sdxy kubuntu@kubuntu:~$ exit
From live Kubuntu DVD/USB, and by chrooting, it is short and sweet.
Comment