LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-09-2009, 02:23 PM   #1
cylux
LQ Newbie
 
Registered: May 2009
Location: Toronto
Distribution: Slamd64
Posts: 6

Rep: Reputation: 0
ntfs partition not automounting with fstab


Good afternoon.

I'm having some issues with my fstab. I have a partition on a hard disk within my computer that I would like to mount automatically at boot time and that I would like to have my main user be able to read and write to. I also expect to be able to mount and unmount the partition with my main user.

I am using the following line but for some reason none of the expected behaviour takes place. It does not automount, and my main user cannot mount the partition. Even if I use root to mount the partition my main user cannot even cd into it.

Here is the fstab line.
Code:
/dev/sda1	/media/sataOne    ntfs-3g        rw,users,nls=utf8,noauto 1 2
Thanks in advance.

Last edited by cylux; 05-10-2009 at 04:44 PM.
 
Old 05-09-2009, 03:20 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948Reputation: 1948
The "noauto" option is what's keeping it from mounting at boot-time. You need to remove it.

Also, you probably need to specify some user permissions with a umask option, since ntfs doesn't support them natively. For example, "umask=000" will make the drive fully accessible to everyone (equal to 777 permissions, the numbers are the inverse of the permissions you want). Not that I recommend giving it 777 permissions though.

Read the ntfs-3g man page for more on the options available.
 
Old 05-09-2009, 10:50 PM   #3
cylux
LQ Newbie
 
Registered: May 2009
Location: Toronto
Distribution: Slamd64
Posts: 6

Original Poster
Rep: Reputation: 0
I followed your instructions with the umask option. I still cannot cd into the directory with my main user.

EDIT: I cannot even mkdir with root, says I don't have valid permissions.

Last edited by cylux; 05-10-2009 at 12:03 AM.
 
Old 05-10-2009, 01:33 AM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 13,041

Rep: Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740
you logged into ( gnome,kde,e17,...) as root ?
or from the terminal ran
Code:
su -
cd /some/place
mkdir SomeFolder
and you got and error stating that you do not have permission.
what happens when you use this in fstab
-- make sure that THERE IS THIS FOLDER " /media/sataOne " --
Code:
/dev/sda1      /media/sataOne        ntfs-3g    defaults        0 0
then REBOOT
 
Old 05-10-2009, 10:43 AM   #5
cylux
LQ Newbie
 
Registered: May 2009
Location: Toronto
Distribution: Slamd64
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
you logged into ( gnome,kde,e17,...) as root ?
or from the terminal ran
Code:
su -
cd /some/place
mkdir SomeFolder
From the terminal ran those commands.

So I took your advice and used that fstab line, still no luck. Cannot mkdir with root, does not automount at boot and cannot cd into directory as main user.
 
Old 05-10-2009, 11:12 AM   #6
bruceblacklaws
LQ Newbie
 
Registered: May 2009
Location: Cape Town, South Africa
Distribution: Gentoo
Posts: 6

Rep: Reputation: 0
Write a script that will mount the ntfs partition. Set it to run at boot time.
 
Old 05-10-2009, 04:11 PM   #7
cylux
LQ Newbie
 
Registered: May 2009
Location: Toronto
Distribution: Slamd64
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bruceblacklaws View Post
Write a script that will mount the ntfs partition. Set it to run at boot time.
Even if I mount the partition as root, I cannot write to it as root.
 
Old 05-10-2009, 04:19 PM   #8
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,956

Rep: Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785
Post the output of: ls -l /media/sataOne/, showing your permissions.
 
Old 05-10-2009, 04:35 PM   #9
cylux
LQ Newbie
 
Registered: May 2009
Location: Toronto
Distribution: Slamd64
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
Post the output of: ls -l /media/sataOne/, showing your permissions.
Code:
drwxr-xr-x  2 root root  4096 2009-05-07 13:31 sataONE
 
Old 05-10-2009, 05:02 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,985
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
And the output of

mount




Cheers,
Tink
 
Old 05-10-2009, 06:02 PM   #11
John VV
Guru
 
Registered: Aug 2005
Posts: 13,041

Rep: Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740Reputation: 1740
well if the output of
Code:
ls -l /media/sataOne
-----------------------
drwxr-xr-x  2 root root  4096 2009-05-07 13:31 sataONE
then you have a folder called
/media/sataOne/sataONE

then there is a location and naming problem

but the BIG problem
is you can not do anything as root
the root account seams to be dead if logging in AS ROOT will not allow you to use
"mkdir"

how did you edit /etc/fstab if root is not working?

how about mounting ( assuming that ROOT is working) the ntfs partition here
/mnt/windows
Code:
su -  ( or sudo if set up )
cd /
mkdir /mnt
mkdir /mnt/windows
------ /etc/fstab ---------
/dev/sda1 /mnt/windows ntfs-3g defaults 0 0
 
  


Reply

Tags
automount, fstab


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-mounting ntfs partition in fstab Mithrilhall Linux - Newbie 3 09-22-2009 01:03 AM
mounting ntfs partition automatically on boot with fstab dasy2k1 Ubuntu 4 11-18-2008 12:57 AM
Fedora 7 - Mounting NTFS Partition with fstab edooze Fedora 3 07-21-2007 11:48 PM
fstab and grub and NTFS partition on SATA Moses Palmér Linux - Newbie 3 02-25-2005 06:24 AM
Compiled RH7.3 to read WinXP NTFS partition, mounts in Console, but can't mount fstab BlackDogg Linux - Newbie 20 08-05-2002 11:15 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration