Home Blog pc-software restore Grub Kububtu12_04 LiveCD

restore Grub Kububtu12_04 LiveCD

Popis: How to restore / reinstall Grub, Kububtu12_04 bootfrom LiveCD, run Terminal, konsole and type
Klíčová slova:
Hits: 2265
Hodnocení uživatelů: / 0
NejhoršíNejlepší 
Blog - pc-software
Napsal uživatel Administrator   
Pondělí, 23 Září 2013 10:08

How to restore / reinstall Grub

Kububtu12_04 bootfrom LiveCD

run Terminal, konsole

kubuntu@kubuntu:~$ sudo fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000aeb5f

Device Boot Start End Blocks Id System
/dev/sda1 * 63 46797344 23398641 7 HPFS/NTFS/exFAT
/dev/sda2 46797345 234436544 93819600 5 Extended
/dev/sda5 * 46797408 71987264 12594928+ 83 Linux
/dev/sda6 71987328 80164349 4088511 82 Linux swap / Solaris
/dev/sda7 80164413 234436544 77136066 83 Linux

Disk /dev/sdb: 8027 MB, 8027897856 bytes
255 heads, 63 sectors/track, 976 cylinders, total 15679488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x01eba479

Device Boot Start End Blocks Id System
/dev/sdb1 63 15679487 7839712+ 7 HPFS/NTFS/exFAT

kubuntu@kubuntu:~$ sudo mount /dev/sda5 /mnt
kubuntu@kubuntu:~$ sudo mount /dev/sda5 /mnt/boot
kubuntu@kubuntu:~$ sudo mount --bind /dev /mnt/dev
kubuntu@kubuntu:~$ sudo chroot /mnt
root@kubuntu:/# grub-install /dev/sda

Installation finished. No error reported.