ubuntu启动菜单恢复

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x93b91ec3

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       10199    81923436    7  HPFS/NTFS
/dev/sda2           10200      182402  1383214678    f  W95 Ext'd (LBA)
/dev/sda5           10200       86689   614405893+   7  HPFS/NTFS
/dev/sda6           86690      163179   614405893+   7  HPFS/NTFS
/dev/sda7          163180      181416   146484224   83  Linux
/dev/sda8          181416      182402     7917568   82  Linux swap / Solaris

 

root@ubuntu:~# mkdir /media/ubuntu
root@ubuntu:~# mount /dev/sda7 /media/ubuntu/
root@ubuntu:~# grub-install --root-directory=/media/ubuntu /dev/sda
Installation finished. No error reported.

你可能感兴趣的:(ubuntu)