Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just recently tried to set up my first dual boot machine (single hdd) and I'm having a bit of difficulty. My ArchLinux distro boots up fine straight out of GRUB but the XP doesn't. I have Grub setup in root (which contains my /boot) and it does set the XP NTFS partition to bootable when I attempt to load windows but GRUB throws error 13 at me telling me it is an unrecognized or unbootable partition. The real hassel is after I attempt to boot XP and fail I have to use a rescue cd everytime to cfdisk and take off the bootflag from the NTFS and put it back on my root partition otherwise it just looks in the NTFS partition and can't find grub to boot into Arch or XP.
fdisk info:
/dev/sda1 is my NTFS windows partition
/dev/sda2 is my root/boot (with boot flag) partition
/dev/sda3 is my swap
/dev/sda4 is my /home
GRUB menu.lst
Code:
#(0) Arch Linux
title Arch Linux
root (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro vga=795
initrd /boot/kernel26.img
#(1) Arch Linux
title Arch Backup
root (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro vga=795
initrd /boot/kernel26-fallback.img
#(2) Windows
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
I typed the command you asked after I logged in and I guess it completed the CLI just gave me my next prompt. Is that suppose to be outputting some data to a text file somewhere? Sorry I'm really out of my element at the moment.
Also, to try and simplify the jumble up there, I had an XP installation on my system I shrank the partition down to around 70GB and moved it 10GB away from the start of the drive. I then installed Arch with the /root partition in the 10GB opening at the beginning of the disk. Grub was installed to the root partition so it should be at the beginning of the drive in the MBR. Fdisk shows the sda2 (my root) partition starting at 1 so I'm pretty sure that Grub is in the right place.
Thank you for the help so far sorry I couldn't get your command to work.
EDIT: Quick update I read through your command once more and I changed /dev/sda to /dev/sda2 in your if statement and it output grub, which is where I had planned it to install.
Last edited by RagingGoose; 09-03-2007 at 04:36 PM.
Since you can boot into Arch, I'm assuming that you put GRUB in the MBR and not the boot sector of the Arch partition. OR: Were you getting to Arch by setting the boot flag?
Normally, you want GRUB in the MBR, and the Windows partition marked active. Your menu.lst looks correct for that configuration. (except I think you need to add "boot" as the last line of the Windows entry
I followed your commands pixellany and installed Grub to the MBR and it did its thing no problem. I also added the "boot" to the last line of my Windows section. I still am able to load GRUB and boot into arch fine but GRUB gives me an error code 13 when I try to boot into the Win XP.
The bootflag is set for /dev/sda2 which is where I have Grub installed at as part of my ArchLinux /root partition. I don't have a seperate /boot partition it is included into the /dev/sda2 partition. I'm thinking maybe something is wrong with the partition that is holding my Win XP (sda1) or maybe I'm missing something in my Grub menu but I have cross checked it against several tutorials.
I just wanted to thank you both again for your time. If nothing comes to mind tonight I might just redo the installs tommarrow and maybe find a step I missed or something.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.