[arch-general] strange issue about mount

Ionuț Bîru ibiru at archlinux.org
Thu Sep 30 09:30:20 EDT 2010


On 09/30/2010 04:27 PM, Adamzyg wrote:
> 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
>

no wonder. you are using ntfs which doesn't have write support. For that 
you need ntfs-3g

-- 
Ionuț


More information about the arch-general mailing list