LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-21-2004, 06:47 PM   #1
rridler
Member
 
Registered: Apr 2004
Location: N. Kentucky
Distribution: Fedora 13 and Fedora 14
Posts: 46

Rep: Reputation: 15
Mounting duplicate Linux partitions


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.

What can I do?

Ridler
 
Old 04-22-2004, 03:22 AM   #2
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
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.
 
Old 04-22-2004, 07:35 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,923

Rep: Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824
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.
 
Old 04-22-2004, 04:01 PM   #4
rridler
Member
 
Registered: Apr 2004
Location: N. Kentucky
Distribution: Fedora 13 and Fedora 14
Posts: 46

Original Poster
Rep: Reputation: 15
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?

Any suggestions?

Ridler
 
Old 04-22-2004, 05:03 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,923

Rep: Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824
I would boot the installer CD to rescue mode but since I do not run Redhat someone else might have a better idea.
 
Old 04-28-2004, 08:20 PM   #6
rridler
Member
 
Registered: Apr 2004
Location: N. Kentucky
Distribution: Fedora 13 and Fedora 14
Posts: 46

Original Poster
Rep: Reputation: 15
Here is a copy of my FSTAB file.
Any suggestion of how to reconfigure it would be of great help.

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hde3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

Ridler
 
Old 04-28-2004, 08:29 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,923

Rep: Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824Reputation: 1824
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.
 
Old 04-28-2004, 10:28 PM   #8
rridler
Member
 
Registered: Apr 2004
Location: N. Kentucky
Distribution: Fedora 13 and Fedora 14
Posts: 46

Original Poster
Rep: Reputation: 15
Why is "/etc/grub.conf" highlighted?

Ridler
 
Old 04-29-2004, 06:22 PM   #9
rridler
Member
 
Registered: Apr 2004
Location: N. Kentucky
Distribution: Fedora 13 and Fedora 14
Posts: 46

Original Poster
Rep: Reputation: 15
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.

What am I doing wrong?

Ridler

Last edited by rridler; 05-03-2004 at 02:27 PM.
 
Old 05-03-2004, 02:24 PM   #10
rridler
Member
 
Registered: Apr 2004
Location: N. Kentucky
Distribution: Fedora 13 and Fedora 14
Posts: 46

Original Poster
Rep: Reputation: 15
Can any one help me out?
There are files that I need to have access too.

Ridler
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Stil mounting problem in linux to windows partitions prince_linux Red Hat 3 11-03-2005 06:28 AM
Mounting partitions Berticus Linux - Newbie 5 10-04-2005 12:03 AM
absolute noob about linux, need gaim & mounting of windows partitions bono_head Linux - Software 9 09-29-2005 08:53 AM
mounting partitions Niflheim Linux - Newbie 3 01-25-2005 10:10 PM
Mounting Partitions? nez Linux - Newbie 5 05-26-2004 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration