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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
/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
#(0) Arch Linux
title Arch Linux
kernel /boot/vmlinuz26 root=/dev/sda2 ro vga=795
#(1) Arch Linux
title Arch Backup
kernel /boot/vmlinuz26 root=/dev/sda2 ro vga=795
title Windows XP
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 05: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.