LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How do I make my USB flash drive act like a normal disk? (https://www.linuxquestions.org/questions/linux-hardware-18/how-do-i-make-my-usb-flash-drive-act-like-a-normal-disk-230115/)

KingofBLASH 09-13-2004 12:47 PM

How do I make my USB flash drive act like a normal disk?
 
I have a USB flash drive that I can plug in and mount as root under Slackware 10.0:

Code:

# mount -t vfat /dev/sda1 /mnt/muvo
But, only root can read and write to the drive. I have tried to CHMOD the device /dev/sda1 and the mount point but still cannot read and write to the device as an underpriviledged user.

Does anyone know what I have to do to make the drive act like a regular disk? Also, is there a way to set up Slack to auto mount it whenever I plug it in, and umount it when I take it out?

Thanks ahead of time,

Dan

[ox] 09-13-2004 01:13 PM

you might want to try this :
Code:

mount -t vfat -o umask=000 /dev/sda1 /mnt/muvo
as for auto mounting you might want to look at hotplug configuration.


ox

jspenguin 09-13-2004 08:26 PM

One thing you could try is to add a line like this in your /etc/fstab:
Code:

/dev/sda1                  /mnt/muvo            vfat    noauto,users,rw,fmask=133,dmask=033  0 0
noauto means it is not automatically mounted on startup
users means that anybody can mount the drive and files on it automatically belong to that user
rw means mount read/write
fmask=133 means regular files will not have execute permission
dmask=033 means directories will have execute (traverse) permission

Then, as an ordinary user, type mount /mnt/muvo


All times are GMT -5. The time now is 11:03 PM.