November 2010
jurjen@lwp-host:~$ mount|grep D
jurjen@lwp-host:~$ grep D /etc/fstab
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
UUID=30e5610c-0252-4057-8be0-ea5db6812829 none swap sw 0 0
/dev/sda3 /mnt/D auto user,noauto 0 0
jurjen@lwp-host:~$ sudo mkfs.ntfs /dev/sda3
Cluster size has been automatically set to 4096 bytes.
Initializing device with zeroes: 100% - Done.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
jurjen@lwp-host:~$ mount /mnt/D #does not work for the user
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://ntfs-3g.org/support.html#unprivileged
jurjen@lwp-host:~$ sudo mount /mnt/D #so must mount as root
jurjen@lwp-host:~$ mount|grep D
/dev/sda3 on /mnt/D type fuseblk (rw,noexec,nosuid,nodev,allow_other,blksize=4096)
jurjen@lwp-host:~$ echo blah > /mnt/D/blah.txt
jurjen@lwp-host:~$ cat !$
cat /mnt/D/blah.txt
blah
Note | |
---|---|
It may be useful to remove the |
Warning | |
---|---|
With the options as used, NTFS files are not handled with UNIX ownership and permissions. I'm not sure whether that is at all possible. |