You are not logged in.

#1 2005-05-04 17:47:28

fdrebin
Member
Registered: 2005-04-25
Posts: 152

mounting fat writable

how can i mount a windows fat partition to be writable
mount /dev/hda1 /mnt/mydrive mounts the partition but non-writable ???

Offline

#2 2005-05-04 17:56:54

polarrr
Member
Registered: 2004-09-12
Posts: 91

Re: mounting fat writable

What does your fstab look like?

Offline

#3 2005-05-04 18:02:00

fdrebin
Member
Registered: 2005-04-25
Posts: 152

Re: mounting fat writable

this is what i want to know - what to put here ...

Offline

#4 2005-05-04 18:08:24

T-Dawg
Forum Fellow
From: Wilmington, NC
Registered: 2005-01-29
Posts: 2,734

Re: mounting fat writable

/dev/hda1   /mnt/mydrive   vfat   defaults,umask=0000    0 0

Offline

#5 2005-05-04 18:08:46

polarrr
Member
Registered: 2004-09-12
Posts: 91

Re: mounting fat writable

Ah alright.

I'll show you mine. Whether it's right or wrong, I don't know, but works for me.

/dev/hda5              /mnt/storage vfat gid=100,uid=1000,codepage=437,shortname=mixed,umask=000 0 0
/dev/hda7                swap swap defaults 0 0
/dev/hda6              / reiserfs defaults 0 0
/dev/hda8              /home reiserfs defaults 0 0

I especially like the shortname bit since the system can correctly recognize the upper/lower case directory without turning everything into lower case big_smile

Actually I got that from one of the articles on osnews. If you are interested, here it is.

http://www.osnews.com/story.php?news_id=9681&page=2

Offline

#6 2005-05-04 18:23:38

fdrebin
Member
Registered: 2005-04-25
Posts: 152

Re: mounting fat writable

so umask=000 is the command to make it writableor what does this do ?

Offline

#7 2005-05-04 18:26:58

polarrr
Member
Registered: 2004-09-12
Posts: 91

Re: mounting fat writable

I think that's correct. But I'm sure someone who knows better than me can answer that. I'm just using what works without a whole a lot of technical stuff.

Offline

#8 2005-05-04 18:31:22

T-Dawg
Forum Fellow
From: Wilmington, NC
Registered: 2005-01-29
Posts: 2,734

Re: mounting fat writable

fdrebin wrote:

so umask=000 is the command to make it writableor what does this do ?

Yes. The 0's allow read write and exec. 1 is read and write. 2 is read and exec. 3 is read. 4 is write and  exec. 5 is write. 6 is exec. 7 is no permissions. Think of everything in that directory with a default chmod of 777, the umask subracts from those permisions, only when dealing with fstabs. The very first 0 (there are four) represents octal not decimal.
The first 0 is owner, second is groups, third is everyone else.
Thats the best I can explain it without getting to technical.

Offline

#9 2005-05-04 18:41:01

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: mounting fat writable

I use

/dev/sda5               /mnt/shared      vfat     rw,noatime,nosuid,nodev,noexec,nouser,async,umask=0,fmask=111 0 0

rw is for readwrite,
no* is for blocking many things (see man, I took these options from a webpage, I think),
async, umask... I don't remember (see above line)
fmask=111 makes the executable flag dissapear. This way I make sure I have no executable files copied from the FAT partition to the reiser partition.

Of course, some of the options might be redundant or not appliable, but I didn't have time to do extensive research on this.

Offline

Board footer

Powered by FluxBB