LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 08-19-2007, 12:55 AM   #1
jzimm0007@msn.com
Member
 
Registered: Aug 2007
Location: Hamilton, OH
Distribution: fedora 8
Posts: 31

Rep: Reputation: 15
Question mounting in fstab


This is my fstab file:
/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hda2 /media/windows ntfs defaults 0 0
//tommy/Tommy /media/samba cifs username=Guest,password=defaults,workgroup=mshome 0 0

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?
 
Old 08-19-2007, 05:49 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Have you tried something like this?
Code:
/dev/hda2        /media/windows          ntfs        ro               1   0
Your fstab doesn't look quite like mine, but that should mount it read-only.

After you change and save /etc/fstab as root, issue "mount -a" and if it doesn't work post the entire output like this:
Code:
root@silas:~# mount -a
mount: mount point /media/windows does not exist
mount: devpts already mounted or /dev/pts busy
root@silas:~#
That will let us know what the problem is there.

I am assuming you have the mount point /media/windows created?
 
Old 08-19-2007, 04:30 PM   #3
jzimm0007@msn.com
Member
 
Registered: Aug 2007
Location: Hamilton, OH
Distribution: fedora 8
Posts: 31

Original Poster
Rep: Reputation: 15
/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.
 
Old 08-19-2007, 08:13 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
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.)
 
Old 08-19-2007, 10:31 PM   #5
jzimm0007@msn.com
Member
 
Registered: Aug 2007
Location: Hamilton, OH
Distribution: fedora 8
Posts: 31

Original Poster
Rep: Reputation: 15
I am using fedora 6. It still doesn't mount automatically. It says mounting local filesystem [Failed].
 
Old 08-19-2007, 11:11 PM   #6
jzimm0007@msn.com
Member
 
Registered: Aug 2007
Location: Hamilton, OH
Distribution: fedora 8
Posts: 31

Original Poster
Rep: Reputation: 15
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?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting and fstab gawdin SUSE / openSUSE 3 05-07-2007 07:44 AM
fstab mounting subaruwrx Linux - Newbie 5 10-25-2004 07:36 AM
Mounting with /etc/fstab cpp Linux - General 4 04-09-2004 03:28 PM
Mounting / fstab problem pibby Linux - Newbie 6 12-31-2003 10:09 PM
fstab mounting Roy-Svork Linux - General 2 06-13-2003 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:09 PM.

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