LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   To read ntfs partions (https://www.linuxquestions.org/questions/linux-software-2/to-read-ntfs-partions-681337/)

sree45jith 11-05-2008 12:56 PM

To read ntfs partions
 
Hi..
i m using Rhel5 in my system with Win-Xp(dual boot), now i want my Rhel5 to read ntfs partion also..so which rpm should i install and wat 2 do after installing it..plz provid solution...

TB0ne 11-05-2008 01:18 PM

Quote:

Originally Posted by sree45jith (Post 3332632)
Hi..
i m using Rhel5 in my system with Win-Xp(dual boot), now i want my Rhel5 to read ntfs partion also..so which rpm should i install and wat 2 do after installing it..plz provid solution...

Should be automatically detected and mounted...have you looked?

Otherwise, specify the mount command with the -t option, for the ntfs file type. "man mount" will show you the command.

farslayer 11-05-2008 02:38 PM

you probably need to install ntfs-3G

http://www.ntfs-3g.org/


mount -t ntfs-3g /dev/sda1 /mnt/windows

TB0ne 11-05-2008 03:29 PM

Quote:

Originally Posted by farslayer (Post 3332709)
you probably need to install ntfs-3G

http://www.ntfs-3g.org/

mount -t ntfs-3g /dev/sda1 /mnt/windows

I thought that was installed by default these days? My last RHEL5 server was able to mount a Windows partition right off the bat.....but I did auto-update things, so perhaps it was shoveled down then....

farslayer 11-05-2008 06:21 PM

I couldn't say if it is, or is not installed by default..
I try to never assume something is there, but rather point to what to look for, and let the user check if it's present or not. :)

Junior Hacker 11-06-2008 03:08 AM

Both responses are correct yet incomplete.
Since the OP mentioned needing to read the ntfs partition (not write to it), the first response is more accurate.
If you do not see an access point in the directory tree such as /win or /mnt/win or something, then you'll need to make a directory to access the ntfs partition, make sure it's not mounted and mount it. First check with fdisk to see the name of the partition as such:
Code:

#fdisk -l
#mkdir /win
#umount /dev/xxx
#mount -t ntfs /dev/xxx /win

Replace xxx with the proper device name.
If you do decide to install ntfs-3g for read/write access, you should be able to install it with yum instead of the tarball from ntfs-3g.org. Then go through the same steps as before except replace ntfs with ntfs-3g in the mount command.
The mount command will have to be re-done upon every boot. If you want it to be mounted automatically upon every re-boot you'll have to put a line in /etc/fstab like so:
Code:

/dev/xxx    /win    ntfs    defaults    0    0
Or like so for ntfs-3g:
Code:

/dev/xxx    /win    ntfs-3g    defaults    0    0


All times are GMT -5. The time now is 03:53 AM.