LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-25-2006, 03:24 PM   #1
tuntsfaah
Member
 
Registered: Jul 2004
Location: Chicago
Distribution: CentOS, Ubuntu, Mac OSX, Amazon AMI Linux
Posts: 43

Rep: Reputation: 15
FC5 won't mount ext3 FS automatically after boot


I have a USB HDD, and I want to all users to have r/w access to it.
I format this drive to EXT3 FS (ID 83 or 8e), editted the /etc/fstab file. However, I can't get the drive to automactically mount after boot and if I mount it manually, I have no write access to it as a regular user.

fstab line is like this:
/dev/sda1 /mnt/usb default,umask=000 0 0

Where did I go wrong?
Is there another file I should configure for EXT3 FS to be ounted at boot?
 
Old 05-25-2006, 07:20 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Your fstab line has several mistakes unless what you posted has typos.

No filesystem type specified.
Should be defaults not default.
umask option not necessary for ext3 partition.
 
Old 05-25-2006, 07:27 PM   #3
inescapeableus
Member
 
Registered: Feb 2004
Location: Canada
Distribution: GNU/Linux Debian (Etch)
Posts: 319

Rep: Reputation: 30
To build on what michaelk replied, I would add automount in your options
 
Old 05-26-2006, 01:14 AM   #4
tuntsfaah
Member
 
Registered: Jul 2004
Location: Chicago
Distribution: CentOS, Ubuntu, Mac OSX, Amazon AMI Linux
Posts: 43

Original Poster
Rep: Reputation: 15
/dev/sda1 /mnt/usb ext3 automount,defaults 0 0

Is that the way I should have it, in order to have it mount automatically at boot?

I tried the line above but it doesn't work, I have to mount it manually.
Moreover, I still can't write to it as a regular user only as root.
The drive is also saying that I have only a GB of space free out of a 250 GB HDD, and I haven't used it as yet.

I need steps from partitioning and formatting the drive to mounting it.

Last edited by tuntsfaah; 05-26-2006 at 02:28 AM.
 
Old 05-26-2006, 11:25 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
The default is to mount at boot. The correct syntax for mounting at boot is auto not automount.

/dev/sda1 /mnt/usb ext3 defaults 0 0

Make sure the permissions on the /mnt/usb directory is set to read/write by all.
Use the chmod command to change permissions.
chmod 777 /mnt/usb
 
Old 05-26-2006, 11:50 AM   #6
tuntsfaah
Member
 
Registered: Jul 2004
Location: Chicago
Distribution: CentOS, Ubuntu, Mac OSX, Amazon AMI Linux
Posts: 43

Original Poster
Rep: Reputation: 15
/dev/sda1 /mnt/usb ext3 auto,defaults 0 0
/dev/sda1 /mnt/usb ext3 defaults 0 0

I tried these two and either still don't mount at boot.
I guess my system is messed up
 
Old 05-26-2006, 02:08 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
My fault.... Your system is not messed up. Typically modules are not loaded until after the OS mounts filesystems via the fstab file which is why the drive is not mounted. The simplest fix is to add a command to mount the drive ub the /etc/rc.local file. This is the last file to run at boot independent of run level. A slightly harder fix would be to add the USB modules to the initial ramdisk (initrd).
 
Old 06-05-2006, 01:41 AM   #8
tuntsfaah
Member
 
Registered: Jul 2004
Location: Chicago
Distribution: CentOS, Ubuntu, Mac OSX, Amazon AMI Linux
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by michaelk
My fault.... Your system is not messed up. Typically modules are not loaded until after the OS mounts filesystems via the fstab file which is why the drive is not mounted. The simplest fix is to add a command to mount the drive ub the /etc/rc.local file. This is the last file to run at boot independent of run level. A slightly harder fix would be to add the USB modules to the initial ramdisk (initrd).
So what should the line in both files be?
Does someone have an example of these files?
 
Old 06-05-2006, 06:54 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Add this line to the /etc/rc.local file
mount -t ext3 /dev/sda1 /mnt/usb
 
Old 06-07-2006, 02:22 PM   #10
n926bb
Member
 
Registered: Jul 2004
Posts: 35

Rep: Reputation: 15
I had problems automounting similar to yours, they were related to SELinux. See my thread "fstab will not mount partitions" Posted by me, n926bb. One quick test for you to do is to disable SELinux, to do this: System > Administration > Security Level and FireWall > SELinux > SELinux Setting: Disable > OK } If with SELinux disabled fstab will mount your drive, experiment changing the security context of the file where you are mounting the drive (read my thread).

Good luck
 
  


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
boot doesn't mount automatically kpachopoulos Linux - General 2 05-04-2006 12:51 PM
Boot failure after upgrading FC5 TR3 to FC5 Official Release fsb1284 Fedora 3 03-25-2006 09:12 AM
Automatically mount, who can help me? shadkong Slackware 5 04-12-2005 07:03 PM
Why a FSTAB entry will mount using -a switch but will not mount automatically at boot mjen Linux - Newbie 3 05-19-2004 07:45 AM
How do I automatically mount my cdrom at boot? Amerist Linux - Software 6 04-14-2002 05:46 AM

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

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