How to enable NTFS read support in Red Hat Linux 8/9/Fedora Core Release 1/2/3.
NTFS partitions can be read and even written to in Linux, but by default in Red Hat, it's not included for legal reasons. I do not recommend write support unless you don't care about your data.
Windows NT/2000/XP/2k3 Server all use NTFS so using this howto will allow you to mount shares on a dual boot system.
Quote:To installl NTFS read support in Red Hat 9 (or 8.0) or Fedora Core release 1/2/3 do this:- First go here (click on the link)
[/url][url=http://www.linux-ntfs.org/]http://www.linux-ntfs.org/
You must match your kernel version with the NTFS rpm download in the tables listed on the link above.
For example, if your kernel version is 2.4.20-18.9 then download the corresponding rpm.
To find out what your kernel version is open a console and login as su -
then type
Code:
uname -a
The console should display something like this
Quote:root@c-1daa70d5 root]# uname -a 2.4.20-18.9
That's your kernel version. If you have a Pentium 4 then download the i686 version, if its a Pentium 3, go for I586 and so on.
Once downloaded do as follows:
Login as root and type
Code:
rpm -ivh kernel-ntfs-version.cpu.rpm
Obviously, in the example above, kernel-ntfs-version.cpu.rpm must match your downloaded rpm otherwise it will not work. Look at how it appears below when i installed the rpm.
Quote:[root@c-1daa70d5 rpms]# rpm -ivh kernel-ntfs-2.4.20-9.i686.rpm Preparing...Thats it, now you have read access to NTFS partitions, now its time to mount a those partitions.
########################################### [100%] 1:kernel-ntfs ########################################### [100%]
[root@c-1daa70d5 rpms]#
Open a console and as root type
Code:
fdisk -l
to list the partitions on your linux/windows system.
the output should look something like this:-
Quote:Disk /dev/hda: 40.0 GB, 40007761920 bytes 255 heads, 63 sectors/track, 4864 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1360 10924168+ c Win95 FAT32 (LBA)
/dev/hda2 1361 4863 28137847+ f Win95 Ext'd (LBA)
/dev/hda5 1361 3059 13647186 7 HPFS/NTFS
/dev/hda6 3060 3077 144553+ 83 Linux
/dev/hda7 3078 4776 13647186 83 Linux
/dev/hda8 4777 4863 698796 82 Linux swap
The fdisk -l command (that's as lowercase L as in list) we did above tells us that Windows XP in this case, is on /dev/hda5. We now have enough info to start mounting it.
Now you must create a directory that will hold the windows XP 'mount point'.
To do that type
Code:
mkdir /home/anyweb/winXP
or similar. It will be read/write as root but thats sufficient for this TIP. Once you have created the directory, now is time to mount it, so as root type the following:-
Code:
mount -t ntfs /dev/hda5 /home/anyweb/winXP
The two important parts above are
/dev/hda5
which we identified with fdisk -l and
/home/anyweb/winXP
which is simply a directory that we created to 'hold' the winXP mount.
to let NON root users have access to your NTFS mnt, add a line similar to the following (change to suit your mount setup) to /etc/fstab
Code:
/dev/hda5 /home/anyweb/winXP ntfs ro,umask=000 0 0
once done, lets 'submit' those changes to /etc/fstab
Code:
mount -a
cheers
anyweb