Saturday, March 1, 2008

NTFS

1) Find the exact matching distribution in the kernel-module-ntfs dists at:
http://www.linux-ntfs.org/content/view/128/64/
(must match the answer to uname -r)

# uname -r
2.6.9-55.ELsmp

If you get the above you need to download (kernel-module-ntfs-2.6.9-55.ELsmp-2.1.20-0.rr.10.0.i686.rpm)
http://prdownloads.sourceforge.net/linux-ntfs/kernel-module-ntfs-2.6.9-55.ELsmp-2.1.20-0.rr.10.0.i686.rpm

# get http://prdownloads.sourceforge.net/linux-ntfs/kernel-module-ntfs-2.6.9-55.ELsmp-2.1.20-0.rr.10.0.i686.rpm

2) Install the RPM using
# rpm -ihv kernel-module-ntfs-2.6.9-55.ELsmp-2.1.20-0.rr.10.0.i686.rpm
PrĂ©paration… ########################################### [100%]
1:kernel-module-ntfs-2.6.########################################### [100%]

# /sbin/modprobe ntfs
# dmesg|grep NTFS
NTFS driver 2.1.22 [Flags: R/W MODULE].

That’s better, almost done…

3) Now check the drive which you want to mount using "fdisk -l"

# fdisk -l

Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1318 10482412+ 83 Linux
/dev/sda3 1319 2623 10482412+ 83 Linux
/dev/sda4 2624 30515 224042490 5 Extended


Disk /dev/sdb: 251.0 GB, 251000193024 bytes
1 heads, 63 sectors/track, 7781504 cylinders
Units = cylinders of 63 * 512 = 32256 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 2 7781071 245103705 7 HPFS/NTFS

Here you see /dev/sdb1 as the NTFS partition.

4) Now to mount the NTFS partition /dev/sdb1

# cd /
# mkdir windows
# mount -t ntfs -o nls=utf8 /dev/sdb1 /windows
# cd /windows

And you are done the NTFS partition is mounted as /windows

No comments: