Frank McCormick wrote, on 03/02/10 02:11:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 02 Feb 2010 15:00:41 +0000 (UTC) Camaleón <noelamac@gmail.com> wrote:On Tue, 02 Feb 2010 22:25:12 +1030, Arthur Marsh wrote:Hi, I found that initscripts seems to attempt to run fsck on non-existent devices that appear in /etc/fstab, and different fsck programs for different filesystem types give different error codes. What is the easiest way to set up Debian to automatically mount specific devices if they are present, but not cause a boot failure when they are absent?"man fstab" says that if the <passno> digit is other than zero, "fsck" will try to check that mount point.I have devices (usually flashdrives and or digital cameras) that may or may not be present during boot and they don't cause boot failure. But I guess you're talking about differnt devices ??- -- Frank
I was just using a USB flashdrive formatted to vfat.dosfstools 3.0.1 would have error code 1 for a drive entry in /etc/fstab that wasn't plugged in and it would boot fine whether the USB drive was present or not.
If fsck returns with error code greater than 1, the boot process stops at a prompt to enter root password or control-d.
My argument is that the boot process should not even try to run fsck on a non-existent device.
Arthur.