image: linux NTFS fstab screenshot
Automatically mount an NFTS partition at boot time by adding an entry to /etc/fstab
R E L A T E D   C O N T E N T
ADVERTISEMENT

Hands on: It’s all write now

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

Barry Shilliday, Personal Computer World 13 Dec 2006
ADVERTISEMENT

Many people coming to Linux for the first time will be dual-booting with a Windows XP installation on their hard drive. Those who use Linux day-to-day might still want to boot into Windows for a specific application they need. For these people some compatibility with NTFS, one of the filesystems Windows uses, is particularly useful.

For many years Linux has supported full read-only support for NTFS. Unlike open filesystems such as ext3 and Reiserfs, NTFS is closed and proprietary and has had to be reverse-engineered. This has meant limited write support, which until relatively recently has been considered too risky for any use besides testing and development. The good news is that things have moved on a lot.

The Linux NTFS project provides a set of tools called ‘ntfsprogs’. The suite includes a tool to clone an NTFS partition, another to check consistency and fix problems, and another to resize an NTFS filesystem. All these tools are completely safe and have been used frequently by many Linux distributions. For example, when you install Linux and have the chance to free up some space from a Windows installation by resizing the partition, behind the scenes it is these tools that perform the checks and the resize.

A later addition to these tools is ‘ntfsmount’, a command that allows you to mount, and therefore access, an NTFS filesystem under Linux. This means there are two methods to mount an NTFS filesystem: the traditional kernel driver, which has been around for years; and the new userspace driver included in ntfsmount. The userspace driver is more up to date than the kernel driver and offers some safe support for writing as well as reading. As the name implies, the userspace driver does not need a driver in the kernel; it uses the ‘fuse’ or Filesystem in Userspace system instead.

Obtaining ntfsprogs
Most Linux distributions include ntfsprogs themselves. If you’re using Ubuntu 6.10 (‘Edgy Eft’) you can install a recent copy with ‘sudo apt-get install ntfsprogs’ or load the Synaptic GUI for the point-and-click method.

Few, if any, distributions will have the latest version, which might have some big performance or feature enhancements, as well as the usual bug fixes. To compile and install the latest version, head over to the project’s website and download the source code. Regular readers will be familiar with what comes next, the extraction, build and install:

# tar xfvz ntfsprogs.tar.gz

# cd ntfsprogs

# ./configure

# make install

Ensure the fuse development libraries are installed or ‘ntfsmount’ will not be built. On Edgy you can install these with ‘sudo apt-get install libfuse-dev’. For ntfsmount to work you will also need the fuse-utils package.

Once installed you can check everything works by using the ntfsresize command with the -i option. This checks and reports on the filesystem without making any changes. To check the filesystem on /dev/hda2 run:

$ sudo ntfsresize -i /dev/hda2


All Home Networks
Tags: Linux and Unix

Like this story? Spread the news by clicking below:

Post this to Delicious del.icio.us    Post this to Digg Digg this    Post this to reddit reddit!

Permalink for this story
R E A D E R   C O M M E N T S
M A R K E T P L A C E
Get your free demo of Numara Track-It! 8 - the leading help desk solution for IT related issues.
Make presentations, review documents & share your entire desktop. 30-day free trial! (cc required).
Discover how remote support can fuel your IT business in ways you've never thought of before.
Apply ITIL best practices at your service desk while eliminating integration cost. Learn more here.
WAN based, automated, daily vulnerability assessments. Click here to try and request our whitepapers.
Have your product or service listed here >   
Sponsored links
F E A T U R E D   J O B S
United Kingdom | VOSA
Management Information Analyst - Up to £30,231 plus benefits - South West This is an excellent opportunity for an experienced Business Analyst or an ambitious Information Analyst to influence a national organisation and contribute to ... more >
Solihull, United Kingdom | Enzen Global Limited
Business Analyst - £30,000 - £35000 - Solihull We are in need of a Business Analyst with strong analytical skills and a penchant for learning the domain knowledge of the Utilities sector (Gas industry in ... more >
Cardiff, United Kingdom | University of Wales
Projects Officer - £26,665 - £30,912 - Cardiff The Projects Officer will work on specific projects under the direction of the Head of Information Services. It is expected that these will concentrate on the redevelopment ... more >
United Kingdom | VOSA
Data Assurance Manager - Up to £30,231 plus benefits - SouthwestEnjoy this exciting opportunity to drive your career forward and really make your mark in our large, national organisation. At VOSA your specialist skills will ... more >
More job opportunities