LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cant write on my mounted drives (https://www.linuxquestions.org/questions/linux-newbie-8/cant-write-on-my-mounted-drives-306325/)

Niflheim 03-26-2005 11:08 AM

cant write on my mounted drives
 
yes.
i had mandrake and i could go into my winshit drives and do stuff. but now, i installed fedora core 3 and i cant write on these drives. alas! i can read whatever i want, but i cant write. and i think that's not normal because, you know, usually when someone can read he can write.
so what should i do? i checked the properties of each mounted partitions and then the access permissions. i then learnt that the owner could write and read but that the others could only read. so, i thougt i was smart and i logged in as root to change those permissions. but it wouldnt. id check whatever little square i wanted to be checked but, when i closed the properties windows and reopened it, its just as if id done nothing.
there was also that "appartenance" squares, down, wich said "user : root" "group : root". i thought id be nice to have those changed but it said i dont have the permissions.

im a bit upset because i thought that root was like god.

and all this writing just to say : so, how can i manage to write on these partitions?
(fat32 they are, of course)
thanks!

marvin the paranoid android

cylix 03-26-2005 11:17 AM

Type "mount"

It will tell you if the drive is mounted as rw (read/write), it may be only mounted as read.

Niflheim 03-26-2005 11:26 AM

oh its annoying because it says they are all rw
but even more annoying than that, is the fact that i made a couple of tests and discovered that not only i cant write on these partitions, but also that i cant write anywheeeere. i tried copying a file or creating a new folder absolutely everywhere (/, /home, /media, /usr...) and its always the same : "access denied. its impossible to write in blablabla".
i have to be in root to be able to write anything.

now im a bit worried you see.

Niflheim 03-26-2005 08:38 PM

there must be someone who knows :(

alienDog 03-26-2005 09:16 PM

You shouldn't be able to write to /usr or /home or / as a regular user, only as root, so that's normal. When it comes to writing to FAT32 partitions, you can set the user id (uid) group id (gid) and permission masks (dmask, fmask) for directories and files on FAT filesystems when mounting them. So:

Code:

mount /dev/whatever /mnt/whatever -o uid=yourusername,gid=yourgroup
will give you the ownership of the files on a FAT filesystem. By default ownership is given to whoever mounts the filesystem (in your case root). You might also want to experiment with fmask and dmask options (try dmask=777,fmask=666 and if that doesn't work try dmask=000,fmask=111. I don't remember which way is right). Take a look at mount command's manpage under subtitle: "Mount options for fat" for more information.

Niflheim 03-26-2005 09:51 PM

yessss, it worked!
aaaah, thanks so much, you don't even know how much it helped me.
there's no way i could ever have figured it out.

thaaanks!!

:D


All times are GMT -5. The time now is 01:39 PM.