[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)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 02 Feb 2010 18:10:29 +0000 (UTC)
Camaleón <noelamac@gmail.com> wrote:

> On Tue, 02 Feb 2010 12:31:56 -0500, Frank McCormick wrote:
> 
> > On Tue, 02 Feb 2010 16:12:56 +0000 (UTC) Camaleón wrote:
> > 
> >> I.e., if your USB drive is listed there and you have something
> >> like:
> >> 
> >> # <file system> <mount point>   <type>  <options>       <dump> #
> >> # <pass>
> >> /dev/sdb1	/data/backup	ext3
> >> acl,user_xattr	1	2 ^
> >> 
> >> Then fsck will try to check that mount point, either is present
> >> or not (or at least that is my understanding after reading "man
> >> fstab") :-)
> > 
> > 
> >   That's not what happens in my case. The boot process simply
> > gives an error that the device does not exist. There is no
> > attempt to fsck the non-existant drive. I gather this is because
> > the system attempts to mount the non-existant drive.
> 
> Uh? Didn't you say...? :-?
> 
> ***
> 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.
> ***

  No. I didn't say it. 

  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?

  
> Any device or partition listed under fstab are "static" ones. If
> you have defined a mount point that is not present at boot time,
> you will get a warning, that is a normal behaviour.
> 
> If your USB disk is not always "on" and you want to prevent that
> warning, you can use de "noauto" option but you'll have to manually
> mount it when you plug it.

  No, it mounts automatically when I plug it in...I just want it
mounted automatically IF it's present during boot


- -- 
Frank
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJLaHBAAAoJEMEDyLTvrVhjtvEH/0w7WxGgk+oPOz2psIUaPozX
UKLnwtyVHXZWd97yighP2ASW2FzbWMJSWjqOFoiquOSoSs/wXtA2ohy4boSSAHSc
e7S4Z7QShRg8X5yNSMRTd1us1H2tklj57zW/pof/Dd36xGd515oWTdUwCMXJTnW6
hbWKhqutEuePbd+gLNXFJWIg24DbURHYqfsOzQwYOyDGUSXiJY8PFmHJTYHLyE6q
JGQ9KlKUgWbDCld0gRxs4XMjqUY+9Ey9J+LvqrcoLCYq8HVt2mG9fq1au4YX/qsl
fsFZwqTSezKudfVgVrNk8QFy9l4s2FqyBfeWlvLvSPiX2XCnHwhAE11J2pp5fA4=
=U65H
-----END PGP SIGNATURE-----


Reply to: