944,116 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Nov 3rd, 2006
0

Important question about GRUB

Expand Post »
I had to install the GRUB boot loader to my MBS when I installed Debian 'etch'. This was because the Debian installer couldn't figure out that there was another operating system on the HDD. Now, however, I cannot boot my windows system.

I know that GRUB can be modified so it can boot Windows, even if it couldn't be found the first time. How would I go about doing this?

I have a compaq presario r3000, amd64, and I have 4 parts on my hdd:
C:\ - windows system drive - NTFS
D:\ - 20 GB disk for optional windows components and personal docs - NTFS
E:\ - 2 GB Swap Data for Debian
F:\ - root drive for Debian - Ext3 file system


any help is much appreciated, as always ^_^
Similar Threads
Reputation Points: 46
Solved Threads: 2
Posting Whiz in Training
FireSBurnsmuP is offline Offline
237 posts
since Sep 2006
Nov 3rd, 2006
0

Re: Important question about GRUB

can you post your grub.conf?
you should have something like this:
title=Windows XP
rootnoverify (hd0,1)
makeactive
chainloader +1
Last edited by sn4rf3r; Nov 3rd, 2006 at 1:09 pm.
Reputation Points: 10
Solved Threads: 2
Junior Poster
sn4rf3r is offline Offline
133 posts
since Sep 2006
Nov 7th, 2006
0

Re: Important question about GRUB

Well, this part I left alone:
title    Debian GNU/Linux, kernel 2.6.16-2-amd64-k8
root    (hd0,0)
kernel    /boot/vmlinuz-2.6.16-2-amd64-k8 root =/dev/
hda1 ro
initrd   /boot/initrd.img-2.6.16-2-amd64-k8
savedefault
boot

And this part I took out the single user mode (I don't use it) and replaced it with this:
title    Windows XP Home SP2
rootnoverify     (hd0,1)
makeactive
chainloader    +1

Will this work?
Reputation Points: 46
Solved Threads: 2
Posting Whiz in Training
FireSBurnsmuP is offline Offline
237 posts
since Sep 2006
Nov 7th, 2006
0

Re: Important question about GRUB

>Will this work?
Try it. :cheesy: (It should)
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006
Nov 8th, 2006
0

Re: Important question about GRUB

Well, this part I left alone:
Will this work?
The windows part will work but debian wont, i dont think. You didnt specify the partition for grub to use as the real root, i use sda3 so thats what I put (yours is probibly different). Also I leave out the root (hd0,0) part and just use it directly in the kernel line. Alsa you should be defining ro in /etc/fstab and not grub, IMHO, just makes things easier down the line if you need to mount the partition when you rebuild your kernel.

This is an example of what I would do, obviously change your video card settings accordingly. I also compile in framebuffer support into my kernels as well as terminal fonts, eyecandy is good =].
timeout 10
default 0 

title    Debian GNU/Linux, kernel 2.6.16-2-amd64-k8
kernel    (hd0,0)/vmlinuz-2.6.16-2-amd64-k8 root =/dev/sda3 video=vesafb:yrap,pimipal,1024x768-16@75
initrd  (hd0,0)/initrd.img-2.6.16-2-amd64-k8

title    Windows XP Home SP2
rootnoverify     (hd0,1)
makeactive
chainloader    +1
Last edited by sn4rf3r; Nov 8th, 2006 at 9:43 am.
Reputation Points: 10
Solved Threads: 2
Junior Poster
sn4rf3r is offline Offline
133 posts
since Sep 2006
Nov 10th, 2006
0

Re: Important question about GRUB

Well... Debian still works, but Windows will not. It doesn't matter what I numbers I put in (hd0,0) it still won't work. If I change the first number (which my professor told me was the partition number) it tells me that HDD doesn't exist, and if I change the second number it just cannot do it. I haven't gone through up to 5,6,7 on either, and I don't think I changed the first number more than 0,1,2.

Do I need to switch to LILO? Do I need to install something so GRUB can handle NTFS file systems? I don't know! I'm completely lost.

Gparted told me that the disk I want is a partition of a bigger partition(wtf?), and this was my distribution. (if it helps):

/dev/hda2/:
/dev/hda7/: Linux-Swap
/dev/hda5/: (Windows System Partition)
/dev/hda6/: (Windows Extraneous Files)
/dev/hda1/: Debian system root partition

PS and my GRUB doesn't use a grub.conf, it uses a menu.lst (I know, it's odd)
Last edited by FireSBurnsmuP; Nov 10th, 2006 at 12:45 am.
Reputation Points: 46
Solved Threads: 2
Posting Whiz in Training
FireSBurnsmuP is offline Offline
237 posts
since Sep 2006
Nov 10th, 2006
0

Re: Important question about GRUB

Gparted told me that the disk I want is a partition of a bigger partition
I think it was referring to Logical and Extended Partition(s).

Quote ...
/dev/hda2/:
/dev/hda7/: Linux-Swap
/dev/hda5/: (Windows System Partition)
/dev/hda6/: (Windows Extraneous Files)
/dev/hda1/: Debian system root partition
Well, since your Windows partition is at /dev/hda5, I would suggest setting the line in menu.lst to (hd4,0) or (hd5,0), and see what happens.

Personally, I think LILO is easier to setup, so that's what I use. GRUB is more popular because it has more features and most people don't have to set it up, anyway. But since GRUB is almost properly configured, it's worth trying to get it to boot Windows.
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006
Nov 13th, 2006
0

Re: Important question about GRUB

@joe: shouldnt it be (hd0,4) if iwinblows is on the first disk, fifth partition?
Reputation Points: 10
Solved Threads: 2
Junior Poster
sn4rf3r is offline Offline
133 posts
since Sep 2006
Nov 13th, 2006
0

Re: Important question about GRUB

Click to Expand / Collapse  Quote originally posted by sn4rf3r ...
@joe: shouldnt it be (hd0,4) if iwinblows is on the first disk, fifth partition?
Whoops, I was mixed up! It should be (hd0, 4) if you want to refer to the first disk, fifth partition.
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006
Nov 14th, 2006
0

Re: Important question about GRUB

ok. Well, I don't know what to say. I have tried to boot using every combination of the first ten digits in both sides of the comma. I never get a boot. What can ya do, huh? Seems like it just doesn't want to work. Do I have to specify the root=/........ next to anything? or should it be working? I just don't get it anymore...
Last edited by FireSBurnsmuP; Nov 14th, 2006 at 12:40 pm.
Reputation Points: 46
Solved Threads: 2
Posting Whiz in Training
FireSBurnsmuP is offline Offline
237 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Applications and Software Forum Timeline: rant! slooooow fedora downloads
Next Thread in Linux Applications and Software Forum Timeline: Gnome >> Kde





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC