LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How do I mount an NTFS drive? (https://www.linuxquestions.org/questions/linux-hardware-18/how-do-i-mount-an-ntfs-drive-101273/)

esv5454 10-07-2003 11:58 AM

How do I mount an NTFS drive?
 
I am having trouble reading the files on my secondary hard drive which is formatted using NTFS. It took me a while but I figured out how to mount the drive using the GUI in HardDrake and I successfully mounted it to /mnt/windows but when I go into that directory it shows up as the correct size HD (60 GB) but it says that it is empty when in fact it has about 30 GB worth of data on it. I thought that maybe the data had been deleted somehow so I hooked it up to another computer with Windows XP on it and sure enough, everything was still there. I don't know why I can't read the information on it but it's annoying me and I would greatly appreciate any help you can give me. Thanks in advance!

flamesrock 10-07-2003 12:47 PM

create the directory /windows in /
Go to /etc/fstab

->Add the line

/dev/hdXY /windows ntfs defaults 0 0

where x is the drive, most likely a, and Y is the partition number.

After that you can mount it by either typing:

mount /dev/hdaXY /windows

or restarting the computer.

Skyline 10-07-2003 03:53 PM

Here's a typical line for /etc/fstab - substitute in your partition and mount point as appropriate.

/dev/hda1 /mnt/windows ntfs umask=0222,auto,ro 0 0

esv5454 10-07-2003 07:55 PM

I tried adding those lines to fstab and it still didn't work. It mounts the drive (at least it shows up as being mounted under windows) but it still doesn't show any of the files or directories on that hardrive. I'm not sure what the problem is but it's getting the best of me.. I'm pretty new to linux so any help you guys can give is greatly appreciated :)

Skyline 10-07-2003 08:25 PM

Can you post the output of : (as root user on a command line)

cat /etc/fstab ; fdisk -l


All times are GMT -5. The time now is 01:28 AM.