LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2004, 11:58 AM   #1
hkl8324
Member
 
Registered: Aug 2003
Location: Hong Kong, China
Distribution: Ubuntu 10.04
Posts: 234

Rep: Reputation: 30
Cannot change the permission of /mnt/fat32


here is my story

i my 4 partitions, hda1 is Windows xp ntfs partition, hda2 is Fat32 partition, hda3 is ext3 for my
FC2, and a swap partition at hda4.

i mount my Fat32 partition as /mnt/fat32

i find that when i login an account other than root, i cannot write to the that partition, and the permittion profile of the /mnt/fat32 is rwxr-xr-x, i use chmod to change the permission, but it failed, and i used X-window and right click to change it, it failed also.

how can i write to that fat32 partition when i am not root?

thanks

Sorry for my bad english

Last edited by hkl8324; 07-17-2004 at 12:15 PM.
 
Old 07-17-2004, 12:15 PM   #2
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Check in /etc/fstab if the hda2 line has "ro" in it as an option. If yes, it means the partition is mounted read-only and you will not be able to write to it. Change the option to "rw", save and remount or reboot.
 
Old 07-17-2004, 12:22 PM   #3
hkl8324
Member
 
Registered: Aug 2003
Location: Hong Kong, China
Distribution: Ubuntu 10.04
Posts: 234

Original Poster
Rep: Reputation: 30
the line look like this
/dev/hda2 /mnt/fat32 vfat defaults 0 0
which column i have to change

thanks again
 
Old 07-18-2004, 08:08 AM   #4
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
You have it set to "defaults", which includes read/write (rw) ability, so that doesn't seem to be the problem.

If you are the only user on your system, you could try setting yourself (your login name) as the owner of /mnt/fat32

su to root and type in terminal:
Code:
chown -R  <username>  /mnt/fat32
This will give you (not root) ownership of /mnt/fat32 and all dirs and files inside it and you should be able to write to it

Having said that, it's not the ideal situation, because that partition is then writeable by anyone who can access your computer. If you have important data on that partition, maybe it's better to leave root as the owner and just su to root whenever you need write access
 
Old 07-18-2004, 08:23 AM   #5
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Quote:
Originally posted by hkl8324
the line look like this
/dev/hda2 /mnt/fat32 vfat defaults 0 0
which column i have to change

thanks again
Or edit the line to read:

/dev/hda2 /mnt/fat32 vfat noauto,user,rw 0 0

You can then mount and umount it too. This is probably the best way.
 
Old 07-18-2004, 08:27 AM   #6
hkl8324
Member
 
Registered: Aug 2003
Location: Hong Kong, China
Distribution: Ubuntu 10.04
Posts: 234

Original Poster
Rep: Reputation: 30
thank you for you reply,i tried it but a problem arised, when i type chown -R username /mnt/fat32 in my terminal, it tried to change the file permission of every single file of the fat32 volume, but it failed to
do so and said it is not permitted.

is there a way to change the permission of the folder of /mnt/fat32 only, i tried unmounting it, than chown
/mnt/fat32, but nothing happened.
 
Old 07-18-2004, 08:35 AM   #7
hkl8324
Member
 
Registered: Aug 2003
Location: Hong Kong, China
Distribution: Ubuntu 10.04
Posts: 234

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Tuttle
Or edit the line to read:

/dev/hda2 /mnt/fat32 vfat noauto,user,rw 0 0

You can then mount and umount it too. This is probably the best way.
i have a new problem, the line of /dev/hda2 /mnt/fat32 vfat defaults 0 0
is highlighted, and i cannot change something at that line, it seems that it is "locked"
 
Old 07-18-2004, 08:38 AM   #8
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
you need to su to root to edit it.
hint: try using the midnight commander, type "mc", but be careful when editing fstab - make a backup of it first.
 
  


Reply



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
Can't change permissions for FAT32-HD ghanalinux Linux - Hardware 2 06-19-2005 11:10 PM
Can't change permissions for FAT32-HD ghanalinux Linux - Hardware 1 06-17-2005 11:05 AM
MDK10.1 /mnt remove/change entries? kristi Linux - General 2 02-10-2005 05:15 PM
Can't change permissions for mnt/windows(XP) webwolf70 Linux - General 2 08-13-2004 01:35 PM
/mnt/fat32 stopped working virgin Linux - Newbie 6 10-17-2003 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:37 AM.

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