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 2 Maxtor hard drives installed in my PC. The PC is a 586
new standard AT type motherboard, nothing special. The bootable hard drive (primary master) has a new working installation of redhat 7.1. The second drive (primary slave) has
redhat 7.0 installed and working.
When the PC boots it does recognize in the standard PC screen that lists how many drives, ram, serial & parallel ports etc.
both drives are listed with the correct drive size, etc.
When the Master drive boots it lists hda for the primary drive
and hdb for the slave.
I cannot mount hdb and gain access from the command line to access directories and/or files.
Both drives in lilo.conf list boot=/dev/hda and the files are
So if command line access doesn't work maybe dual booting will.
thanks..............for some input.
How are you trying to mount hdb? Is there a line in your /etc/fstab file like;
/dev/hdb /mountpoint ext2 defaults 1 1
/mountpoint = Any directory you want to mount the drive to. You'll have to make the directory though, so assume you want to access hdb from a directory called /redhat-7.1, you need to mkdir redhat-7.1 and use that in fstab etc...
Using taz.devil's line caused linux to try to mount the whole drive hdb and it tried to do it automatically at startup. You need to specify the partition you want to mount. Let's say you want to mount the / partition of 7.0 and it's hdb1. You would enter at the command prompt mount -t ext2 /dev/hdb1 /mountpoint. The line in your fstab file would be:
/dev/hdb1 /mountpoint ext2 noauto,user 0 0
With this line in the fstab file, all you would have to enter would be mount /mountpoint. BTW, /mountpoint is the mountpoint you create to mount the partition. hdb1 is just a partition I selected as an example. You'll have to use the the one that indicates yours.
You're close. You just made one mistake. I guess I wasn't clear on you having to make a directory to mount the partition under. The / directory is not where you want to mount the partition. The /mountpoint was an example. Let's see if red hat created a directory named /mnt. Run ls / and see if there is a directory named /mnt. If there is, then run this command mkdir /mnt/rh7.0. This will create a directory named rh7.0 in the /mnt directory.If there is no /mnt, then run mkdir /rh7.0. This will create it in the / directory. Next, edit your fstab line.
/dev/hdb1 /mnt/rh7.0 ext2 noauto,user 0 0
/dev/hdb1 /rh7.0 ext2 noauto,user 0 0
Depending where you created the directory. Then you can mount the partition by running mount /mnt/rh7.0 or mount /rh7.0. Don't forget to unmount when you're done. And one other thing, if you cd onto the partition, don't forget to cd off of the partition before you try to unmount. Otherwise, it won't let you.
After you mount the partition, you are still in the same directory you were before you mounted the partition. You have to use the cd command to move onto the hdb1 partition. Like this:cd /mnt/rh7.0. You will now be in the root directory of the partition. Now, run ls and you will see the contents of the root directory. You should see bin, sbin, etc, root, home, and all the others that you would normally see when you are running rh7.0. When you are done using cd to move around the partition, run cd /. This will move you off the partition and allow to unmount it.
Hi linuxcool.........I re-checked everything from the last several postings. I confirm /dev/hdb1 /mnt/rh7.0 is mounted using
the mount command on the primary master drive.
Using cd /mnt/rh7.0 in am still on the Master hard drive, Not
the 2nd drive (slave) / location.
There is something about the path that isn't coming into the
picture, I would guess??
To make this work, must I do anything to the 2nd physical drive,
primary slave ??
Here are the contents of the Master / booted drive:
/mnt directory --
directory for cdrom, floppy and rh7.0
12 files like map, message,boot.b etc....
4 pointers I think, like kernel.h ->kernel.h-2.2.16 &
kernel.h ->2.4.0 etc.......
1 directory called lost+found with no contents.
I think I see the problem. hdb1 is not your / partition, it's your /boot partition. Either you or rh7.0 created a /boot partition. You need to find out what your / partition is. Run fdisk -l /dev/hdb and determine which partition is your / partition and then substitute the correct number into your fstab file.
Here is what fdisk says: 2nd hard drive (slave) rh7.0
Device Boot Start End ID System
/dev/hdb1 * 1 3 83 Linux
/dev/hdb2 4 1245 5 Extended
/dev/hdb5 4 554 83 Linux
/dev/hdb6 555 1105 83 Linux
/dev/hdb7 1106 1138 83 Linux
/dev/hdb8 1139 1171 83 Linux
/dev/hdb9 1172 1204 82 Linux Swap
I did try substituting /dev/hdb2...............I got the following
error msg: wrong fs type, bad option, bad option........cannot
mount logical partition.
I used the fdisk cmd on the booted Master drive. it showed
on 2 partitions /dev/hda1 & 2 - one way / and /swap.
I didn't know your slave drive had so many partitions. CyberSteve, I'm going to need you to boot up into rh 7.0 and then post a copy of rh 7.0's /etc/fstab file. It's the only way I'm going to be able to sort this out. BTW, did you partition the slave drive yourself?
You might be able to gain access to files on rh 7.0 by running rh 7.1 and then mounting the partitions from the terminal command line. Then you could use the file manager in X window to look for the files you want. We know that hdb1 is your /boot partition from the contents that you listed in one of your posts. Just run mount /dev/hdb? /mnt/rh7.0. Use the numbers 5, 6, 7, or 8 in place of the ' ? '. Don't forget to move off of the partition before you unmount. If you can find what's left of your fstab file, maybe you can reconstruct it.