Mount an external hard drive (usb)

Installing, Configuring, Troubleshooting server daemons such as Web and Mail

Mount an external hard drive (usb)

Postby tenoch » 2008/06/29 21:56:30

Hi
I am trying to mount an external hard disk that is in an USB enclosure

if i Use Command:
Code: Select all
mount /dev/sdb /mnt/disk2


I get error:
mount: you must specify the filesystem type

I run later the command:
Code: Select all
dmesg

with the result:

sd 0:0:0:0: Attached scsi disk sda
usb 5-1: new high speed USB device using ehci_hcd and address 2
usb 5-1: configuration #1 chosen from 1 choice
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.

scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
ACPI: PCI Interrupt 0000:00:1f.3[B] -> GSI 19 (level, low) -> IRQ 185
sd 0:0:0:0: Attached scsi generic sg0 type 0


sdb: Write Protect is off
sdb: Mode Sense: 00 38 00 00
sdb: assuming drive cache: write through
sdb: sdb1 sdb2 sdb3
sd 2:0:0:0: Attached scsi disk sdb
sd 2:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
EXT3 FS on sda3, internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.



my question, is wich is the filesystem of my disk?

Should it be something like this:
mount -t ext3 /dev/sdb /mnt/disk
or:
mount -t ext3-fs /dev/sdb /mnt/disk2

?


Thanks
tenoch
 
Posts: 6
Joined: 2008/06/28 17:31:29

Re: Mount an external hard drive (usb)

Postby tenoch » 2008/06/29 22:32:02

Solved:


I run command:
mount

and it show me:

/dev/sda3 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)


So, the command to mount was:
mount -t ext3 /dev/sda3 /mnt/disk2

And all is ok now

Regards
tenoch
 
Posts: 6
Joined: 2008/06/28 17:31:29

Re: Mount an external hard drive (usb)

Postby tenoch » 2008/06/29 22:41:59

Mmm
Sorry, it was not solved

When I looked at the mounted directory, it contain the same data of the server primary disk, not the external USB


I tried:

mount -t ext3 /dev/sdb /mnt/disk2

mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


Any idea, how to mount the usb?

Thanks
tenoch
 
Posts: 6
Joined: 2008/06/28 17:31:29

Re: Mount an external hard drive (usb)

Postby tenoch » 2008/06/29 23:04:48

jeje ok, now is really solved

I tried:
mount -t ext3 /dev/sdb1 /mnt/disk1

mount -t ext3 /dev/sdb2 /mnt/disk2

mount -t ext3 /dev/sdb3 /mnt/disk3

and the last one was the USB external drive


Ragards
tenoch
 
Posts: 6
Joined: 2008/06/28 17:31:29


Return to CentOS 5 - Server Support

Who is online

Users browsing this forum: No registered users and 2 guests