|
|
|
|
| How To Read An Usb Flash Memory |
|
|
|
[Original]
[Print]
[Top]
|
hi,
I'm newbie in linux. could you tell me how I can read an USB Flash Memory please? (I mean in Console mode)
Thanks, G.
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
You'll have to mount the USB drive with mount command, unless it's automounted. Something like this
mount /dev/sda1 /mnt/USB
/dev/sda1 is the device, the name might be something else /mnt/USB is the directory, where it is mounted, the directory must exist before you do the above. Also note that yo'll have to this as a superuser.
kari-matti
|
|
|
[Original]
[Print]
[Top]
|
|
[Original]
[Print]
[Top]
|
hi,
To read your usb flash memory, you have to finish the following steps: 1. Plug in your usb flash memory, and then check this SCSI device: #lsusb or #/proc/scsi/scsi 2. Find exact path for your flash memory. (Since usb disks map onto scsi) #demsg | grep -i "SCSI device" then you can get the usb location: such as: /dev/sdb or /dev/sda, etc. 3. Inspect the partitions on the usb device #fdisk -l /dev/sdb (sdb is my case, for yours, you can get from last step) then you can get information of the partition which consists of partition of your device such as: "/dev/sdb1" 4. Add the following line into /etc/fstab /dev/sdb1 /mnt/usbdrive vfat defaults 0 0 5. Create directory "usbdrive" in /mnt then mount it mnt#mkdir usbdrive mnt#mount usbdirve So far, you can read your usb flash memory. Remember unmount it after using it #umount /mnt/usbdrive
Hopefully, you can get some ideas.
|
|
|
[Original]
[Print]
[Top]
|
|
|