[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: auto-mounting disks that might not be present (e.g. usb drives)



Frank McCormick wrote, on 03/02/10 16:00:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The bottom line: There is no problem even if
flashdrives/cameras etc are in fstab but not present- you
simply get the error logged
Well, there is a definite problem in my case (Debian unstable on
i386).

Error code 1 on fsck gets an error logged, but doesn't stop the
boot process.

Definite problem here, too, on my uptodate Sid system, with ext3.
My fstab has lines like this:

LABEL=software  /media/software ext3
defaults,user,exec,noauto       0       0


Camaleón wrote:


Mmm... I think "LABEL" would take precedence over another mount option
<<(UUID, ID or PATH) so if you "tag" your media device with a LABEL, it
should be mounted when plugged under "/media/mylabel".

  Well Label didn't work in my case either - I gave the USB drive a label
of Music...then changed fstab to the LABEL=Music from /dev/sda1

The drive did not get mounted and I had to go back to /dev/sda1

But as long as /dev/sda1 is used, there is no fsck of the drive.

Cheers

In my case I have:

UUID=4823-93A9 /mnt/usb8gig vfat defaults,users,uid=65534,gid=65534,umask=000,shortname=win95 0 2

(all on one line)

If I change that trailing "2" to a zero, no fsck should be performed.

I would like to have automatic mounting with fsck if the drive is present when the machine is booted, and automatic mounting without fsck if the drive is plugged in after the machine is booted.

Is this possible with any of the standard Debian tools and config files, or will it require yet-another-script?

Arthur.


Reply to: