Results 1 to 8 of 8
Hi,
I have a fresh Fedora 14 install on my system (/dev/sda), and decided to add an existing Windows 7 drive (/dev/sdb) for gaming. I installed grub on both drives. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-19-2011 #1Just Joined!
- Join Date
- Mar 2011
- Posts
- 4
[SOLVED] dual boot problem, Fedora and Windows 7
Hi,
I have a fresh Fedora 14 install on my system (/dev/sda), and decided to add an existing Windows 7 drive (/dev/sdb) for gaming. I installed grub on both drives. However, when I boot from sda, it goes straight to Fedora.
Thanks!Code:Here's a bit more information: Boot Info Script 0.55 dated February 15th, 2010 ============================= Boot Info Summary: ============================== => Grub 0.97 is installed in the MBR of /dev/sda and looks on boot drive #2 in partition #1 for /grub/stage2 and /grub/grub.conf. => Grub 0.97 is installed in the MBR of /dev/sdb and looks on the same drive in partition #1 for /grub/stage2 and /grub/grub.conf. sda1: _________________________________________________________________________ File system: ntfs Boot sector type: Windows Vista/7 Boot sector info: No errors found in the Boot Parameter Block. Operating System: Windows 7 Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe sdb1: _________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Boot files/dirs: /grub/menu.lst /grub/grub.conf sdb2: _________________________________________________________________________ File system: LVM2_member Boot sector type: - Boot sector info: vg_antec-lv_root: _________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Fedora release 14 (Laughlin) Kernel on an () Boot files/dirs: /etc/fstab vg_antec-lv_home: _________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Boot files/dirs: vg_antec-lv_swap: _________________________________________________________________________ File system: swap Boot sector type: - Boot sector info: =========================== Drive/Partition Info: ============================= Drive: sda ___________________ _____________________________________________________ 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 Partition Boot Start End Size Id System /dev/sda1 * 63 976,768,064 976,768,002 7 HPFS/NTFS Drive: sdb ___________________ _____________________________________________________ Disk /dev/sdb: 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 Partition Boot Start End Size Id System /dev/sdb1 * 2,048 1,026,047 1,024,000 83 Linux /dev/sdb2 1,026,048 976,773,119 975,747,072 8e Linux LVM blkid -c /dev/null: ____________________________________________________________ Device UUID TYPE LABEL /dev/mapper/vg_antec-lv_home 407816cf-b216-46f6-a5f5-b972fb298599 ext4 /dev/mapper/vg_antec-lv_root 763cd0fd-b09f-4909-826f-5558f9dd6725 ext4 _Fedora-14-x86_6 /dev/mapper/vg_antec-lv_swap 676b4a03-0710-45da-bf63-8e5d1a131342 swap /dev/sda1 0533C02F1D377638 ntfs /dev/sda: PTTYPE="dos" /dev/sdb1 2376ba09-e1f3-4e5f-a46b-a0202fbd7685 ext4 /dev/sdb2 rwJM20-o1Xr-OnAC-gKwm-m1Rz-d2Qe-xqgd3W LVM2_member /dev/sdb: PTTYPE="dos" =============================== "ls -R /dev/mapper/" output: =============================== /dev/mapper: control vg_antec-lv_home vg_antec-lv_root vg_antec-lv_swap ============================ "mount | grep ^/dev output: =========================== Device Mount_Point Type Options /dev/mapper/vg_antec-lv_root / ext4 (rw) /dev/sdb1 /boot ext4 (rw) /dev/mapper/vg_antec-lv_home /home ext4 (rw) ============================= sdb1/grub/grub.conf: ============================= # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/mapper/vg_antec-lv_root # initrd /initrd-[generic-]version.img #boot=/dev/sda default=0 timeout=0 splashimage=(hd1,0)/grub/splash.xpm.gz hiddenmenu title Fedora (2.6.35.11-83.fc14.x86_64) root (hd1,0) kernel /vmlinuz-2.6.35.11-83.fc14.x86_64 ro root=/dev/mapper/vg_antec-lv_root rd_LVM_LV=vg_antec/lv_root rd_LVM_LV=vg_antec/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=be-latin1 rhgb quiet nouveau.modeset=0 rdblacklist=nouveau initrd /initramfs-2.6.35.11-83.fc14.x86_64.img title Fedora (2.6.35.6-45.fc14.x86_64) root (hd1,0) kernel /vmlinuz-2.6.35.6-45.fc14.x86_64 ro root=/dev/mapper/vg_antec-lv_root rd_LVM_LV=vg_antec/lv_root rd_LVM_LV=vg_antec/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=be-latin1 rhgb quiet initrd /initramfs-2.6.35.6-45.fc14.x86_64.img =================== sdb1: Location of files loaded by Grub: =================== .0GB: grub/grub.conf .0GB: grub/menu.lst .0GB: grub/stage2 .0GB: initramfs-2.6.35.11-83.fc14.x86_64.img .0GB: initramfs-2.6.35.6-45.fc14.x86_64.img .0GB: initrd-plymouth.img .0GB: vmlinuz-2.6.35.11-83.fc14.x86_64 .0GB: vmlinuz-2.6.35.6-45.fc14.x86_64 ========================= vg_antec-lv_root/etc/fstab: ========================= # # /etc/fstab # Created by anaconda on Fri Mar 18 00:02:16 2011 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/mapper/vg_antec-lv_root / ext4 defaults 1 1 UUID=2376ba09-e1f3-4e5f-a46b-a0202fbd7685 /boot ext4 defaults 1 2 /dev/mapper/vg_antec-lv_home /home ext4 defaults 1 2 /dev/mapper/vg_antec-lv_swap swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 =============================== StdErr Messages: =============================== mdadm: No arrays found in config file or automatically
- 03-19-2011 #2
Hi and Welcome !
There is no need to install GRUB in Windows 7 Hard disk. Just plug-in Windows 7 Hard disk, boot up Fedora 14 and add following code at the end of /boot/grub/grub.conf file :
Reboot machine and check if Windows 7 boot up fine.Code:title Windows 7 root (hd1,0) map (hd0) (hd1) map (hd1) (hd0) chainload +1
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 03-19-2011 #3
Grub has its own updater mechanism.
All you should have to do is to type "sudo update-grub" in a terminal (or whatever Fedora super-user sudo-alternative that there is).
This command makes Grub examine all the hard drives and partitions for OSs, and add them to its list of things to show in the boot menu.
- 03-19-2011 #4Just Joined!
- Join Date
- Mar 2011
- Posts
- 4
I disconnected the Fedora drive and reinstalled Windows 7 to make sure I have a clean and working installation.
So now grub is installed in sdb which is also the drive I'm booting. I added the Windows 7 entry as described by devils casper.
When I boot now I first get a blinking cursor and then it boots directly into Fedora. There's no grub whatsoever...
Thanks!
Code:Boot Info Script 0.55 dated February 15th, 2010 ============================= Boot Info Summary: ============================== => Windows is installed in the MBR of /dev/sda => Grub 0.97 is installed in the MBR of /dev/sdb and looks on the same drive in partition #1 for /grub/stage2 and /grub/grub.conf. sda1: _________________________________________________________________________ File system: ntfs Boot sector type: Windows Vista/7 Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files/dirs: /bootmgr /Boot/BCD sda2: _________________________________________________________________________ File system: ntfs Boot sector type: Windows Vista/7 Boot sector info: No errors found in the Boot Parameter Block. Operating System: Windows 7 Boot files/dirs: /Windows/System32/winload.exe sdb1: _________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Boot files/dirs: /grub/menu.lst /grub/grub.conf sdb2: _________________________________________________________________________ File system: LVM2_member Boot sector type: - Boot sector info: vg_antec-lv_root: _________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Fedora release 14 (Laughlin) Kernel on an () Boot files/dirs: /etc/fstab vg_antec-lv_home: _________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Boot files/dirs: vg_antec-lv_swap: _________________________________________________________________________ File system: swap Boot sector type: - Boot sector info: =========================== Drive/Partition Info: ============================= Drive: sda ___________________ _____________________________________________________ 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 Partition Boot Start End Size Id System /dev/sda1 * 2,048 206,847 204,800 7 HPFS/NTFS /dev/sda2 206,848 976,771,071 976,564,224 7 HPFS/NTFS Drive: sdb ___________________ _____________________________________________________ Disk /dev/sdb: 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 Partition Boot Start End Size Id System /dev/sdb1 * 2,048 1,026,047 1,024,000 83 Linux /dev/sdb2 1,026,048 976,773,119 975,747,072 8e Linux LVM blkid -c /dev/null: ____________________________________________________________ Device UUID TYPE LABEL /dev/mapper/vg_antec-lv_home 407816cf-b216-46f6-a5f5-b972fb298599 ext4 /dev/mapper/vg_antec-lv_root 763cd0fd-b09f-4909-826f-5558f9dd6725 ext4 _Fedora-14-x86_6 /dev/mapper/vg_antec-lv_swap 676b4a03-0710-45da-bf63-8e5d1a131342 swap /dev/sda1 2C60356F603540BE ntfs System Reserved /dev/sda2 66703DFF703DD711 ntfs /dev/sda: PTTYPE="dos" /dev/sdb1 2376ba09-e1f3-4e5f-a46b-a0202fbd7685 ext4 /dev/sdb2 rwJM20-o1Xr-OnAC-gKwm-m1Rz-d2Qe-xqgd3W LVM2_member /dev/sdb: PTTYPE="dos" =============================== "ls -R /dev/mapper/" output: =============================== /dev/mapper: control vg_antec-lv_home vg_antec-lv_root vg_antec-lv_swap ============================ "mount | grep ^/dev output: =========================== Device Mount_Point Type Options /dev/mapper/vg_antec-lv_root / ext4 (rw) /dev/sdb1 /boot ext4 (rw) /dev/mapper/vg_antec-lv_home /home ext4 (rw) ============================= sdb1/grub/grub.conf: ============================= # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/mapper/vg_antec-lv_root # initrd /initrd-[generic-]version.img #boot=/dev/sda default=0 timeout=0 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Fedora (2.6.35.11-83.fc14.x86_64) root (hd0,0) kernel /vmlinuz-2.6.35.11-83.fc14.x86_64 ro root=/dev/mapper/vg_antec-lv_root rd_LVM_LV=vg_antec/lv_root rd_LVM_LV=vg_antec/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=be-latin1 rhgb quiet nouveau.modeset=0 rdblacklist=nouveau initrd /initramfs-2.6.35.11-83.fc14.x86_64.img title Fedora (2.6.35.6-45.fc14.x86_64) root (hd0,0) kernel /vmlinuz-2.6.35.6-45.fc14.x86_64 ro root=/dev/mapper/vg_antec-lv_root rd_LVM_LV=vg_antec/lv_root rd_LVM_LV=vg_antec/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=be-latin1 rhgb quiet initrd /initramfs-2.6.35.6-45.fc14.x86_64.img title Windows 7 root (hd1,0) map (hd0) (hd1) map (hd1) (hd0) chainload +1 =================== sdb1: Location of files loaded by Grub: =================== .0GB: grub/grub.conf .0GB: grub/menu.lst .0GB: grub/stage2 .0GB: initramfs-2.6.35.11-83.fc14.x86_64.img .0GB: initramfs-2.6.35.6-45.fc14.x86_64.img .0GB: initrd-plymouth.img .0GB: vmlinuz-2.6.35.11-83.fc14.x86_64 .0GB: vmlinuz-2.6.35.6-45.fc14.x86_64 ========================= vg_antec-lv_root/etc/fstab: ========================= # # /etc/fstab # Created by anaconda on Fri Mar 18 00:02:16 2011 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/mapper/vg_antec-lv_root / ext4 defaults 1 1 UUID=2376ba09-e1f3-4e5f-a46b-a0202fbd7685 /boot ext4 defaults 1 2 /dev/mapper/vg_antec-lv_home /home ext4 defaults 1 2 /dev/mapper/vg_antec-lv_swap swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 =============================== StdErr Messages: =============================== mdadm: No arrays found in config file or automatically
- 03-19-2011 #5Just Joined!
- Join Date
- Mar 2011
- Posts
- 4
I managed to get the grub menu by changing the timeout to 5. The Fedora entries work well, but when I select Windows the screen briefly goes black and then goes back to the grub menu.
Any thoughts?
- 03-20-2011 #6
hello there
the grub entry looks different here, although it's for XP:
title Microsoft Windows XP-SP3 Home
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1
there is an extra "er" in chainload(er)
root would be (hd1,0) for you
perhpas the words "makeactive" are crucial too
try it and see if it goes. hope it does and you have a great sunday
fenario
- 03-20-2011 #7Just Joined!
- Join Date
- Mar 2011
- Posts
- 4
Got it to work like this:
Thank you!Code:title Windows 7 rootnoverify (hd1,0) makeactive map (hd0) (hd1) map (hd1) (hd0) chainloader +1
- 03-20-2011 #8
There is no need to add makeactive option for Windows 7 unless you have disabled Hard disk. Are you that you edited grub.conf file correctly earlier?
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First



