LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2006, 11:45 PM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
mounting external hard drive in /etc/fstab


2 questions:

1) I'm trying to mount an USB external hard drive for a specific user. This is in my etc/fstab

/dev/sdc1 /media/usbdisk ext3 rw,user,uid=500,gid=users,umask=0022 0 0

I keep getting this error:
[17482743.264000] EXT3-fs: Unrecognized mount option "uid=500" or missing value

What am I missing?

Now if I mount it this way, it works fine, but it belongs to root:
sudo mount /dev/sdc1 /media/usbdisk

Then I have to chown the drive and it gets annoying after every reboot. Any ideas?

2) When booting up the computer, the samba shares in my /etc/fstab don't load up. I have to do sudo mount -a

Here is the entry in /etc/fstab
//192.168.1.5/share /mnt/share cifs auto,credentials=/home/username/.smbpasswd 0 0

Never had this problem when using RedHat. It automounted the samba shares for me immediately. Any ideas? I am using Ubuntu 6.06
 
Old 11-07-2006, 06:12 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Micro420
I keep getting this error:
[17482743.264000] EXT3-fs: Unrecognized mount option "uid=500" or missing value
That is what I would expect. The uid=, gid=, and umask= options pertain to fat file systems (and maybe some others) which don't have the ability to assign indivual owners, groups, and permissions to individual files and directories. But ext3 has that ability, and so these options aren't used with it. If your usb drive truly has an ext3 fs on it, with the fs mounted, you should be able to chown and chmod /media/usbdisk and any files and directories within it, and those settings should persist between mounts. If it is not persisting, then something else must be changing them back.

Quote:
2) When booting up the computer, the samba shares in my /etc/fstab don't load up. I have to do sudo mount -a

Here is the entry in /etc/fstab
//192.168.1.5/share /mnt/share cifs auto,credentials=/home/username/.smbpasswd 0 0

Never had this problem when using RedHat. It automounted the samba shares for me immediately. Any ideas? I am using Ubuntu 6.06
You can check the startup scripts. Probably mount -a is run in /etc/rc.d/rc.sysinit, but the network is not running at that point. You could add your mount -a command to /etc/rc.d/rc.local which should execute after the network is started.

Ummm ... I was thinking RH when I talked about rc.sysinit and rc.local. Ubuntu may do something different, but the same concepts should apply (unless you're a victim of their new upstart system).
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting external hard drive perrywillis@cox.net SUSE / openSUSE 5 10-16-2006 02:22 AM
Mounting my external hard drive... Azzath Linux - Hardware 8 02-26-2005 04:27 AM
mounting an external hard drive adin Linux - Hardware 1 01-04-2005 05:18 AM
external hard drive mounting. gonus Debian 5 08-27-2004 03:51 PM
external hard drive mounting blahJake Debian 3 04-02-2004 07:30 PM


All times are GMT -5. The time now is 02:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration