【已解决】【求助】请问双硬盘,双系统怎么启动windows
Tofloor
poster avatar
owen19
deepin
2017-12-13 04:19
Author
本帖最后由 owen19 于 2017-12-13 13:29 编辑

我的情况比较特殊,Acer4741g笔记本本身不支持uefi gtp,但是我将光驱位的硬盘搞成gtp了,在其上安装了windows 7(WinPE安装的),请问怎么启动?
  1. owen@owen-PC:~$ sudo fdisk -l
  2. [sudo] owen 的密码:
  3. Disk /dev/sdb: 465.8 GiB, 500107862016 bytes, 976773168 sectors
  4. Units: sectors of 1 * 512 = 512 bytes
  5. Sector size (logical/physical): 512 bytes / 4096 bytes
  6. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  7. Disklabel type: gpt
  8. Disk identifier: 5661F48C-8094-4E6B-8D9E-B2BC2B5A5924

  9. Device         Start       End   Sectors  Size Type
  10. /dev/sdb1         34    262177    262144  128M Microsoft reserved
  11. /dev/sdb2     262184  63176743  62914560   30G Microsoft basic data
  12. /dev/sdb3   63176744 419694591 356517848  170G Microsoft basic data
  13. /dev/sdb4  419694592 839124991 419430400  200G Microsoft basic data
  14. /dev/sdb5  839124992 976773119 137648128 65.7G Microsoft basic data

  15. Partition 1 does not start on physical sector boundary.


  16. Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
  17. Units: sectors of 1 * 512 = 512 bytes
  18. Sector size (logical/physical): 512 bytes / 512 bytes
  19. I/O size (minimum/optimal): 512 bytes / 512 bytes
  20. Disklabel type: dos
  21. Disk identifier: 0xe5abdebd

  22. Device     Boot    Start       End   Sectors  Size Id Type
  23. /dev/sda1           2048   8390655   8388608    4G 82 Linux swap / Solaris
  24. /dev/sda2        8390656  71305215  62914560   30G 83 Linux
  25. /dev/sda3  *    71305216 234440703 163135488 77.8G 83 Linux
Copy the Code


Windows是安装在了/dev/sdb2上,请大神帮帮忙啊~~~~~~
Reply Favorite View the author
All Replies
avatar
RedPanda
deepin
2017-12-13 06:12
#1
重装下系统吧,这是最简单的解决方式了。看你目前情况是grub引导的,但是grub引导文件要写入一些信息才能引导到另外一个硬盘上启动。我之前研究过,但没太看懂怎么写入。
Reply View the author
avatar
owen19
deepin
2017-12-13 21:27
#2
本帖最后由 owen19 于 2017-12-13 13:28 编辑

自己百度反复尝试终于搞定了
首先将gtp转换为mbr(用DG)

然后添加启动项如下
1>  grub4dos的情况
  1. title Boot up Windows if installed
  2.   map (hd0) (hd1)
  3.   map --hook
  4.   errorcheck off
  5.   find --set-root --ignore-floppies --ignore-cd  /bootmgr
  6.   chainloader /bootmgr
  7.   find --set-root --ignore-floppies --ignore-cd  /ntldr
  8.   chainloader /ntldr
  9.   find --set-root --ignore-floppies --ignore-cd   /io.sys
  10.   chainloader /io.sys
  11.   errorcheck on
Copy the Code


2> grub2的情况
  1. menuentry "Windows 7" {
  2.     insmod chain
  3.     insmod ntfs
  4.     search --no-floppy --set=root  -f /bootmgr
  5.     drivemap -s (hd0) ${root}
  6.     chainloader +1
  7.     boot
  8.     search --no-floppy --set=root  -f /ntldr
  9.     drivemap -s (hd0) ${root}
  10.     chainloader +1
  11.     boot
  12.     search --no-floppy --set=root  -f /io.sys
  13.     drivemap -s (hd0) ${root}
  14.     chainloader +1
  15.     boot
  16. }
Copy the Code



Reply View the author