Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to mount an ntfs partition on /dev/hda2, under /media/windows. It failes no matter what I do. One time I got it to say mounting local filesystems okay, error in line 8. Another time it said mounting local filesystem okay, mounting other filesystem failed. I tried rw with umask=0000, but it still failed. Everything else will mount. How can I edit the fstab file so that it mounts successfully?
/dev/hda2 /media/windows ntfs ro 1 0 did not work. I can mount it with mount /dev/hda2 /media/windows, but I want it to automount. I put in /dev/hda2 /media/windows ntfs auto 1 0 and did mount -a it worked without error.
Last edited by jzimm0007@msn.com; 08-19-2007 at 04:48 PM.
I don't know which Linux distribution you are using, because you didn't list it in your LQ UserCP, nor in your post. This is important information for those wanting to help you. Because your /etc/fstab looks nothing like mine in Slackware.
Open a terminal and issue "man mount" and "man fstab" and read those manual pages to gain an understanding of how these commands work. Especially the fstab manual page tells you about the different fields and what they do.
The line I copied for you to use above is taken from the NTFS mount of one of the comps on my LAN, with the device and mount point names changed to match yours, so you could copy and paste.
If you put "/dev/hda2 /media/windows ntfs auto 1 0" in your /etc/fstab and then issued "mount -a" and it worked without error, there is no reason it would not automount when you boot. (If it still doesn't, you didn't make that clear.)
I tryed ntfs-3g and it said block device was write protected. I read up on that in one of these forums and it said to set the Selinux policy to permissive, that worked. I put in /dev/hda2 /media/windows ntfs-3g rw,auto,defaults,umask=0000 0 0 for the fstab file. Who knew the answer could be that simple?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.