LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   mounting usb pen drive (https://www.linuxquestions.org/questions/slackware-14/mounting-usb-pen-drive-591967/)

warun 10-15-2007 11:11 AM

mounting usb pen drive
 
i'm using slackware 11... i need to know how to mount a usb pen drive... i tried editing the /etc/fstab file but dint work...

thanks in advance....

titopoquito 10-15-2007 11:24 AM

Plug in the device. As root do
Code:

cat /var/log/messages
.

You will see a similar output like this one:
Code:

Oct 15 17:23:08 nestor kernel: usb 1-10: new high speed USB device using ehci_hcd and address 6
Oct 15 17:23:08 nestor kernel: usb 1-10: configuration #1 chosen from 1 choice
Oct 15 17:23:08 nestor kernel: scsi5 : SCSI emulation for USB Mass Storage devices
Oct 15 17:23:13 nestor kernel: scsi 5:0:0:0: Direct-Access    Generic  MP3 player      0100 PQ: 0 ANSI: 4
Oct 15 17:23:13 nestor kernel: SCSI device sdb: 1020032 2048-byte hdwr sectors (2089 MB)
Oct 15 17:23:13 nestor kernel: sdb: Write Protect is off
Oct 15 17:23:13 nestor kernel: SCSI device sdb: 1020032 2048-byte hdwr sectors (2089 MB)
Oct 15 17:23:13 nestor kernel: sdb: Write Protect is off
Oct 15 17:23:13 nestor kernel:  sdb: sdb1

From the output you see that the device is named "sdb", the only partition on it is sdb1. To mount it at /mnt/tmp do:

Code:

mount /dev/sdb1 /mnt/tmp
If needed use some umask options to fine tune the permissions that the device gets if it is FAT32 formatted. In this case

Code:

mount -t vfat -o umask=0000 /dev/sdb1 /mnt/tmp
should give all users full write access to it, although it's not very secure of course.

jowa45 10-15-2007 11:28 AM

I use something like:

mount -t vfat /dev/sda1 /mnt/memory

You have to experiment with the sda1. Try things like sda2 sdb1.

Failing that boot up with the usb in. You might just see something in dmesg or /var/log/messages.

John

rworkman 10-15-2007 12:49 PM

http://slackwiki.org/Windows_Partitions


All times are GMT -5. The time now is 05:29 PM.