LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No permission to write to FAT32 partition (https://www.linuxquestions.org/questions/linux-newbie-8/no-permission-to-write-to-fat32-partition-411638/)

smiley_lauf 02-04-2006 01:05 PM

No permission to write to FAT32 partition
 
I have partitioned hda into 4 partitions (20G each); I am in Ubuntu part hda8 and my Win Xp is on hda1.

Linux has recog the 2 other partitions as hda5 and hda6 (there is a small yellow lock on it); but I can read but not write to the discs; I have used mepis on other machine, and I was under the impression that linux can read and write on FAT32 formatted drives?

How do I enable this and give me permission to write to these drives?

Or should I format them using qtparted from wthin linux as FAT32 (because I used WINXp to format them to Fat32, will that make a diffrence?)

Thanks

J_K9 02-04-2006 01:10 PM

Hi,

No, all you have to do is give them the correct permissions. Try doing the following from the terminal:

Code:

$ su
Password:
# chmod a+rwx /dev/hda5
# chmod a+rwx /dev/hda6

That should work. Please let me know if it doesn't! :)

Cheers,

-jk ;)

smiley_lauf 02-04-2006 01:22 PM

Nope, no luck permission are set only for the owner, not group or others.

J_K9 02-04-2006 01:35 PM

Quote:

Originally Posted by smiley_lauf
Nope, no luck permission are set only for the owner, not group or others.

That's what the chmod commands are doing - changing the permissions to allow everyone to have read, write and execute access.

Anyway, a simple search on this site turned up this. I quote, "We aren't here to do your homework, but to help if it goes wrong" :)

Cheers,

-jk

smiley_lauf 02-04-2006 01:43 PM

Here is my fstab file:
===
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hda8 / reiserfs notail 0 1
/dev/hda1 /media/hda1 ntfs defaults 0 0
/dev/hda5 /media/hda5 vfat defaults 0 0
/dev/hda6 /media/hda6 vfat defaults 0 0
/dev/hda7 none swap sw 0 0
/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0

==

The problem is that in ubuntu when I try to edit the file and save, I get further permission errors; I am not sure how to do this editign in terminal window. I am used to login in as root chnage the stuff and log back in. the sudo thingy i have not grown to learn as yet; perhaps u could show me??

Nylex 02-04-2006 01:53 PM

Instead of using su to become root, you just type sudo, followed by the command you want to run with root privileges, e.g.

$ sudo emacs /etc/fstab

will open your fstab in Emacs and you should be able to save the changes (obviously replace emacs with whatever editor you use!).


All times are GMT -5. The time now is 10:33 AM.