D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Usb HDD



On Friday, February 15, 2002, at 07:54 AM, Bob Sarah wrote:
/dev/sda /mnt/usb vfat

Try putting this line in /etc/fstab:


/dev/sda /mnt/usb vfat defaults 0 0

If you want to make it more readable, put tabs between each param instead of spaces.

Firstly, make sure that usb-storage is in the output of 'lsmod':

[root@xxxxxxx root]# lsmod
Module                  Size  Used by
usb-storage            39008   0  (unused)
usb-uhci               21536   0  (unused)
usbcore                51712   0  [usb-storage usb-uhci]

You should see something like the above. If not, try 'modprobe usb-storage' and it should add it. If it isn't there, you may wish to put 'modprobe usb-storage' at the end of you /etc/rc.d/rc.local file so it runs every time the machine is booted.

Secondly, plug your disk in and power up - make sure there is mention of it in the output of the 'dmesg' command:

-----------------------------------------------------------------------
usb-uhci.c: v1.251:USB Universal Host Controller Interface driver
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0x4cb/0x100) is not claimed by any active driver.
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
Vendor: Fujifilm Model: FinePix 1400Zoom Rev: 1000
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0
usb-uhci.c: interrupt, status 3, frame# 689
usb-uhci.c: interrupt, status 3, frame# 697
SCSI device sda: 16000 512-byte hdwr sectors (8 MB)
sda: Write Protect is off
sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
-----------------------------------------------------------------------
(yes I know it's actually a digital camera and not a disk, but they use the same interface dammit).


The important line here is the one that says sda: sda1, although you will probably see the same if you have no other scsi devices on your system.

I then did mount /mnt/sda1 /mnt/usb, and it worked just fine. This was without anything in the fstab. Conversely, if you *did* put entries in the fstab, you would only need to do something like 'mount /mnt/usb'. That's half the point of the fstab file.

If that doesn't work, then try mount /mnt/sda /mnt/usb Another good thing to note is that you shouldn't need to specify a file type 90% of the time. Linux is generally smart enough to work it out on it's own.

J.

PS - Apologies for long post.

--
Jon Still                               E-mail: jon@xxxxxxxxxxx
System Administrator                    Web:    http://www.tertial.org/
tertial.org                             Tel:    +44 (0)7977 066087


-- The Mailing List for the Devon & Cornwall LUG Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the message body to unsubscribe.


Lynx friendly