I'm on a dual boot, XP and kubuntu, and I have a shared drive formatted FAT 32 (hda5) so I can swap mp3's between the two OS's. Thing is, I can't save anything to the hda5 when logged into kubuntu. I have tried sudo konqueror in an attempt to change the permissions, but the drive keeps defaulting to root. I added my user account to the root group and I still cant write to hda5. I'm stuck as to what to do next. Can anyone point me in the right direction?
Announcement
Collapse
No announcement yet.
Disk permissions problem
Collapse
This topic is closed.
X
X
-
Re: Disk permissions problem
I'm presuming that hda5 is mounted during boot as owned by root and can only be accessed by root.
Can you post the contents of /etc/fstab?
- Top
- Bottom
-
Re: Disk permissions problem
Ok, here's mine:
Code:/dev/hdb6 /media/shared vfat defaults,uid=1000,gid=1000,auto,rw,nouser 0 0
- Top
- Bottom
Comment
-
Re: Disk permissions problem
Originally posted by JucatoOk, here's mine:
Code:/dev/hdb6 /media/shared vfat defaults,uid=1000,gid=1000,auto,rw,nouser 0 0
- Top
- Bottom
Comment
-
Re: Disk permissions problem
oh, sorry about that
Basically you run Kate (KDE Advanced Text Editor) as root to be able to edit the /etc/fstab file. enter in a terminal or in a Run Dialog box (Alt+F2)
Code:kdesu kate /etc/fstab
Code:/dev/hda5 /media/shared vfat defaults,uid=1000,gid=1000,auto,rw,nouser 0 0
- Top
- Bottom
Comment
-
Re: Disk permissions problem
I've found that this works. I would assume Jucato's method works as well.
Code:/dev/hda5 /media/hda5 vfat iocharset=utf8,umask=000 0 0
- Top
- Bottom
Comment
-
Re: Disk permissions problem
Well, it worked for me. Just not sure it will work 100% for everyone
Btw, aysiu, while we're in the topic, would you know what auto, nouser, and iocharset do?
Also, isn't umask supposed to be 4 digits? like umask=0000? I'm confused because umask uses the opposite of what you would do in chmod right? Like umask=000 is equal to 777 in chmod? (Pardon the confusion... )
- Top
- Bottom
Comment
-
Re: Disk permissions problem
Originally posted by JucatoBtw, aysiu, while we're in the topic, would you know what auto, nouser, and iocharset do?
http://www.tuxfiles.org/linuxhelp/fstab.html
Also, isn't umask supposed to be 4 digits? like umask=0000? I'm confused because umask uses the opposite of what you would do in chmod right? Like umask=000 is equal to 777 in chmod? (Pardon the confusion... )Umask sets the mask applied to newly created file and directory permissions within a given context. By default, the Umask in the server configuration, <VirtualHost> or <Anonymous> block is used, unless overridden by a "per-directory" Umask setting. Any arguments supplied must be an octal number, in the format 0xxx. An optional second argument can specify a Umask to be used when creating directories. If a second argument isn't specified, directories are created using the default Umask in the first argument. For more information on umasks, consult your operating system documentation/man pages.
- Top
- Bottom
Comment
-
Re: Disk permissions problem
Originally posted by misoNeither worked for me unfortunately
Looks like I might have to do a re-install... Nothing I try seems to make a difference.
Hold on. Don't reinstall. That is very extreme, and I can guarantee it won't help this problem.
Can you try rebooting? After you change the /etc/fstab, the changes don't happen immediately.
- Top
- Bottom
Comment
-
Re: Disk permissions problem
I've rebooted on both occasions and it tells me the disk is not mounted. I mounted it and still keeps erroring. I think I'm just going to format both partitions and start again. Its no big deal, I've not got any critical data. And its all part of the learning process
- Top
- Bottom
Comment
-
Re: Disk permissions problem
Originally posted by jturnbulauto,user,rw,sync
If you want it mounted during boot you have to either mount it owned by a user ('uid') or give wider permissions ('umask')
Also rw and auto are already included in 'defaults'.
Either of these lines (not both) should work (as already suggested by Jucato and aysiu):
/dev/hda5 /media/hda5 vfat umask=0000 0 0
/dev/hda5 /media/hda5 vfat uid=1000,gid=1000 0 0
You can also define other options like 'utf8' if you prefer, but those are the ones you need. (You can also combine 'uid' and 'umask', like this for example: umask=0077,uid=1000,gid=1000)
If they don't work (remember to boot or remount) there is something wrong with the system or the partition.
- Top
- Bottom
Comment
Comment