下午,win7卡的不行,于是安装了一个ubuntu。
好久没有玩ubuntu了。分区的时候,偷懒。就分了两个一个交换,一个/。然后,安装启动器的时候,把它安装到了ubuntu的启动盘,怕以后重载Windows,丢失grub。
折腾了一会,感觉,ubuntu也没有快到那去。想回到Win7.
但是,在grub启动那,选择win7后,在此重启,又回到了grub开机那。
自己知道是grub那的问题。
网上百度 ,找到这个方法 ,无非是重新安装 grub
命令为:
$sudo fdisk -l
结果为:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0xc3ffc3ff
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 102402047 51097600 7 HPFS/NTFS/exFAT
/dev/sda3 102402048 266242047 81920000 7 HPFS/NTFS/exFAT
/dev/sda4 266244094 976771071 355263489 f W95 Ext'd (LBA)
/dev/sda5 266244096 362371071 48063488 7 HPFS/NTFS/exFAT
/dev/sda6 362373120 771971071 204798976 7 HPFS/NTFS/exFAT
/dev/sda7 771973120 772165631 96256 83 Linux
/dev/sda8 772167680 776165375 1998848 82 Linux swap / Solaris
/dev/sda9 776167424 912883711 68358144 83 Linux
/dev/sda10 912885760 976771071 31942656 83 Linux
解决方法为,
sudo grub-install /dev/sda
sudo update-grub
sudo dd if=/dev/sda of=/dev/sda bs=512 count=1 seek=2048 skip=206847
注意:对应上边磁盘的数据