[CentOS] Can't mount FAT32 partition

William A. Mahaffey III wam at HiWAAY.net
Thu Sep 1 04:58:43 UTC 2005


Phil Schaffner wrote:

>On Thu, 2005-09-01 at 11:10 +0900, Dave Gutteridge wrote:
>...
>  
>
>>So where I'm at now is that I can mount the drive from the command line 
>>like so:
>>[root at localhost ~]# mount /dev/hda1 /mnt/windows
>>... but only the root user can see it.
>>
>>I want to be able to make it so that any user (which is almost always 
>>me, but sometimes I'm root, sometimes I'm just a user with the account 
>>"dave") can access the drive, and that it comes up in Gnome/Nautilus on 
>>boot.
>>
>>Here is what I currently have in /etc/fstab:
>>/dev/hda1               /mnt/windows            vfat    
>>rw,uid=512,gid=1002 0 0
>>    
>>
>
>Looks like you didn't read my original message thoroughly...
>
>On Mon, 2005-08-29 at 11:55 -0400, Phil Schaffner wrote:
>...
>  
>
>>Try:
>>
>>/dev/hda1 /mnt/windows vfat rw,noauto,user,uid=512,gid=1002 1 2
>>
>>Adjust uid and gid for the user you want to have full access
>>(see /etc/passwd entry), or omit for read-all write-root.  [Be
>>sure /mnt/windows exists.]
>>    
>>
>
>uid=512 and gid=1002 are almost certainly not those for user "dave"
>in /etc/passwd - more likely 500:500 as a guess.  [And yes, 0 0 at the
>end, not 1 2 unless you want to be assaulted again by ALPHA dosfsck.]
>
>$ grep prs /etc/passwd
>prs:x:512:1002:Phil Schaffner:/home/prs:/bin/bash
>
>See what "grep dave /etc/passwd" returns and fix up /etc/fstab
>accordingly.
>
>Phil
>  
>

Could try:

/dev/hda1 /mnt/windows vfat rw,noauto,users 0 0


if you want it accessible for all users ....

-- 
	William A. Mahaffey III
---------------------------------------------------------------------
	Remember, ignorance is bliss, but
	willful ignorance is LIBERALISM !!!!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.centos.org/pipermail/centos/attachments/20050831/ff2a7c79/attachment.htm


More information about the CentOS mailing list