mounting a usb flash drive
To find out what usb devices you have available, issue the command
# ls -l /dev/disk/by-id/usb*
if you know where the flash drive is, in this example /dev/sda1 which you can locate probably in /var/log/ messages or by doing
# hdparm /dev/sda
or
# cat /proc/bus/usb/devices
then you can just
# cd /mnt # mkdir flashdrive # mount -t vfat /dev/sda1 flashdrive
and it should be mounted, assuming it is formatted in vfat. if not substitute the type there. or you can leave out the -t vfat and you will get an 8.3 format. :(
With my MPIO I only had to do
# mount -t vfat /dev/sda flashdrive
With a card reader of mine I used
# mount -t vfat /dev/sda1 usb
In general you can add these lines to your /etc/fstab file
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0 /dev/fd0 /mnt/floppy auto noauto 0 0 /dev/sda1 /mnt/usb auto noauto 0 0
and then if you want to mount your cdrom all you have to do is type
# mount /dev/cdroms/cdrom0
or
# mount /dev/sda1
to mount a usb device -- in this case a card reader.
http://gentoo-wiki.com/HOWTO_gnome-volume-manager » http://gentoo-wiki.com/HOWTO_USB_Mass_Storage_Device »
[Click to add or edit comments])
Please prepend comments below including a date