[arch-general] strange issue about mount
Adamzyg
adamzyg at gmail.com
Thu Sep 30 09:27:27 EDT 2010
hi,
I found some strange issue about mount. My portable hard disk has some
partitions like below:
* Device Boot Start End Blocks Id System*
*/dev/sdb1 * 63 91747214 45873576 7 HPFS/NTFS*
*/dev/sdb2 91747215 194145524 51199155 7 HPFS/NTFS*
*/dev/sdb3 194145525 312576704 59215590 7 HPFS/NTFS*
first, I mount /dev/sdb1 like this
*$ sudo /bin/mount -t ntfs -o noatime,utf8,rw,uid=1000,gid=1000,umask=022
/dev/sdb1 /media/sdb1 *
*mount: warning: /media/sdb1 seems to be mounted read-only.*
*$ echo $?*
*0*
*
*
I check the /etc/mtab,
*$ tail -5 /etc/mtab *
*devpts /dev/pts devpts rw 0 0*
*shm /dev/shm tmpfs rw,nosuid,nodev 0 0*
*/dev/sda1 /boot ext2 rw,noatime 0 0*
*/dev/sda4 /home ext4 rw,noatime 0 0*
*/dev/sdb1 /media/sdb1 ntfs ro,noatime,utf8,uid=1000,gid=1000,umask=022 0 0*
*
*
sure, i can not create file in the dir /medie/sdb1
*$ pwd&&touch haha*
*/media/sdb1*
*touch: cannot touch `haha': Read-only file system*
*
$ id
uid=1000(adamzyg) gid=1000(adamzyg) groups=1000(adamzyg),92(audio)
*
Question 1: mount with -o rw does not work, why?
second, if I continue mount /dev/sdb2 like this:
*$ sudo /bin/mount -t ntfs -o noatime,utf8,rw,uid=1000,gid=1000,umask=022
/dev/sdb2 /media/sdb2*
*$ echo $?*
*0*
*
$ tail -5 /etc/mtab
shm /dev/shm tmpfs rw,nosuid,nodev 0 0
/dev/sda1 /boot ext2 rw,noatime 0 0
/dev/sda4 /home ext4 rw,noatime 0 0
/dev/sdb1 /media/sdb1 ntfs ro,noatime,utf8,uid=1000,gid=1000,umask=022 0 0
/dev/sdb2 /media/sdb2 ntfs rw,noatime,utf8,uid=1000,gid=1000,umask=022 0 0
Strange: I also can not create file in /medie/sdb2
$ pwd&&touch haha
/media/sdb2
touch: cannot touch `haha': Permission denied
*
Question 2: mtab show rw, why can not create file?
Question 3: twice mount with same option, why first ro, another rw?
------------------- information abount ntfs mount
---------------------------------
Mount options for ntfs
iocharset=name
Character set to use when returning file names. Unlike VFAT,
NTFS suppresses names that contain
unconvertible characters. Deprecated.
nls=name
New name for the option earlier called iocharset.
utf8 Use UTF-8 for converting file names.
uni_xlate={0|1|2}
For 0 (or `no' or `false'), do not use escape sequences for
unknown Unicode characters. For 1
(or `yes' or `true') or 2, use vfat-style 4-byte escape
sequences starting with ":". Here 2 give
a little-endian encoding and 1 a byteswapped bigendian
encoding.
posix=[0|1]
If enabled (posix=1), the filesystem distinguishes between
upper and lower case. The 8.3 alias
names are presented as hard links instead of being suppressed.
This option is obsolete.
uid=value, gid=value and umask=value
Set the file permission on the filesystem. The umask value
is given in octal. By default, the
files are owned by root and not readable by somebody else.
Best Regards.
More information about the arch-general
mailing list