Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-20-2003, 05:21 PM   #1
The Jedi Lord
LQ Newbie
Registered: Oct 2003
Location: Greece
Distribution: Red Hat 9
Posts: 4

Rep: Reputation: 0
How do I mount an NTFS disk with Red Hat 9

I have a dual OS system with Red Hat 9 and W2K. The HDD is split in 3 partitions 2 NTFS and a Linux Ext3 partition. Red Hat 9 was installed by a friend of mine who set it up so that it always automounted partition D: of W2K. The file system was FAT32. However, I changed it to NTFS and now it does not mount it.
Can you tell me how I can correct it?
Old 10-20-2003, 05:31 PM   #2
Registered: Sep 2003
Location: Coppell, Texas
Distribution: SUSE 10.1, Kubuntu 6.06 (Dapper)
Posts: 81

Rep: Reputation: 15
Linux has no capability to read/write NTFS volumes. Thats why they made it FAT32. Actually, I think there is a way to READ only, but Linux absolutely cannot write NTFS partitions. The automount was done in your /etc/fstab file, and it still believes its a vfat partition too.

To my knowledge I dont think there is an automated way to go from NTFS to FAT32 either. What you may need to do, if you have the room, is create another FAT32 partition and then move the files you wish to share to that partition/drive. Thats what I did on my system, since Im running XP and NTFS.

Hope that helps in the understanding, if not in practicality.
Old 10-21-2003, 06:37 AM   #3
LQ Newbie
Registered: Oct 2003
Posts: 11

Rep: Reputation: 0
Linux NTFS support exists

You can!
There is a Linux NTFS Project out there, and the page is quite explicit:

I have RedHat 9. I just selected NTFS ReadOnly support in the kernel and mounted it read only - RH9 comes shipped with this, intentionally or not.

It also comes with experimental write to NTFS, but this is dangerous. If you need to write, check out the project page for a more up to date rpm.

After enabling NTFS support:

mkdir /mnt/windows
mount /dev/hda1 /mnt/windows -t ntfs -r -o umask=0222
ls -l /mnt/windows

does the trick.
Old 10-21-2003, 07:01 AM   #4
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 31
You can just go to this site, down load the required module, and install it. Then, change the corresponding entry in fstab file, and you can read from the ntfs partitions.


Also, for finding you kernel version, type "uname -r" in a terminal. Since you use RH9, I think it will be 2.4.20-8.
Old 10-22-2003, 09:51 AM   #5
LQ Newbie
Registered: Oct 2003
Location: Mid West
Posts: 2

Rep: Reputation: 0
I have followed the instructions in the above however, I can not gain write access to my mounted drive.

I have used umask 0222, 0777, 0666, 0000. in my /etc/fstab file.

I can see each combination makes a difference however while logged in as SU and going to KONQUER... and right clicking the properties of the my /mnt/windows can not check the write properties of this folder.

When I can check and then click apply I get a filesharelist error.
Help please?
Old 10-22-2003, 10:12 AM   #6
LQ Newbie
Registered: Oct 2003
Posts: 11

Rep: Reputation: 0
Ignore this message (that is, my message, not the previous posting)!

I had started a reply but then I realised I wasn't answering the question.

Last edited by Daeljan; 10-22-2003 at 10:18 AM.
Old 11-20-2003, 04:09 PM   #7
The Jedi Lord
LQ Newbie
Registered: Oct 2003
Location: Greece
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
Sorry for the delay in replying.

The thing is, whenever I use mkdir /d, it cannot create the directory.
Old 11-29-2003, 04:05 PM   #8
The Jedi Lord
LQ Newbie
Registered: Oct 2003
Location: Greece
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
Ok, here's what I found:

[jedi@localhost jedi]$
[jedi@localhost jedi]$ cat /etc/redhat-release
Red Hat Linux release 9 (Shrike)
[jedi@localhost jedi]$ uname -r
[jedi@localhost jedi]$ rpm -q --queryformat "%{ARCH}\n" kernel

The error messages when I try to load the NTFS module are

[jedi@localhost jedi]$ /sbin/modprobe ntfs
/lib/modules/2.4.20-8/kernel/fs/ntfs/ntfs.o: create_module: Operation not permitted
/lib/modules/2.4.20-8/kernel/fs/ntfs/ntfs.o: insmod /lib/modules/2.4.20-8/kernel/fs/ntfs/ntfs.o failed
/lib/modules/2.4.20-8/kernel/fs/ntfs/ntfs.o: insmod ntfs failed
[jedi@localhost jedi]$ dmesg | grep NTFS
[jedi@localhost jedi]$ dmesg | grep NTFS
[jedi@localhost jedi]$ cat /proc/filesystems
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev tmpfs
nodev shm
nodev pipefs
nodev ramfs
nodev devpts
nodev usbdevfs
nodev usbfs
nodev autofs

and this is what I get when I open mtab:
/dev/hda3 / ext3 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
none /dev/pts devpts rw,gid=5,mode=620 0 0
none /dev/shm tmpfs rw 0 0
/dev/fd0 /mnt/floppy vfat rw,nosuid,nodev,user=jedi 0 0

and when I open fstab
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda2 /c vfat 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0

I am really lost...
Old 12-01-2003, 02:48 AM   #9
LQ Newbie
Registered: Oct 2003
Posts: 11

Rep: Reputation: 0
Well, I'm no expert in Linux myself, but I have access to my NTFS disk. I use Fedora Core 1 Linux. For your RedHat 9, I would try just re-installing the support again (i.e. de-install the rpm you currently have). If you do not have the rpm and are just using a kernel module, then for now, forget about it and just try the following.

Bear in mind that NTFS support in Linux should be read only. Although some rpms claim to have write support, read the small print abou it: it is dangerous. Enabling write support will probaby mean that you will irrepairably corrupt you NTFS partition at some point.

You also need to be logged in as root for all of this:

Go to

and download the rpm for your kenel build (2.4.20-8), making sure you make the correct processor choice.

Read through the instructions in :

[to locate the NTFS partion]

[to actually mount the volume]

I personally use the command
mount /dev/hdb1 /mnt/ntfsdisk -t ntfs -r -o umask=0222

You should be able to use exactly the same command, changing "hdb1" for the location of your NTFS disk. Make sure you have created a directory in /mnt where you want to mount the NTFS partition. Mine is called /mnt/ntfsdisk. As we are starting again, I'd delete and re-create your mount point incase there are any strange permissions associated with it.

Once you can mount the volume ok, convert the command to go in the fstab file:

[to automatically mount it a boot up]

First, locate any reference that tried to mount the partition in the past in fstab, and remove that line, otherwise there will be a conflict.

I don't see any reference to NTFS in your fstab file. If your NTFS partition is on hda2, then remove the following line:

/dev/hda2 /c vfat 0 0

I'm not sure what that line is for, but it seems to reference a FAT partition.
Also bear in mind that this file uses TABs, not spaces. Separate the parameters in a line with one tab.

Good luck!
Old 12-08-2003, 04:48 PM   #10
The Jedi Lord
LQ Newbie
Registered: Oct 2003
Location: Greece
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
But how doI become root?
Old 12-09-2003, 03:07 AM   #11
LQ Newbie
Registered: Oct 2003
Posts: 11

Rep: Reputation: 0
When your system starts up, you will need to do one of the following

(1)Log in as root. i.e. type 'root' as the username, and enter the password for root


(2)Log in as normal. In the console where you are working, type 'su' and press return. You will need to then enter the password for root.

If you do not know the password for root, then I'm afraid you have a big problem as you will not be able to administer the system, unless your own account has administrative priviliages.
Old 05-07-2004, 01:28 PM   #12
LQ Newbie
Registered: May 2004
Posts: 1

Rep: Reputation: 0

if you need to log on as root and don't know the password, if you are using the lilo boot loader you can hit [control] x at the boot screen and type linux 1, which will enter you into run lvl 1 of linux and you will get logged in as root without having to know the password and from there you can change it then log back out and in normally with the new root password.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount ntfs on to Red Hat 9 bkz81 Linux - Newbie 1 07-19-2005 03:13 PM
mount an ntfs disk ? qwijibow Linux - Newbie 2 06-25-2003 11:43 AM
Linux NTFS mount on RED HAT 8.0 metalhead730 Linux - Newbie 2 03-10-2003 04:52 PM
How do mount a NTFS disk in Linux Scratchmaster Linux - Newbie 4 08-15-2002 07:42 PM
Want to install Red Hat 7.0 on Win2k with NTFS disk stereoboy20 Linux - Software 12 11-09-2001 03:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration