LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to mount a second hard disk (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-mount-a-second-hard-disk-253795/)

clucas 11-11-2004 05:50 PM

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?

jailbait 11-11-2004 06:23 PM

"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

Finlay 11-11-2004 06:23 PM

you need to edit your fstab file with the info on the new drive.

clucas 11-11-2004 06:26 PM

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)

Finlay 11-11-2004 06:29 PM

type this and post the response:

cat /etc/fstab

clucas 11-11-2004 06:37 PM

/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_u:object_r:removable_t,ro,exec,noauto,managed 0 0
/dev/hdc /media/cdrom auto pamconsole,fscontext=system_u:object_r:removable_t,ro,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0

Finlay 11-11-2004 07:00 PM

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

clucas 11-11-2004 08:26 PM

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.

Finlay 11-11-2004 08:53 PM

run fsck /etc/hdb1
tell me what it says


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