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



On Wed, 03 Feb 2010 09:42:40 +1030
Arthur Marsh <arthur.marsh@xxxxxxxxxxxxxxxx> wrote:

Frank McCormick wrote, on 03/02/10 06:16:

To the OP:

The bottom line: There is no problem even if flashdrives/cameras etc
are in fstab but not present- you simply get the error logged


Cheers
- --
Frank

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.

Upgrading dosfstools past 3.0.1 caused an error code greater than 1,
which triggers the stop of the boot process.

I don't understand why initscripts tries to fsck a non-existent device.

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

[The target is a LV within a VG on top of a partition on an external
USB disk.]

When the last field is 2, the boot stops after fsck fails with error
code 8, until I hit <ctrl>-D. From /var/log/fsck/fsck/checkfs

fsck.ext3: Unable to resolve 'LABEL=software'
fsck died with exit status 8

Maybe I should file a bug against initscripts.

Probably a good idea. I just changed the fs_passno field to 0, but a
bug is probably in order.

I had initially filed a bug against dosfstools but had no response:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=562536

Well, it's not really a bug in fsck, but, as you noted earlier, in
initscripts. Perhaps you can just reassign the bug?

I would just like to have USB flash drives that may or may not be
plugged into machines that aren't switched on all the time, and I would
like them to be mounted if they're plugged in when the machine is
powered on, and for the machine to boot anyway if the USB flash drive is
not present.

Exactly. But mounting automatically is not the problem. You can have
them mounted, without the fsck being performed.

Celejar
--
foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • [opensuse] Bugs? in SuSE11 or fundamental linux flaws? file bug(s)
    ... System wouldn't boot. ... Now it failed "fsck". ... Why are my drives being switch around randomly? ... I can file a routine bug for the 2nd, ...
    (SuSE)
  • Re: [SLE] fsck!!!
    ... If the problem is in the root partition, ... Also, considering your fstab: ... > that is needed during the manual fsck part. ... >>local harddisk, boot safely, rescue mode and a couple of others. ...
    (SuSE)
  • Re: issue with fstab and fsck after upgrade
    ... Whenever I boot the system drops me into a subshell and then tells me ... I need to fsck. ... This is my fstab: ... conditions in which the gutsy upgrade gets fstab wrong. ...
    (Ubuntu)
  • Re: 3Ware SATA RAID 8000 - Supported on 5.3-R?
    ... Your fstab is OK. ... If system was not correctly shut down, fsck will run, and it *will* (and ... should) slow down system boot process. ... > # Device Mountpoint FStype Options Dump ...
    (freebsd-questions)
  • mount -uw / does not work in boot -s
    ... the mount if you do not have a /etc/fstab. ... The fstab part is the key ... The filesystem was clean upon boot and no fsck was run (I know there ...
    (freebsd-current)