LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mount vfat read/write problem (https://www.linuxquestions.org/questions/linux-general-1/mount-vfat-read-write-problem-222935/)

dhammika 08-27-2004 12:25 AM

mount vfat read/write problem
 
Hi all.....

my dev./hda look like this

Device Boot Start End Blocks Id System
/dev/hda1 1 1275 10241406 c Win95 FAT32 (LBA)
/dev/hda2 * 1276 1288 104422+ 83 Linux
/dev/hda3 1289 2308 8193150 83 Linux
/dev/hda4 2309 2433 1004062+ f Win95 Ext'd (LBA)
/dev/hda5 2309 2433 1004031 82 Linux swap

I mount

mount -t vfat /dev/hda1 /mnt/win_C

but the problem is when i want delete folders in win_C , it replies read only file system error

rm -fr test

rm: cannot remove `test': Read-only file system


any thing wrong here. why it is became a read only file system?..............


:Pengy:

Boby 08-27-2004 03:23 AM

Hello!
Put this in your /etc/fstab file. When you boot next time you'll have permission to write/delete as normal user.

Code:

/dev/hda1              /mnt/win_C            vfat    umask=000,iocharset=iso8859-1,codepage=850,users        0 0
Hope this helped!
Boby

dhammika 08-27-2004 03:46 AM

Hi ............Boby
I insert the line to /etc/fstab

But it is still a read only file system .. I cant create any thing in /mnt/win_C
still the same error


Any idea......
My kernel is RHEL 2.2.21-4.EL

r0b0 08-27-2004 06:17 AM

Post the contents of your /etc/fstab file here please.

dhammika 08-27-2004 06:25 AM

Yes here it is

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda1 /mnt/win_C vfat umask=000,iocharset=iso8859-1,codepage=850,users 0 0


All times are GMT -5. The time now is 03:12 AM.