LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chainloader = (hd 0,0)+1 (https://www.linuxquestions.org/questions/linux-newbie-8/chainloader-%3D-hd-0-0-1-a-404219/)

littleshark112 01-16-2006 07:08 PM

chainloader = (hd 0,0)+1
 
I have a serious issue. I installed Windows XP after a fresh (and much needed) format to my PC. I only have 1 hard drive, so I left 10 unused gigs on the end of the hard drive. I put Lycoris (recently bought by Mandriva) Linux on the end of this hard drive, and now I can't boot Windows. I went into Lycoris and added Windows XP (partition hd1, 100gb, just as big as it should be), and it is in fact the Windows partition on my hard drive, but when the boot loader comes up I get this error message.

chainloader = (hd 0,0)+1

I have not backed up any of my files, seeing as how I didn't think this would happen, so I would REALLY appreciate someones help on why the heck I get this error message when trying to boot into Windows. Lycoris boots just fine...help!!

pljvaldez 01-16-2006 07:11 PM

Can you post your grub configuration file?

mr_coffee 01-16-2006 07:13 PM

littleshark, i'm having the same problems, but I think your windows system is fine, your MBR sounds like its screwed though. The reason i can still load windows is becuase i have Linux on a totally different harddrive then windows. Here are directions if u have a boot disk for windows. http://www.microsoft.com/resources/d...d_tro_ldau.asp

i'm sure linux guru's have a way to fix it as well with Linux. Goodluck.

ylts 01-16-2006 07:33 PM

My grub line for Windows:

title Win
rootnoverify (hd0,0)
chainloader +1

It works correctly since i have windows on my primary hd first partition, if you have same you can copy-paste it into your /boot/grub/grub.conf

pljvaldez 01-16-2006 07:35 PM

It's not that the MBR is screwed, it's just that the linux boot loader is installed there instead of the windows boot loader. The problem is in your /etc/grub.conf file. What you have to do is edit the config file so that grub boots the windows boot loader which then boots windows. It's called chainloading.

the windows xp section of your grub.conf file should look something like ylts assuming windows xp is on the first partition of the first hard drive:

kevner 01-16-2006 07:36 PM

this is what i have....
 
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1


you might try that, the savedefault, makeactive part.

littleshark112 01-16-2006 10:37 PM

Thanks guys,

K, here's the deal. Of course, Lycoris has to do it's grub boot loader a different way...I'll paste it for you though! But I don't see any "chainloader" anywhere on here. In /etc/grub.conf the file simple says:


root (hd0,1)
install /boot/grub/stage1 (hd0,1) /boot/grub/stage2 0x8000 (hd0,1)/boot/grub/menu.lst
install /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,1)/boot/grub/menu.lst
quit


So after looking this over, I assumed it was calling to that /boot/grub/menu.lst file, so here's the contents of that file as well:


#
# /boot/grub/menu.lst - generated by Lizard
#
# options
timeout = 5
splashimage = (hd0,1)/boot/grub/boot_splash_16_indexed.xpm.gz

default = 2

title = Lycoris Desktop/LX
root = (hd0,1)
kernel = /boot/vmlinuz-pc97-2.4.27-modular vga=788 quiet splash=silent root=/dev/hda2

title = Xandros Linux
chainloader = (hd0,5)+1

title = Windows XP
chainloader = (hd0,0)+1


So as you may be able to notice, I really have three things on my computer--Windows XP, Xandros Desktop, and Lycoris Desktop/LX. Keep in mind, NOTHING will load except Lycoris. If it helps any, Lycoris is on hda2, XP is on hda1, and Xandros is on hda6 of my partition. Yes, and my favorite part about all this is if I try to make a change to this boot list/config file it gives me a lovely "Sorry, cannot write" error message. So on top of that fact that I'm still a little sketchy on what to change, it won't let me...do you know how to fix that problem? Sorry for all the trouble, really hope you can help though!!

--Alex

PipeDreams 01-16-2006 10:47 PM

I have several distros and xp installed using GRUB to boot.
Change your xp entry to this:
title windows
root (hd0,0)
chainloader +1

Works for me :)

I'm sorry.I just noticed the "="s in your grub file.You may have to add them for it to work correctly.I would try without anyway.Its less typing .None of my distros grub versions have used the = .

littleshark112 01-16-2006 11:14 PM

Thanks...almost! It changed at least. But I now get an "Wrong File System Format" or something like that. What's that all about?

gherb 01-16-2006 11:18 PM

Quote:

Originally Posted by littleshark112
Thanks guys,

K, here's the deal. Of course, Lycoris has to do it's grub boot loader a different way...I'll paste it for you though! But I don't see any "chainloader" anywhere on here. In /etc/grub.conf the file simple says:


root (hd0,1)
install /boot/grub/stage1 (hd0,1) /boot/grub/stage2 0x8000 (hd0,1)/boot/grub/menu.lst
install /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 (hd0,1)/boot/grub/menu.lst
quit


So after looking this over, I assumed it was calling to that /boot/grub/menu.lst file, so here's the contents of that file as well:


#
# /boot/grub/menu.lst - generated by Lizard
#
# options
timeout = 5
splashimage = (hd0,1)/boot/grub/boot_splash_16_indexed.xpm.gz

default = 2

title = Lycoris Desktop/LX
root = (hd0,1)
kernel = /boot/vmlinuz-pc97-2.4.27-modular vga=788 quiet splash=silent root=/dev/hda2

title = Xandros Linux
chainloader = (hd0,5)+1

title = Windows XP
chainloader = (hd0,0)+1


So as you may be able to notice, I really have three things on my computer--Windows XP, Xandros Desktop, and Lycoris Desktop/LX. Keep in mind, NOTHING will load except Lycoris. If it helps any, Lycoris is on hda2, XP is on hda1, and Xandros is on hda6 of my partition. Yes, and my favorite part about all this is if I try to make a change to this boot list/config file it gives me a lovely "Sorry, cannot write" error message. So on top of that fact that I'm still a little sketchy on what to change, it won't let me...do you know how to fix that problem? Sorry for all the trouble, really hope you can help though!!

--Alex

I'm a newbie, and I could be off base, but I just edited my GRUB menu.lst file in text editor without a problem. I saved my original "menu.lst" as menu.orig as a backup. I was in root, if that makes a difference.

It sounds like a simple syntactical error in that file, and you may need to reintall your windows mbr as mentioned by others above.

Here's the link to the thread where I resolved my menu.lst file problem.

http://www.linuxquestions.org/questi...=403311&page=2

syg00 01-16-2006 11:34 PM

Quote:

Originally Posted by littleshark112
Thanks...almost! It changed at least. But I now get an "Wrong File System Format" or something like that. What's that all about?

Try "rootnoverify (hd0,0)"

littleshark112 01-17-2006 11:11 AM

Tried that...still no luck! And after rewriting my MBR using the XP disk, I now cannot even get to the GRUB boot screen, so I no longer can boot any operating system. My computer hangs after "Verifying DMI Pool". Next suggestion please?

pljvaldez 01-17-2006 01:53 PM

Try booting knoppix live CD and try this to restore grub:

sudo chroot /mnt/hda6 grub-install /dev/hda or leave off the sudo and just do this from a root terminal.

Your Lycoris CD may also have a rescue mode that would allow you to do this, but I don't really know much about Lycoris.

johndoe0028 01-17-2006 06:44 PM

I dual-booted Arch and Win2k a while ago.

Here was the windows portion of my /boot/grub/menu.lst file

# (1) Windows
title Windows 2000
root (hd0,0)
rootnoverify (hd0,0)
makeactive
chainloader +1


Substitute correct vaules for title, and root.

DeconFrost7 09-06-2006 04:01 AM

Quote:

Originally Posted by littleshark112
Tried that...still no luck! And after rewriting my MBR using the XP disk, I now cannot even get to the GRUB boot screen, so I no longer can boot any operating system. My computer hangs after "Verifying DMI Pool". Next suggestion please?

YOU ARE A DUMB ASS... - sadly, yes. High and mighty in your thinking but stupid as they come. As I always say, think before you leap.


All times are GMT -5. The time now is 08:55 PM.