LinuxQuestions.org
Help answer threads with 0 replies.
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, 12:58 PM   #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 01:15 PM.
 
Old 07-17-2004, 01:15 PM   #2
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 37
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, 01: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, 09:08 AM   #4
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 37
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, 09:23 AM   #5
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

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, 09: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, 09: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, 09:38 AM   #8
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,289

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


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't change permissions for FAT32-HD ghanalinux Linux - Hardware 2 06-20-2005 12:10 AM
Can't change permissions for FAT32-HD ghanalinux Linux - Hardware 1 06-17-2005 12:05 PM
MDK10.1 /mnt remove/change entries? kristi Linux - General 2 02-10-2005 06:15 PM
Can't change permissions for mnt/windows(XP) webwolf70 Linux - General 2 08-13-2004 02:35 PM
/mnt/fat32 stopped working virgin Linux - Newbie 6 10-17-2003 12:07 PM


All times are GMT -5. The time now is 02:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration