LinuxQuestions.org
Visit Jeremy's Blog.
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 11-11-2004, 05:50 PM   #1
clucas
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Rep: Reputation: 0
Trying to mount a second hard disk


Using Fedora Core 3. I'm trying to mount my second hard disk (drive2). This is what I get when I run "/sbin/fdisk -l" :

Disk /dev/hda: 80.0 GB, 80054059008 bytes
255 heads, 63 sectors/track, 9732 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 4 32098+ de Dell Utility
/dev/hda2 * 5 5021 40299052+ 7 HPFS/NTFS
/dev/hda3 5022 5034 104422+ 83 Linux
/dev/hda4 5035 9732 37736685 5 Extended
/dev/hda5 5035 9732 37736653+ 8e Linux LVM

Disk /dev/hdb: 20.4 GB, 20490559488 bytes
255 heads, 63 sectors/track, 2491 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 2491 20008926 8e Linux LVM

After I create a mount point (/home/carl/drive2) I run "mount /dev/hdb1 /home/carl/drive2" and get:

mount: /dev/hdb1 already mounted or /home/carl/drive2 busy

What am I doing wrong?
 
Old 11-11-2004, 06:23 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,532

Rep: Reputation: 178Reputation: 178
"mount: /dev/hdb1 already mounted or /home/carl/drive2 busy"

You should check /etc/fstab to see if /dev/hdb1 is already mounted there.

Another thing to do is to check what is alrady mounted with the mount command before you try to mount /dev/hdb1. The simple command:
mount
will show you all of the currently mounted file systems.

-------------------------------
Steve Stites
 
Old 11-11-2004, 06:23 PM   #3
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
you need to edit your fstab file with the info on the new drive.
 
Old 11-11-2004, 06:26 PM   #4
clucas
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Original Poster
Rep: Reputation: 0
I meant to say that this is what I get when I run "mount":

/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda3 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda2 on /home/carl/windows type ntfs (ro,umask=0222)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
 
Old 11-11-2004, 06:29 PM   #5
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
type this and post the response:

cat /etc/fstab
 
Old 11-11-2004, 06:37 PM   #6
clucas
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Original Poster
Rep: Reputation: 0
/dev/VolGroup00/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/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hda2 /home/carl/windows ntfs ro,umask=0222 0 0

/dev/hdd /media/cdrecorder auto pamconsole,fscontext=system_ubject_r:removable_t,ro,exec,noauto,managed 0 0
/dev/hdc /media/cdrom 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 11-11-2004, 07:00 PM   #7
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
ok you need to add hdb to your fstab

something like this:

/dev/hdb1 /home/carl/drive2 linux defaults 1 2

linux = whatever filesystem you created for hdb1
 
Old 11-11-2004, 08:26 PM   #8
clucas
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Did as you suggested, using "ext3" in place of "linux". Rebooted and an error occurred:
/dev/hdb1: Unexpexcted inconsistancy; run fsck manually

I didn't run fsck. I edited the line out using vi and then rebooted to get back to where I started from.
 
Old 11-11-2004, 08:53 PM   #9
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
run fsck /etc/hdb1
tell me what it says
 
  


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
Mount hard disk problem jolly Linux - General 7 03-24-2006 09:36 PM
How do I get my USB 2.0 Hard Disk to MOUNT? Hawky Linux - Newbie 5 10-26-2004 12:11 AM
How to mount my usb hard disk? raoqn Fedora 1 04-01-2004 05:21 AM
How to mount a New Hard Disk ! ? bennethos Linux - Newbie 6 10-16-2003 04:09 AM
PCMCIA Hard Disk Mount rdanda Slackware 6 04-25-2003 05:10 PM


All times are GMT -5. The time now is 08:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration