Fedora Linux Support Community & Resources Center

Sections ›› Home | Forums | Guidelines | Forum Help | Fedora FAQ | Fedora News 

Go Back   FedoraForum.org > Fedora Support > General Support

General Support Fedora general support. Ask questions here that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2005-04-09, 03:15 PM CDT
lakshman Offline
Registered User
 
Join Date: Apr 2005
Posts: 5
Angry Strage problem in vfat mounting..!

I am able to mount hda partitions properly with read-write permission for user lakshman, when same configuration is used for hdb partitions (both vfat partitions) it is mounting them with root as owner and I am unable to get write permissions.

The details are as follows,

I had added following lines fstab to mount my vfat file systems,

/dev/hda11 /softwares vfat uid=lakshman,gid=lakshman,auto,exec 0 0
/dev/hdb6 /songs vfat uid=lakshman,gid=lakshman,auto,exec 0 0
/dev/hdb5 /videos vfat uid=lakshman,gid=lakshman,auto,exec 0 0

I am able to mount the drive on hda11 correctly with permissions for user
lakshman. But when it comes to hdb5 and hdb6 it mounts file systems with root
as owner.

Following are permission of mount points
Before mounting,
drwxr-xr-x 2 root root 4096 Feb 16 08:55 softwares
drwxr-xr-x 2 lakshman lakshman 4096 Feb 16 08:55 songs
drwxr-xr-x 2 lakshman lakshman 4096 Feb 16 08:55 videos

After mounting,
drwxr-xr-x 20 lakshman lakshman 8192 Jan 1 1970 softwares
drwxr-xr-x 15 root root 8192 Jan 1 1970 songs
drwxr-xr-x 26 root root 8192 Apr 6 19:29 videos

observe that mount point of softwares is owned by root and after mounting it is
owned by lakshman. Even when all permissions, including mount point, are given
it didn't worked for hdb5 and hdb6.

I had also tried this (of course, I doesn't like to do it this way)
/dev/hdb6 /songs vfat user,auto,exec,umask=000 0 0
/dev/hdb5 /videos vfat user,auto,exec,umask=000 0 0
Then tried this,
/dev/hdb6 /songs vfat user,rw,auto,exec,umask=000 0 0
/dev/hdb5 /videos vfat user,rw,auto,exec,umask=000 0 0

Nothing worked :-(.

Thanks in advance,
-Lakshman.

PS: I am using Fedora Core 3.
Reply With Quote
  #2  
Old 2005-04-09, 04:03 PM CDT
tulakin Offline
Registered User
 
Join Date: Apr 2005
Posts: 31
check the groups user lakshman belongs to by command:
groups lakshman

maybe lakshman needs to belong to the root group...
Reply With Quote
  #3  
Old 2005-04-09, 04:25 PM CDT
tulakin Offline
Registered User
 
Join Date: Apr 2005
Posts: 31
Aslo, try placing the user option for hdb in the fstab - like this:

/dev/hdb6 /songs vfat uid=lakshman,gid=lakshman,auto,exec,user 0 0
/dev/hdb5 /videos vfat uid=lakshman,gid=lakshman,auto,exec,user 0 0

The user option should allow a user out side of root to mount...though,
I see you are trying to get just the user lakshman to solely mount
the drive....this may work as a work around until you get the UID to
work properly...
Reply With Quote
  #4  
Old 2005-04-09, 10:26 PM CDT
lakshman Offline
Registered User
 
Join Date: Apr 2005
Posts: 5
Hi,
Thanks for an immediate reply. Adding lakshman to root group may not be useful for write permissions because group have only read-execute permissions for hdb partitions.

After mounting,
drwxr-xr-x 20 lakshman lakshman 8192 Jan 1 1970 softwares
drwxr-xr-x 15 root root 8192 Jan 1 1970 songs
drwxr-xr-x 26 root root 8192 Apr 6 19:29 videos

I tried your 2nd suggestion but it also didn't worked for me.

When I mount hda11 as follows
/dev/hda11 /softwares vfat uid=lakshman,gid=lakshman,auto,exec 0 0
It mounted the partition with lakshman as owner and given all permission for user lakshman.

But when I tried to apply same options on hdb5, hdb6 the strangely it mounted both with root as owner and user lakshman is just able to read.

I desparately need to sort this out. Thanks in advance.
Reply With Quote
  #5  
Old 2005-04-09, 11:19 PM CDT
tulakin Offline
Registered User
 
Join Date: Apr 2005
Posts: 31
okay...my last try on the fstab try this:

/dev/hdb6 /songs vfat uid=lakshman,gid=lakshman,rw,suid,dev,exec,async 0 0
/dev/hdb5 /videos vfat uid=lakshman,gid=lakshman,rw,suid,dev,exec,async 0 0

-Tulakin
Reply With Quote
  #6  
Old 2005-04-09, 11:39 PM CDT
tulakin Offline
Registered User
 
Join Date: Apr 2005
Posts: 31
You can also try removing the uid=lakshman,gid-=lakshman and run fstab as follows:

/dev/hdb6 /songs vfat rw,suid,dev,exec,async 0 0
/dev/hdb5 /videos vfat rw,suid,dev,exec,async 0 0

-Tulakin
Reply With Quote
  #7  
Old 2005-04-10, 12:02 AM CDT
lakshman Offline
Registered User
 
Join Date: Apr 2005
Posts: 5
I tried both. But problem persists.

-Lakshman.
Reply With Quote
  #8  
Old 2005-04-10, 12:13 AM CDT
tulakin Offline
Registered User
 
Join Date: Apr 2005
Posts: 31
I just finish reading the man pages...it mentions a fstab-sync...think this is wiping out your modifications to fstab?
Reply With Quote
  #9  
Old 2005-04-10, 12:26 AM CDT
lakshman Offline
Registered User
 
Join Date: Apr 2005
Posts: 5
No more changes available for me to try now.
Thanks a lot for spending your time.

-Lakshman.
Reply With Quote
  #10  
Old 2005-04-13, 11:38 PM CDT
lakshman Offline
Registered User
 
Join Date: Apr 2005
Posts: 5
That's the problem with kernel-2.6.10-1.770_FC3. I had upgraded my kernel to kernel-2.6.11-1.14_FC3 and solved the problem.

-Lakshman.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting problem with vfat RJP General Support 7 2006-11-15 09:07 PM CST
mounting vfat BigMulli General Support 5 2005-07-10 02:14 PM CDT
Strage GDM problem mic Software 5 2005-06-03 10:55 AM CDT
mounting vfat BigMulli General Support 5 2004-12-30 07:31 PM CST
Mounting VFAT Nightcat Links 2 2004-12-09 05:03 AM CST

Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Yiddish

All times are GMT -7. The time now is 12:45 PM CST.

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo



All trademarks, and forum posts in this site are property of their respective owner(s).

FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact | Founding Members
Designed By Ewdison Then | Powered by vBulletin ©2000-2009, Jelsoft Enterprises Ltd.
FedoraForum is Powered by Open Source Projects and Products
vB Enterprise Translator (vBET 2.3.8) coded by NLP-er