Talk:HOWTO Mount Windows partitions (DOS, FAT, NTFS)

From Gentoo Linux Wiki

Jump to: navigation, search

Contents

[edit] wrong octal format

The author of the HOWTO forgot to put a 0 in front of umask numbers. umask numbers are octal, not decimal, and this is distinguished only when a zero is added at the begining of a number. For instance, 123 is different from 0123; while 123 means 1*10^2+2*10^1+3*10^0, 0123 means 1*8^2+2*8^1+3*8^0.

[edit] august 2005 rewrite

I got really tired of fielding the same question on #gentoo over and over again on how to mount VFAT/NTFS filesytems with certain options, etc, and figured there was on here. I cleaned it up a bit to make it more reader-friendly (I hope), and cover the basic options that someone might need. I didn't include anything about the kernel's ability to do write support, because I don't want someone turning it on and then expecting it to work 100%. -- Steve

[edit] It doesn't make a difference

% touch aaa
% touch bbb
% chmod 0123 aaa
% chmod 123 bbb
% ll aaa bbb
---x-w--wx 1 pawel users 0 Oct 15 13:06 aaa
---x-w--wx 1 pawel users 0 Oct 15 13:06 bbb

It is good to know that it is octal value but you don't need to type 0.

[edit] Annoying warning

$ mv aaa /mnt/g
mv: preserving times for `/mnt/g/aaa': Operation not permitted

How to get rid of this warning? Operation succeeds but I get this error for every copied or moved file.

$ mount|grep '/mnt/g'
/dev/hda14 on /mnt/g type vfat (rw,umask=0)
Personal tools