Re: Command to manually mount USB external harddrive?
From: Anton Erasmus (junk_at_junk.net)
Date: 01/07/04
- Next message: Anton Erasmus: "Anybody using LVM (Logical Volume Manager) ?"
- Previous message: nunya: "Re: mount: /dev/cdrom is not a valid block device"
- Next in thread: gg: "Re: Command to manually mount USB external harddrive?"
- Reply: gg: "Re: Command to manually mount USB external harddrive?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 07 Jan 2004 20:38:44 +0200
On 23 Dec 2003 17:01:49 -0800, linuxquestion@yahoo.com wrote:
>Thanks for all your responses. This worked for me:
>
>mkdir /mnt/usb
>mount /dev/sda1 /mnt/usb -rw -t vfat
>
>df -k
>Filesystem 1k-blocks Used Available Use% Mounted on
>/dev/sda1 3142552 36 3142516 1% /mnt/usb
>
>It seems to take the first usb plugged in as sda1.
>Not according to how the OS, or hardware numbers the usb ports
>in the machine.
>
>So, if you have a number of usb devices to plug in, you would
>have probably have to change the number.
I have found that editing updfstab.conf.default in /etc works much
better. One does not need to keep track of which SCSI device to use
etc.
When an USB device has been added to the updfstab.conf.default file,
then on connecting the USB drive an empty directory is automatically
created in the /mnt directory. One can have distinctive names for the
various devices. I have "camera" for my digital camera and flash64 for
a 64MB USB flash pen, and flash128 for a 128MB flash disc.
To mount the actual device one only have to do
mount /mnt/<name>
i.e. for the camera
mount /mnt/camera
When the device is removed the directory in the /mnt also dissappears,
hence it is easy to check if a device is actually connected or not.
So far the only time I have had problems with this method, is when I
had more than one partition on a removable USB harddisc. If anyone
can give me a pointer on how to handle multiple partitions I would
appreciate it.
Regards
Anton Erasmus
>-------------------
>
>linuxquestion@yahoo.com wrote in message news:<672ceaed.0312201651.669ae191@posting.google.com>...
>> Dear experts,
>>
>> I'm using Redhat Advanced Server 2.1. I have an external harddisk
>> enclosure with an old disk in it, formatted as FAT32.
>>
>> I've been looking all over for info, including
>> http://www.linux-usb.org/
>>
>> It seems that my machine is recognizing the device at
>> the OS level.
>>
>> -----------
>>
>> cat /proc/scsi/usb-storage-0/1
>>
>> Host scsi1: usb-storage
>> Vendor: ADS Technologies lnc.
>> Product: USB2.0 Storage Device
>> Serial Number: A9EA07106634
>> Protocol: Transparent SCSI
>> Transport: Bulk
>> GUID: 06e1d1850000a9ea07106634
>> Attached: 1
>>
>> -----------
>>
>> cat /proc/scsi/scsi
>>
>> Attached devices:
>> Host: scsi1 Channel: 00 Id: 00 Lun: 00
>> Vendor: QUANTUM Model: FIREBALL ST3.2A Rev: 0 0
>> Type: Direct-Access ANSI SCSI revision: 02
>>
>> -----------
>> cat /proc/bus/usb/drivers
>> usbdevfs
>> hub
>> usb-storage
>>
>> -----------
>>
>> dmesg | grep -i scsi
>>
>> SCSI subsystem driver Revision: 1.00
>> iSCSI version 2.0.1.8 ( 8-Aug-2001)
>> iSCSI control device major number 254
>> iSCSI: detected HBA cef94f04, host #0
>> scsi0 : iSCSI (2.0.1.8)
>> scsi1 : SCSI emulation for USB Mass Storage devices
>> Type: Direct-Access ANSI SCSI revision: 02
>> Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
>> SCSI device sda: 6306048 512-byte hdwr sectors (3229 MB)
>>
>>
>> -------------
>>
>> cat /etc/modules.conf
>>
>> alias parport_lowlevel parport_pc
>> alias usb-controller usb-uhci
>> alias usb-controller1 usb-ohci
>> alias char-major-195 nvidia
>>
>> -------------
>>
>> But, I haven't been able to find or figure out the command
>> to mount this device anywhere.
>>
>> What is the command to manually mount this USB harddisk?
>>
>> Once I'm sure that it works ok, I'll go to automatic.
>>
>> Thanks
- Next message: Anton Erasmus: "Anybody using LVM (Logical Volume Manager) ?"
- Previous message: nunya: "Re: mount: /dev/cdrom is not a valid block device"
- Next in thread: gg: "Re: Command to manually mount USB external harddrive?"
- Reply: gg: "Re: Command to manually mount USB external harddrive?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|