Grub will not let me add Windows XP to menu.lst
I have two hard drives. The primary has 4 liunx partitions (3 ext3, 1 swap), the secondary has 1 ntfs. Here is my layout:
Code:
Disk /dev/hda: 200.0 GB, 200049647616 bytes I try to add my windows xp to my grub but it wont take. When i run update-grub it resets me menu.lst file and removes my windows stuff i put in. I am not totally dumb to this, I know my way around, and I can still boot into windows on boot by pressing "C" at grub to get the grub command line. I then type this stuff in: Code:
grub> rootnoverify (hd1,0) Here is my menu.lst file of what it wants to be: Code:
############################################################### Code:
## ## End Default Options ## I am so lost... I'd like to be able to boot into windows without having to type in the commands everytime.. Anyone know whats wrong?? I run Debian 3.1r0a Sarge. Thanks! |
Did you try just adding the entry to the file and not running update-grub? From this, it looks like it just generates the file with entries according to what images are in your /boot.
|
For what did you run update-grub
I don't have that command on my FC box And I don't need to do anything after edit the menu.lst file |
BillyGalbreath - I have added the code tags to your code so it doesn't break the tables.
|
I'll try this tonight - I was told to always run update-grub after I edit the menu.lst file...
From your link, Nylex: "After update-grub has been run for the first time, the user is required to edit the generated menu.lst. The user must set the two options update-grub uses. Then re-run the update-grub script to update the menu.lst file using the default's that have been set." And this is what I was taught also. You make your edits to the menu.lst file, then you have to pass the changes to the kernel by running update-grub. |
Quote:
The options you add in the menu.lst file will be given to the kernel while grub load your linux. Kernel take these options and boot up the way you want. update-grub is used to make the initial menu.lst file. It will find your kernel and creat an entry for that kernel. I do nothing but edit your menu.lst file. So if you have manually editted your menu.lst file, there were no need to run it. In FC4, I don't have the command but grub still work properly. I think you have know so much about grub. And that make you confuse. |
Only Lilo need an update after its /etc/lilo.conf has been edited, because checks the correctness of every entry.
Grub never needs an update. I use it to boot 100+ systems. I have Grub booting 3 Dos and 3 Windows there. I would be in a very shitty situation to learn that I need to run update-grub now! I got the feeling if you stop this "update-grub" thing once it may just work!!! |
update-grub is a deprecated command. I do not suggest using it.
Just add the position to your menu.lst It should look like this: title Windows XP rootnoverify (hd1,0) makeactive chainloader +1 That is all. |
All times are GMT -5. The time now is 05:54 PM. |