How to mount your NTFS drive into your Linux Box? Find the steps below :
- Download ntfs-3g from http://www.ntfs-3g.org/
The NTFS-3G driver is an open source, freely available read/write NTFS driver for Linux, FreeBSD, Mac OS X, NetBSD, and Haiku. It provides safe and fast handling of the Windows XP, Windows Server 2003, Windows 2000 and Windows Vista file systems. Most POSIX file system operations are supported, with the exception of full file ownership and access right support. - Compile the source
# tar -zxvf ntfs-3g-1.913.tgz
# cd ntfs-3g-1.913
# ./configure
# make
# make check
# make install
The program path is /usr/local/bin/ - Check your disk partition
[root@konang]# /sbin/fdisk -l
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 4 32098+ de Dell Utility
/dev/sda2 * 5 3350 26876745 7 HPFS/NTFS
/dev/sda3 3351 9725 51207187+ f W95 Ext'd (LBA)
/dev/sda5 3351 8429 40797036 7 HPFS/NTFS
/dev/sda6 8430 8462 265041 83 Linux
/dev/sda7 8463 8593 1052226 82 Linux swap / Solaris
/dev/sda8 8594 9725 9092758+ 83 Linux - Create mount directory
# mkdir -p /mnt/windows-c
# mkdir -p /mnt/windows-d - Put into RC file /etc/rc.d/rc.local (load automatically when reboot)
mount -t ntfs-3g /dev/sda2 /mnt/windows-c
mount -t ntfs-3g /dev/sda5 /mnt/windows-d - Test
# df
[root@konang]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda8 8807924 7444172 909116 90% /
/dev/sda6 256666 15646 227768 7% /boot
tmpfs 233164 0 233164 0% /dev/shm
/dev/sda1 32018 7322 24696 23% /mnt/flashdisk
/dev/sda2 26876744 17725572 9151172 66% /mnt/windows-c
/dev/sda5 40797032 16751732 24045300 42% /mnt/windows-d - List
# cd /mnt/windows-c
# ls -asl /mnt/windows-c
[root@konang]# ls -asl /mnt/windows-c
total 773752
12 drwxrwxrwx 1 root root 12288 Sep 13 19:02 .
8 drwxr-xr-x 9 root root 4096 Aug 10 15:42 ..
1 -rwxrwxrwx 1 root root 257 Aug 22 2006 adaaja.csv
8 drwxrwxrwx 1 root root 8192 Mar 9 2007 Alfresco
8 drwxrwxrwx 1 root root 8192 Jun 15 2006 apache
0 drwxrwxrwx 1 root root 0 Feb 8 2006 apachefriends
0 -rwxrwxrwx 1 root root 0 Aug 11 2004 AUTOEXEC.BAT
1 -rwxrwxrwx 1 root root 211 Dec 12 2005 boot.ini
0 -rwxrwxrwx 1 root root 0 Aug 11 2004 CONFIG.SYS
8 drwxrwxrwx 1 root root 8192 Feb 7 2006 dell
4 -rwxrwxrwx 1 root root 3696 Nov 19 2005 dell.sdr
4 drwxrwxrwx 1 root root 4096 Aug 6 09:26 Documents and Settings
4 drwxrwxrwx 1 root root 4096 Nov 19 2005 DRIVERS
4 drwxrwxrwx 1 root root 4096 Jul 24 13:28 EasyEclipse-for-LAMP-1.2.. - Done
