Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Dual-booting/GRUB help
New Posts  All Forums:Forum Nav:

Dual-booting/GRUB help

post #1 of 12
Thread Starter 
I'm trying to dual boot Debian and Windows 7. This is the output of sudo fdisk -l:

http://pastebin.com/B9xhfBTY

sdc1 is the Windows partition. sdb1 is Debian. sdb3 is NTFS storage. sda1 is NTFS storage.

I'm stuck in this loop where if I install GRUB2, the Windows BOOTMGR won't work. If I repair install Windows, GRUB2 won't work.

I've tried editing the menu.lst/Windows boot menu using EasyBCD but I can never get it right... I was wondering if someone could guide me through this or tell me what I'm doing wrong. Thanks OCN!
post #2 of 12
are you making sure to install grub to your mbr? when you install grub dont specify a partition, just specify your boot drive
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
post #3 of 12
Thread Starter 
Right, when I restore GRUB when Windows breaks it, I use:

sudo grub-install --root-directory=/media/UUIDHERE/dev/sdb

which installs it to the MBR.
post #4 of 12
Quote:
Originally Posted by Randallrocks View Post
Right, when I restore GRUB when Windows breaks it, I use:

sudo grub-install --root-directory=/media/UUIDHERE/dev/sdb

which installs it to the MBR.
it's:

sudo grub-install --root-directory=/media/UUIDXXX/ (SPACE!!!) /dev/sdb

OR #2

sudo grub-install /dev/sdb

If your in a LiveCD doing this, you can optionally do this (after #2)

sudo mkdir /mnt/whatever
sudo mount /dev/sdb1 /mnt/whatever (whatever has /boot, or if it is mounted replace mount path properly)
sudo grub-mkconfig -o /mount path/boot/grub/grub.cfg

That should fix everything you need.
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #5 of 12
Thread Starter 
Quote:
Originally Posted by mushroomboy View Post
it's:

sudo grub-install --root-directory=/media/UUIDXXX/ (SPACE!!!) /dev/sdb

OR #2

sudo grub-install /dev/sdb

If your in a LiveCD doing this, you can optionally do this (after #2)

sudo mkdir /mnt/whatever
sudo mount /dev/sdb1 /mnt/whatever (whatever has /boot, or if it is mounted replace mount path properly)
sudo grub-mkconfig -o /mount path/boot/grub/grub.cfg

That should fix everything you need.
lol, I know the space was there, just accidentally deleted it.

I don't understand what this does:

Code:
sudo mkdir /mnt/whatever
sudo mount /dev/sdb1 /mnt/whatever (whatever has /boot, or if it is mounted replace mount path properly)
sudo grub-mkconfig -o /mount path/boot/grub/grub.cfg
Mind explaining it?
post #6 of 12
Quote:
Originally Posted by Randallrocks View Post
lol, I know the space was there, just accidentally deleted it.

I don't understand what this does:

Code:
sudo mkdir /mnt/whatever
sudo mount /dev/sdb1 /mnt/whatever (whatever has /boot, or if it is mounted replace mount path properly)
sudo grub-mkconfig -o /mount path/boot/grub/grub.cfg
Mind explaining it?
just makes a new grub.cfg on a /boot partition of your choice
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
Kinda meh now...
(13 items)
 
  
CPUMotherboardGraphicsRAM
PhII 940 BE asus M4N82 Deluxe 2x 8800gts(g92) 2x 1g ocz ddr2 1066 
Hard DriveOptical DriveOSMonitor
/dev/sd[abc] /dev/sr0 WinXP/Linux 22in acer 
PowerCaseMouseMouse Pad
950w rosewill timebomb Antec 900 (2small) Voodoo Deathadder (RED!) X-Trac Pads Ripper XL 
  hide details  
Reply
post #7 of 12
Quote:
Originally Posted by EntTheGod View Post
just makes a new grub.cfg on a /boot partition of your choice
This! I just did that in case your grub.cfg wasn't working right, but if you HAD a working grub all you need is this:

grub-install /dev/sdb

That's it, that's all the installer runs when you install it from the CD/DVD. everything else is automatic as I believe it's using a chroot environment or something similar? I've never quite figured out how they get the installers run, as it's just a system running to install another system with scrips. Blah, doesn't matter, what matters is that's all you NEED. If your having problems look up the grub crap on the Ubuntu wiki as it's really good.
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
post #8 of 12
And which one of these drives do you have set as the boot drive in your BIOS?
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #9 of 12
Thread Starter 
Quote:
Originally Posted by error10 View Post
And which one of these drives do you have set as the boot drive in your BIOS?
sdb is set to boot.

Also, I'm not sure why I got instructions to install GRUB... I've got that worked out plenty.
post #10 of 12
Cause it sounded like you had an install problem? I don't see why, if you have them both installed correctly, that they can't work. Though I will say that if you use repair windows it will install on every MBR that it can, or at least it has issues when it comes to this. It has the bad habit of installing on the MBR of other discs. That's why when I install windows I always unplug my linux drives, just don't like fixin it.

If I were you, I would get each drive booting with all the other drives unplugged so you know you are getting the correct drive. THEN if you get errors I would report it.
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
Current Rig
(14 items)
 
  
CPUMotherboardGraphicsRAM
FX-8350 4.6GHz@1.44v GA-990FXA-UD3 R4.0 HD 7950 (1100/1450) 8G Muskin DDR3 1866@8CLS 
Hard DriveOptical DriveOSMonitor
1TB WD LiteOn DVD-RW DL Linux/Windows 19" Phillips TV 1080p 
PowerCaseMouseMouse Pad
OCZ 600W Generic Junk Logitech MX400 Generic Junk 
Audio
SBL 5.1 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Dual-booting/GRUB help