Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

/etc/fstab

25 views
Skip to first unread message

Kevin the Drummer

unread,
Mar 4, 2013, 1:21:36 PM3/4/13
to
Hi,

What's the right entry in my /etc/fstab file on Fedora 17 to cause an
external USB drive to always be mounted on the same mount point, and not
in /media? But, when the USB drive is absent I don't want a boot of the
system to hang until the drive returns, which is what happens now.

This is the entry I tried:

UUID=blah-blah-blah /backup/sys1 ext4 rw,noatime,data=ordered 0 0

The UUID is actually 8777c8cd-1860-4b21-8d97-a13abade4f49 but that
would make the above line too long.

Thanks....

--
Kevin

Aragorn

unread,
Mar 4, 2013, 2:26:54 PM3/4/13
to
On Monday 04 March 2013 19:21, Kevin the Drummer conveyed the following
to alt.os.linux.redhat...

> What's the right entry in my /etc/fstab file on Fedora 17 to cause an
> external USB drive to always be mounted on the same mount point, and
> not in /media?

Well, if the device is automounted when connected, then you're going to
be fighting with more than /etc/fstab. You will also need to take a
look at the files under /etc/udev.d.

> But, when the USB drive is absent I don't want a boot of the system to
> hang until the drive returns, which is what happens now.
>
> This is the entry I tried:
>
> UUID=blah-blah-blah /backup/sys1 ext4 rw,noatime,data=ordered 0 0

Add "noauto" to the list of comma-separated mount options and leave the
two numerals - for dump and fsck - at the end of the record at "0". The
system will then not even complain if you boot up without the device
attached.

--
= Aragorn =

http://www.linuxcounter.net - registrant #223157

Kevin the Drummer

unread,
Mar 5, 2013, 10:58:04 PM3/5/13
to
Aragorn <str...@telenet.be.invalid> wrote:
> On Monday 04 March 2013 19:21, Kevin the Drummer conveyed the following
> to alt.os.linux.redhat...
>
> > What's the right entry in my /etc/fstab file on Fedora 17 to cause an
> > external USB drive to always be mounted on the same mount point, and
> > not in /media?
>
> Well, if the device is automounted when connected, then you're going to
> be fighting with more than /etc/fstab. You will also need to take a
> look at the files under /etc/udev.d.

It will be mounted on demand, with manual or scripted intervention to do
so, not automatically.

> > But, when the USB drive is absent I don't want a boot of the system to
> > hang until the drive returns, which is what happens now.
> >
> > This is the entry I tried:
> >
> > UUID=blah-blah-blah /backup/sys1 ext4 rw,noatime,data=ordered 0 0
>
> Add "noauto" to the list of comma-separated mount options and leave the
> two numerals - for dump and fsck - at the end of the record at "0". The
> system will then not even complain if you boot up without the device
> attached.

"noauto" is exactly what I needed.

Thanks much!

--
Kevin
0 new messages