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.
Hi, I've been having a heck of a time with this, partially, I'm sure, to my poor understanding of Linux partitioning techniques.
I have WinXP installed, on a 120GB Sata drive... no problem.
Next, I've been able to install Redhat Enterprise Linux 4 AS and use GRUB to boot into either OS without a problem.
From here on, I have problems. If I install a 2nd RHEL then, I can boot into WinXP and the 2nd RHEL install but, I get errors when trying to boot the 1st RHEL install.
If I then install a 3rd RHEL then, I can boot into WinXP and the 3rd RHEL install but, get errors when trying to boot the 1st or 2nd RHEL install.
Hope that made sense...
So, it is my understanding that a hard drive can only have one "/" (root) mount point. But, during each RHEL install, I go into the Disk Druid screen, I am forced to make another partition have "/" as its mount point (RHEL AS requires "/" to install).
Sorry this is so long... can anybody pick up on what my problem is from this? I know that I have a lot to learn about the Linux filesystem/partitioning schems. So, I'm looking for help. If anyone can tell me where I'm going wrong here and hopefully give me an example of how I should be partitioning my drive, that would be REALLY COOL!
BTW, my current project requires this setup (1 winxp, 3 RHEL AS with GRUB as the bootloader so, LILO and other distros are not an option for me).
You sound like you're partitioning fine. One root partition for each RHEL install. I'm guess you went wrong when you installed the bootloaders.
The first time you install RHEL, you want to put grub into the MBR (and you also probably want a separate /boot partition, that way if you delete your RH install, you still can boot your other systems). The 2nd & 3rd time you install grub, you want to install it to the / partition for that install. Then you edit the first install's grub.conf (or menu.list, I forget which) to chainload the second grub, which will then boot the 2nd RHEL.
I think you are beginner to Linux OS,
There are lots of reading works to be followed before ending up in error.
Please follow up these links which might be helpful in understanding the Partitions and booting process http://tldp.org/HOWTO/Partition/index.html http://tldp.org/HOWTO/Installation-HOWTO/index.html
Please remember you cant just re-install linux as you have done in Win-XP.
Some tips on Linux partition
"/" is designation given to partition like /dev/hda1 or /dev/hda4 (Hope your partition is Primary Master HD) saying it is the root directory tree from where all other partitions or directories takes its root
So /usr designates as "usr" directory starting from root "/"
So /home designates as "home" directory starting from root "/"
IF possible read the file using the command cat /etc/fstab to find the enteries of partitions to different devices of your harddive
If to compare the XP with Linux , Linux works with only one "C:" : "/" drive that is no other root drives could be created like "D:" or "E:" where you can try all installations of XP and it makes its own Windows directory and enteries in boot.ini file found under the "C:" drive. So that you can boot into different XPs.
So ultimately Linux in a harddrive can make only one "/" directory
If you have another HD like Seconday Master , Slave or Primary Slave you can make another "/" directory in this and another installation.
which needs furhter reading for editing the Grub to point to second installation too.
So happy time with Linux.
Hope this has helped you
Ok, I just got a little more confused... and yes, I'm fairly new to Linux. I've had my laptop dual booted with WinXP and Slackware for a little over a year but, I've never installed more than one Linux distro on one hard drive before. Anyway...
One root partition for each RHEL install.
So ultimately Linux in a harddrive can make only one "/" directory
When I install a 2nd Redhat and have to specify a second "/" directory, I'm still not clear on things.
- I have WinXP installed on /dev/sda1 (Linux seems to view SATA drives as SCSI)
- I then start on RHEL install is this configuration ok?
--/dev/sda1 vfat (winxp) 20.0 GB
--/dev/sda2 /boot ext3 2.0 GB
--/dev/sda3 /home ext3 10.0 GB
---/dev/sda5 / ext3 2.0 GB
---/dev/sda6 swap 2.0 GB
You've done just fine. Now if you want to add a 2nd RHEL install, you would create partition /dev/sda7 and that would be / ext3 for the 2nd install.
Now the tricky part of the 2nd install is whether or not you want to reuse /home. Since all the installs are RHEL, you can probably just use the same /home partition for all the installs. If they were different distros, I wouldn't recommend that, but since they're all RHEL, I don't see a problem. Just be aware that if you make a change to some config file in /home, it will be made in all your installs.
The other option is to instead of /home, make a separate partition and mount it under all the installs to share just the documents. Then you can just let /home live in the / partition for each install. i.e. it would look more like this:
/dev/sda1 WinXP vfat 20.0 GB --> XP is more efficient with NTFS, you might convert it
/dev/sda2 /boot ext3 2.0 GB
/dev/sda3 /mnt/docs FAT32 10.0 GB --> your shared doc partition for all linux's and windows.
/dev/sda5 / ext3 6.0 GB --> RHEL install 1 (including /home)
/dev/sda6 swap swap 2.0 GB
/dev/sda7 / ext3 6.0 GB --> RHEL install 2 (including /home)
/dev/sda8 / ext3 6.0 GB --> RHEL install 3 (including /home)
Depending on what you want to install on your RHEL, I'm not sure if 2GB is enough for /... Usually I think you need around 4GB if you want Gnome and a bunch of programs installed.