LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 10-19-2005, 11:06 PM   #1
kikkubey
LQ Newbie
 
Registered: Oct 2004
Location: Hanoi Vietnam
Posts: 4

Rep: Reputation: 0
Pleaase help me to mount VFAT drive to everyone


My problem:

I am using mandrake 9.2 and now I install a new hdd.
Only root can read and write in this hdd even I have used root to change or changroup.

Could I use "mount" command directly to allow everyone access this drive WITHOUT restart my computer and without set this drive to fstab ?

I've tried "mount -t vfat -o suid ",users but It didn't work !

Thank you very much,
 
Old 10-20-2005, 09:41 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 121Reputation: 121
Welcome to LQ!

You really should read all of "man mount" and "man fstab" as you are trying
to do something which is not the design of the GNU/Linux operating system.
From "man mount" (the manual page for the mount command):
Quote:
(iii) Normally, only the superuser can mount file systems. However, when fstab con-
tains the user option on a line, anybody can mount the corresponding system.
I use these options to mount my vfat partitions so all users can read/write to them:
Code:
/dev/hda2        /Storage         vfat        users,umask=1000,rw,auto   1   0
 
Old 10-20-2005, 08:36 PM   #3
tedfordgif
Member
 
Registered: Dec 2003
Location: MD - USA
Distribution: Ubuntu; DSL
Posts: 43

Rep: Reputation: 15
Actually, it sounds well within the design of Linux. You said you could mount it as vfat already, so probably you just need to add the umask option, since it's a vfat partition.
Code:
mount -t vfat -o 'umask=0,iocharset=iso8859-1' /dev/device /mnt/dir
 
Old 10-21-2005, 07:40 AM   #4
walterbyrd
Member
 
Registered: Apr 2004
Posts: 507

Rep: Reputation: 30
There are probably other ways to do it, but - after a lot futzing - this works for me.

/dev/hda7 /home vfat rw,user,suid,umask=0000 0 0
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Fstab in ubuntu to mount vfat drive mikeymorgan Linux - Newbie 13 06-23-2005 07:50 AM
Can't mount flash drive with vfat? maq Linux - Hardware 2 04-10-2005 04:57 PM
Can't mount VFAT oneandoneis2 Linux - Hardware 5 12-18-2004 10:54 PM
What fstab mount setting do you use to get full access to a vfat drive? BarkingBonefish Linux - Newbie 4 03-12-2004 12:36 AM
mount a vfat hard drive allelopath Linux - Hardware 16 04-06-2003 01:48 PM


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

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
Open Source Consulting | Domain Registration