LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-03-2008, 07:27 PM   #1
Romanus81
Member
 
Registered: Feb 2008
Posts: 201

Rep: Reputation: 31
mounting any device in fstab = Permission denied when trying to cd without root.


I keep having problems mounting partitions in my fstab.
I have all my docs in /dev/sda5, and
/dev/sda5 /home/owner/files ext3 defaults,umask=000 0 0 gives me an error
Code:
mount: wrong fs type, bad option, bad superblock on /dev/sda5,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
dmesg | tail gives me
Code:
EXT3-fs: Unrecognized mount option "umask=000" or missing value
I have also tried
"defaults,owner,users" (owner is my username, and is used with all the auto-generated options.)
umask=000,defaults
defaults,umask=000
umask=000,auto,users,owner,rw
defaults,owner
Someone online posted umask=0000, it gave the above error. Any use of umask=000 gives the above error.
Any idea what I need to do to access my documents and pictures without the need to su?
 
Old 06-03-2008, 08:09 PM   #2
symatic
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 242

Rep: Reputation: 32
this should mount your drive at boot:

Code:
/dev/sda5 /home/owner/files ext3 defaults 1 2
Now it really depends on your preference on how you wish to boot it. This will allow you to access your files, but there are better ways. This also assumes you are user 1000, you may be something else.

Code:
/dev/sda5 /home/owner/files ext3 defaults,UID=1000,GID=100 1 2
I suggest you 'man fstab'. This will give you some more insight into permissions and mounting.
 
Old 06-03-2008, 08:46 PM   #3
Romanus81
Member
 
Registered: Feb 2008
Posts: 201

Original Poster
Rep: Reputation: 31
Code:
EXT3-fs: Unrecognized mount option "UID=1000" or missing value
Is there something wrong with a package or something?
This is an exact copy of my fstab
Code:
/dev/sda6        swap             swap        defaults         0   0
/dev/sda3        /                ext3        defaults         1   1
/dev/sda1        /mnt/windows     ntfs-3g     noauto,owner     1   0
/dev/sda5 /home/owner/files ext3 defaults,UID=1000,GID=100 1 2


#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
#/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults        	 0   0
 
Old 06-03-2008, 10:20 PM   #4
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by Romanus81 View Post
Code:
EXT3-fs: Unrecognized mount option "UID=1000" or missing value
Is there something wrong with a package or something?
This is an exact copy of my fstab
Code:
/dev/sda6        swap             swap        defaults         0   0
/dev/sda3        /                ext3        defaults         1   1
/dev/sda1        /mnt/windows     ntfs-3g     noauto,owner     1   0
/dev/sda5 /home/owner/files ext3 defaults,UID=1000,GID=100 1 2


#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
#/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults        	 0   0
ext3 doesn't use uid or umask

Use chmod and chown as root to set correct perms for your files on your ext3 partition.

Edit:
man mount to see sections which list all the options for various file systems

Last edited by shadowsnipes; 06-03-2008 at 10:27 PM.
 
Old 06-03-2008, 10:39 PM   #5
Romanus81
Member
 
Registered: Feb 2008
Posts: 201

Original Poster
Rep: Reputation: 31
-_-
That did it, thank you. A 3 month headache solved in two commands...
I had to do
Code:
chown -R <username>  <mount point w/ partition mounted>
chgrp -R <groupname> <mount point w/ partition mounted>
If anyone searching this topic is wondering.
 
Old 06-03-2008, 11:24 PM   #6
symatic
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 242

Rep: Reputation: 32
Quote:
ext3 doesn't use uid or umask
You are correct sir
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
why is my permission denied to /etc/fstab CyrusArdain Linux - Newbie 4 05-24-2007 02:09 AM
Permission DENIED in /dev/hdb1 (NTFS) | fstab? BlueSpirit Slackware 2 09-03-2006 10:47 AM
NFS :: Permission denied after mounting, root works.. Devils_Guardian Linux - Networking 1 11-17-2004 10:40 AM
NFS mounting : Permission denied Bahador Linux - Networking 3 07-18-2003 04:33 AM
FSTAB / Permission Denied Error clearh20 Linux - Newbie 5 06-10-2003 12:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:06 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