start trac track uid too 处理 blog windows for
换了台本子win7 64位,抽空做个双系统,装了下linux。
遇到开机问题:进linux可以正常使用,进win7花屏死机,初步估计是grub(此时的boot sector位grub)的问题,启动器被破坏一种表现。
对应做了以下处理:
1、在linux下修改/boot/grub/gurb.cfg,把:
- ### BEGIN /etc/grub.d/30_os-prober ###
- menuentry ‘Windows 7 (loader) (on /dev/sda1)‘ --class windows --class os $menuentry_id_option ‘osprober-chain-04EC18F4EC18E22A‘ {
- insmod part_msdos
- insmod ntfs
- set root=‘hd0,msdos1‘
- if [ x$feature_platform_search_hint = xy ]; then
- search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 04EC18F4EC18E22A
- else
- search --no-floppy --fs-uuid --set=root 04EC18F4EC18E22A
- fi
- parttool ${root} hidden-
- chainloader +1
- }
- ...
- }
- ### END /etc/grub.d/30_os-prober ###
修改为:
1 1 fi
2 parttool ${root} hidden-
3 ntldr /bootmgr ### bootmgr启动器 ###
重定位启动位置。
而后重装grub,quote网上案例:
事先在bash做个update-grub
可以得到
win系统的硬盘所在位置
比如,win7 on /dev/sda1
而后
1 $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
可以看到win系统所在位置,起始位2048,end在206847,以及sector的信息 sectors of 1 * 512 = 512 bytes。
——》
- sudo grub-install /dev/sda
- sudo update-grub
- sudo dd if=/dev/sda of=/dev/sda bs=512 count=1 seek=2048 skip=206847
so on。
关于64位 windows&linux双系统引导问题
来源: http://www.bubuko.com/infodetail-2329473.html