LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-07-2005, 11:31 PM   #1
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Rep: Reputation: 15
accessing 2nd hard drive in fc3


I need help learning how to access the second hard drive on my fc3 machine. The machine has two hard drives, hda (30 GB) and hdb (6448 MB). I have reproduced the output from fdisk -l below:

[root@localhost dev]# /sbin/fdisk -l

Disk /dev/hda: 30.0 GB, 30020272128 bytes
16 heads, 63 sectors/track, 58168 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 203 102280+ 83 Linux
/dev/hda2 204 58168 29214360 8e Linux LVM

Disk /dev/hdb: 6448 MB, 6448619520 bytes
255 heads, 63 sectors/track, 784 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 784 6193057+ 8e Linux LVM


Originally, I had installed fc3 on the smaller hard drive (6448 MB) but quickly ran out of room. Then I installed the 30 GB drive, and re-installed fc3 onto it.

I had hoped to transfer over some files from the hdb drive to the hda drive. The problem is, I cannot mount it. When I try to use the mount -t ext3 /dev/hdb2 /dev/fc3-old I receive the following error message: [root@localhost dev]# mount -t ext3 /dev/hdb2 /mnt/oldfc3
mount: /dev/hdb2 already mounted or /mnt/oldfc3 busy


Can anyone help me learn what I am doing wrong?

I have also reproduced my /etc/fstab file in case that offers any clues as to what is going on.

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup01/LogVol00 / 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/VolGroup01/LogVol01 swap swap defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hda2 /mnt/fc3-old ext3 defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,fscontext=system_ubject_r:removable_t,ro,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,fscontext=system_ubject_r:removable_t,exec,noauto,managed 0 0
 
Old 03-07-2005, 11:35 PM   #2
ksgill
Senior Member
 
Registered: Apr 2003
Location: Toronto, Canada
Distribution: Ubuntu Jaunty (9.04)
Posts: 1,044

Rep: Reputation: 45
It is not present in /etc/fstab.. there is no mention of /dev/hdb
Add /dev/hdb information to /etc/fstab and thn try mounting it. Something like
/dev/hdb /mnt/new_drive ext3 defaults 0 0 should work.

Last edited by ksgill; 03-07-2005 at 11:38 PM.
 
Old 03-08-2005, 12:02 PM   #3
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Still can't access 2nd hard drive

Thanks for your help, ksgill. I did what you suggested, and then re-booted the computer. As the system loaded, it provided an error that /dev/hdb and/or /mnt/new_drive were already mounted or were in use. When I tried to unmount them (using the umount command as su) I was told that neither are mounted. However, trying to mount /dev/hdb produced the same error, that it was already in use or mounted.

Any ideas on what is going on? I appreciate the help you have given.
 
Old 03-08-2005, 12:24 PM   #4
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Another suggestion

I saw this suggestion on Fedoraforum: http://www.fedoraforum.org/forum/showthread.php?t=44799&highlight=drive+mounted

I will try it and see whether that fixes the problem or not.
 
Old 03-08-2005, 05:17 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,744

Rep: Reputation: 5598Reputation: 5598Reputation: 5598Reputation: 5598Reputation: 5598Reputation: 5598Reputation: 5598Reputation: 5598Reputation: 5598Reputation: 5598Reputation: 5598
Since your using LVM, I'm guessing to mount your old root:

/dev/VolGroup00/LogVol00 /mnt/old_fc3 ext3 defaults 1 1
 
Old 03-08-2005, 06:44 PM   #6
harnadem
Member
 
Registered: Nov 2003
Location: London, Ontario
Distribution: Ubuntu - Hoary
Posts: 66

Original Poster
Rep: Reputation: 15
Problem solved!

michaelk - your suggestion worked! Once I made that change to my /etc/fstab file I was able to access the drive without problem. Thank you, and ksgill , for taking the time to help me out.
 
  


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
accessing a 2nd drive I added joel b Linux - Newbie 8 02-24-2005 01:00 AM
accessing 2nd har d drive mkzmonkeylagger Linux - Hardware 4 04-11-2004 06:41 AM
2nd hard drive naflan Debian 4 02-22-2004 02:55 PM
2nd hard drive neo.sarcastic Linux - Hardware 4 09-22-2003 11:22 PM
2nd Hard Drive Tad Linux - Hardware 6 05-22-2003 12:47 PM

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

All times are GMT -5. The time now is 04:43 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
Open Source Consulting | Domain Registration