From: Jochen Schulz on
Boyd Stephen Smith Jr.:
>
> In any case, /etc/fstab is for *static* file systems. It is *not* for file
> systems that may or may not be there when the system is booting (or otherwise
> in operation).

NACK. Or don't you have an entry for your CD/DVD drive?

J.
--
If I had to live on a desert island I would take a mobile phone,
preferably a Nokia 8810.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>
From: Boyd Stephen Smith Jr. on
On Thursday 04 February 2010 10:53:06 Jochen Schulz wrote:
> Boyd Stephen Smith Jr.:
> > In any case, /etc/fstab is for *static* file systems. It is *not* for
> > file systems that may or may not be there when the system is booting (or
> > otherwise in operation).
>
> NACK. Or don't you have an entry for your CD/DVD drive?

That's what "noauto" is for.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss(a)iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/
From: Pier Paolo on
Il giorno gio, 04/02/2010 alle 23.57 +1030, Arthur Marsh ha scritto:
> Pier Paolo wrote, on 04/02/10 04:07:
> > Il giorno mer, 03/02/2010 alle 16.35 +0000, Camaleón ha scritto:
> >> On Wed, 03 Feb 2010 23:04:26 +1030, Arthur Marsh wrote:
> >>
> >>> Camaleón wrote, on 03/02/10 21:52:
> >>>> You should not list your devices in fstab if you want to make use of
> >>>> your DE hotplug capabilities.
> >>>>
> >>> As I just posted in another message in this thread, I'd like the USB
> >>> flash drive to be automatically mounted after fsck if the drive is
> >>> present at boot-up and automatically mounted without fsck if plugged in
> >>> after the machine is booted.
> >> As said, if you list the USB device in fstab, the system will try to
> >> mount it on every boot, whether is plugged or not.
> >>
> >>> I would also like the machine to boot fully if it is started without the
> >>> USB flash drive present.
> >> That should not happen at all (if the disk is not present it should log a
> >> warn, but the system should keep loading). It can be a bug.
> >>
> >>> Any takers for suggestions?
> >> Greetings,
> >>
> >> --
> >> Camaleón
> >>
> >>
> >
> > Maybe OT: what about executing a sh command on specific usb drive
> > mounts, on gnome and kde? As of as i recall from the debian wiki that's
> > not explained. Maybe in gentoo docs, i'll see.
> >
> > Thanks for any hints.
>
> Do you mean rather than using an /etc/fstab entry or a package like
> usbmount, have a udev rule that on detection of the USB device, either
> does an fsck and mount (at machine boot time) or just a mount of the
> device (if the device appears after machine boot time)?
>
> Arthur.
>
>
Yeah! An udev rule seems a good approach to me: i want to rsync my
backup on an external drive. I'm using rsnapshot/cron stuff, but i'll
get soon annoyed about to control the log, see if backup is already made
and all, as there is no way in rsnapshot script (for what i understand)
to assure the excpected backup frequency (with an EXTERNAL USB DISK i
mean: no cron/anacron, maybe vfs or kde device mounter... i don't know)

So, if someone could please tell me how/where to look for this udev rule
thing...

thanks.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Boyd Stephen Smith Jr. on
On Thursday 04 February 2010 11:44:36 Pier Paolo wrote:
> Yeah! An udev rule seems a good approach to me: i want to rsync my
> backup on an external drive. I'm using rsnapshot/cron stuff, but i'll
> get soon annoyed about to control the log, see if backup is already made
> and all, as there is no way in rsnapshot script (for what i understand)
> to assure the excpected backup frequency (with an EXTERNAL USB DISK i
> mean: no cron/anacron, maybe vfs or kde device mounter... i don't know)
>
> So, if someone could please tell me how/where to look for this udev rule
> thing...

http://reactivated.net/writing_udev_rules.html

Specifically, http://reactivated.net/writing_udev_rules.html#external-run

Your udev rules will generally reside under /etc/udev/rules.d.

Since a backup/sycn operation can take a while, remember this warning: "This
program can act on the device, however it must not run for any extended period
of time, because udev is effectively paused while these programs are running.
One workaround for this limitation is to make sure your program immediately
detaches itself."
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
bss(a)iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/
From: Jochen Schulz on
Boyd Stephen Smith Jr.:
> On Thursday 04 February 2010 10:53:06 Jochen Schulz wrote:
>> Boyd Stephen Smith Jr.:
>>> In any case, /etc/fstab is for *static* file systems. It is *not* for
>>> file systems that may or may not be there when the system is booting (or
>>> otherwise in operation).
>>
>> NACK. Or don't you have an entry for your CD/DVD drive?
>
> That's what "noauto" is for.

Sure. But the existence of that option refutes your statement above. :)

J.
--
If you do not move for long enough, you might see a rat.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>