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 recently had my Red Hat 9.0 Linux box crash due to a power outage (before I bought a battery backup). It had a large drive (160GB) holding the OS, Samba, ProFTP and Apache.
I have rebuilt an other smaller drive (4.3GB) with the OS, Samba, ProFTP and Apache.
I want to mount the old drive to be able to access the files that I have stored on it.
I am getting a message stating that there is a duplicate partion and I am unable to mount it.
So the new drive is the primary master, and fstab automatically mounts the partitions listed within it, correct? If so, the original/old drive would then need to be a slave or secondary drive - where is it? Are you trying to mount any of its partitions to the same mountpoint as those on the (new) primary drive? Can you post a copy of your fstab? -- J.W.
RH uses partition labels for ID in the fstab file. Your getting an error because now you have multiple partitions with the same label.
You can use tune2fs to change the partition lablels. You can modify the fstab file and grub file to use the device id i..e /dev/hda for each partition instead of labels.
Is there a prefered order of commands or sequence of events that I should use?
Should I boot to a floopy first and change the labels on the 160GB drive first, or boot to the 4.3 GB drive as master and the 160Gb drive as slave to make the label changes?
Change the label=/ to /dev/hdex where x is the partition ID. If you do not know how the drive is partitioned then look at the output of
fdisk -l /dev/hde (that is a small L)
You need to be logged in as root. Also post the output of /etc/grub.conf.
I changed the volume label in /etc/fstab & /etc/grub.conf and rebooted with the 4.3 Gb drive as the master and the 160Gb drive as the slave (The 4.3Gb drive will boot fine as single drive).
I am still unable to mount the 160Gb drive because there it is still showing that there is a duplicate mount point label.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.