LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 09-13-2004, 12:47 PM   #1
KingofBLASH
Member
 
Registered: Sep 2003
Distribution: Just upgraded to Slackware 10.0
Posts: 91

Rep: Reputation: 15
Question 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
 
Old 09-13-2004, 01:13 PM   #2
[ox]
LQ Newbie
 
Registered: May 2003
Posts: 12

Rep: Reputation: 0
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
 
Old 09-13-2004, 08:26 PM   #3
jspenguin
Member
 
Registered: Feb 2003
Location: Wichita, KS
Distribution: Heavily modified Redhat
Posts: 194

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB flash disk taoweijia Linux - Hardware 2 12-28-2005 04:30 AM
USB flash disk help bakazer Solaris / OpenSolaris 1 06-24-2005 09:30 AM
USB Flash Disk zillah Fedora 3 05-22-2005 03:25 AM
USB flash disk. ValidiusMaximus Linux - Software 0 12-30-2004 02:45 PM
USB Flash Disk not recognized Alphi Linux - Hardware 10 06-16-2003 05:58 PM


All times are GMT -5. The time now is 08:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration