Thursday, March 11, 2010

Accessing NTFS partitions in Linux

 

Mount NTFS file system with read only access

NTFS kernel support

Majority of current Linux distributions supports NTFS file system out of the box. To be more specific, support for NTFS file system is more feature of Linux kernel modules rather than Linux distributions. First verify if we have NTFS modules installed on our system.

ls /lib/modules/2.6.30/kernel/fs/ | grep ntfs

Check for NTFS kernel support, if NTFS module is present. Let's identify NTFS partition.

Identifying partition with NTFS file system

One simple way to identify NTFS partition is:

fdisk -l | grep NTFS

For our example lets assume that a partition named /dev/sdb1 is the NTFS partition.

First create a mount point:

mkdir /mnt/ntfs

Then simply use mount command to mount it:

mount -t ntfs /dev/sdb1 /mnt/ntfs

Now we can access NTFS partition and its files with read write access.

 
Things You Should Know About Linux !!!