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 have one 80GB HDD and want to dual boot with Windows XP
I used Partition Magic to create an unallocated partition of 10GB.
I then used the installation program to make the linux partitions boot, swap and /
The linux boot partition exists after about 60GB of the hard disk. I know this will not let me boot into linux with a boot menu or whatever.
So i created a boot disk in the install program, I thought this would let me boot into Linux when I insert it
However all I get is the install menu again. From here I can eventually get to root. But this doesnt mean anything to me (I am a total noob). What I wanted was to be able to boot into linux with a GUI (which I installed as a package).
How can I load up the GUI from root?
And secondly, given that the linux boot parition isnt in the first few cylinders that its need to be in order to come up without a boot disk ( i did install LILO, but in a linux /boot parition which is much later than it should be) is there anyway I can get some sort of boot selection thing going?
Should I delete the installation and the partition, use Partition Magic move my WinXP partition about 100MB from the start and then re-install. This time puttting the linux /boot partition in that 1st 100MB, and the rest later on in the HDD after all my XP files.?
Don't worry about the location of the /boot partition. Just select "install boot loader to the master boot record" during the install process. The boot loader (lilo or grub) will then control booting and can be configured to allow you to select windows or linux during boot up. The /boot partition contains the linux kernel image and some other files used during boot.
I think redhat defaults to grub as the boot loader. I always use lilo, so I am not that familiar with grub. If you use lilo, you can install lilo to the master boot record without reinstalling linux. Just use your boot disk to get to root. You will need to edit the file: /etc/lilo.conf There is a line in the file starting with "boot=". Make sure it looks like:
The above will install to the master boot record of the master IDE drive (hda). If it is something like: boot=/dev/hda5, it will install to the hda5 partition (maybe your /boot partition?) Exit the text editor and issue the command "lilo" from a console and reboot without the boot disk. It should boot to linux.
How many hard drives do you have on your computer? It is strange that it is set to hde. For a typical computer with two hard drives and two IDE optical drives, the master hard drive will be hda, the slave hard drive will be hdb, the master optical drive will be hdc, the slave optical drive will be hdd. These are determined by your motherboard and how many drives are installed.
If you try to write to an optical drive, you will get the error above. Make sure you have the correct drive listed in lilo. Also, you can contnue to boot windows after ward, you just have to have a listing for windows in lilo like:
That means you can select WindowsXP as an option and boot to it when it is installed on the first partition of hda (hda1).
Before I installed I just resized the Windows XP partition so that there was 15GB unpartitioned.
I then ran the Red Hat CD ROM installer and let it make automatic partition settings so it setup the root, swap and boot automatically…
The drive is a Seagate 80GB connected via a SATA adaptor.
Maybe I should try boot=/dev/hd1 for the linux entry?
Or have you been thinking I’ve had 2 drives the whole time?
BTW, someone in some other forums said I should delete the installation and the partition, use Partition Magic move my WinXP partition about 20MB from the start and then re-install. This time puttting the linux /boot partition in that 1st 20MB, and the rest later on in the HDD after all my XP files
If you have grub loaded on boot as I think you have if you're a newbie then you need to do the following thing.
login as root
type "grub" (this will do some checking)
when you get into grub command line type in the following:
find /boot/grub/menu.list (this will tell you where the boot loader is)
the result will be like : (hd0,5) where hd0 is the harddisk and 5 is the number of the partition on that disk
root(hdx,y) (where x and y are the parameters you got from the last command find like root(hd0,1))
setup(hdx) (where x is the same as above)
This will install grub on the MBR (Master Boot Record) and thus made it available on your next boot.
Now reboot your computer and it should present you with a loader. Then you will see if you have both systems in that loader. If you do, then it is OK, if not you will have to play with the menu list of the boot loader GRUB.
At the up post there is a little error or maybe not, but I am not sure if the file you are looking for is /boot/grub/menu.list or /boot/grub/menu.lst so you better try both and you will see which one is the right one.
There is no need to move your windows partition or locate /boot near the beginning of the disk. In fact, you don't even need to have a separate /boot partition, RedHat just likes it that way. I normally have only two linux partitions, one for "/" the other for "/home" My /boot directory is inside my "/" partition and not placed on a separate partition and all is well. In addition, I have windows installed on a third partition and dual boot using lilo, so this should work. The thing I don't understand is why lilo is not writing to the master boot record as it should. I'm not sure how your boot disk works, but do you have to move root to the hard disk? I have fixed a messed up lilo.conf using a knoppix cd. I boot up and I am running as root from the cd, then type "chroot /mnt/hda5" where /mnt/hda5 is the linux partition so that I am now running as root on the hard drive and when I issue the lilo command, it is applied to the hard drive and not the cd drive. Sorry, I don't know redhat very well. Maybe someone else out there has better suggestions?
Sorry what I suggested didn't fix things. If you re-install, just make sure to select install to the MBR (I'm almost certain there is an option for that) and let the redhat installer handle the rest. Your situation (one hard drive dual booting) is very very common and you shouldn't have the issues you did.
Appreciate the help, I will be sure to let you know how it goes when I get home from work.
I think what stuffed me up was some people told me about that /boot thing has to be in the first part of the drive, and that I dont want to over-write the master boot record cause then I lose windows or something.
Total n00b Anyway will let you know how it goes
Edit: Just read some more on some other forums, and one guy mentioned this:
/dev/hda = your hard drive (assuming it's the primary master IDE device)
Since my one and only HDD is SATA, and not IDE, cause this be why the names of the partitions etc are all screwed up and it doesnt boot properly?