Simple clear advice in plain English

Hands on: It’s all write now

You can use tools to support NTFS well beyond read-only access

Mounting NTFS
If you want to use the kernel driver or you do not have ntfsprogs, you can mount an NTFS partition using the normal mount command:

$ sudo mount /dev/hda2 /mnt/xp

As above, this provides read-only support and makes all files readable by root only. To allow read-only access to anyone, add ‘-o umask=0’ to the mount command.

To use the more recent driver and get some safe writing support, use ntfsmount instead. Some distributions may need the ‘fuse’ kernel module loading first; run ‘modprobe fuse’ as root to do this. This step isn’t necessary with Ubuntu Dapper or Edgy versions. The ntfsmount command is almost identical to the standard mount:

$ sudo ntfsmount /dev/hda2 /mnt/xp

Since the filesystem is mounted as read-write, use the ‘-o uid=xxx’ option to mount under your own id; you can run the ‘id’ command to find your own numeric id. On most systems the first created user has an id of 1000.

The ntfsmount command offers some safe writing support but it is far from complete. Modifying an existing file will always work; creating and deleting files can sometimes fail. When a failure occurs it is because the driver cannot guarantee safety; no harm is ever done to the filesystem.

These restrictions do certainly limit the usefulness of the driver, but if safety is required above all, it is still a good step forward. As with the kernel driver, there is never a problem with reading files.

Should you want Linux to mount an NTFS filesystem automatically at boot time, add an entry to the file /etc/fstab. Be careful editing this file as any damage could cause the system not to boot correctly. The dmask and fmask options allow read and write to all users; use the uid option as shown above with the mount command in order to restrict access to one user.

Reader Comments

   

Add your comment

All fields must be completed. Your email address will not be displayed or used to send marketing messages.

All messages will be checked by moderators before appearing on the site.

See our Privacy Policy for more information.

Related articles

Pinnacle Studio HD 15 Ultimate

Pinnacle Studio HD 15 Ultimate video-editing software

A powerful but accessible set of video-editing tools, aimed at home users

Hands on: Running other operating systems alongside Linux

A look at the ins and outs of dual-boot setups

Ubuntu on the edge

Inside an Edgy release of Ubuntu and the new Flash player for Linux

Question & Answer

Q.Why are some of the keys on my keyboard doing strange...

> Read the answer

Q.Is my phone’s Bluetooth any use?

> Read the answer

Q.Can I switch boot drives so that I can work on older...

> Read the answer

Best deals on the web

img

Samsung RV520-A07

£359.98- Buy it now

img

Acer Aspire 5750G (LX.RXP02.019)

£399.99- Buy it now

img

Apple MacBook Pro (MD313B/A)

£904.37- Buy it now

Latest issue & subscription deals

Poll

Are you concerned about viruses that target mobile phones?

Jargon Buster

Computing terms explained in plain English

Virtual drive

A set of files seen by Windows as a separate hard disk.

Great shopping deals from Computeractive