All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [systemd-devel] How to automount
@ 2015-09-24  6:04 Johannes Pointner
  2015-09-24 10:58 ` Mike Looijmans
  0 siblings, 1 reply; 18+ messages in thread
From: Johannes Pointner @ 2015-09-24  6:04 UTC (permalink / raw)
  To: Paul D. DeRocco; +Cc: yocto@yoctoproject.org

Hello Paul,

I'm using autofs to do the trick. It's working fine for me.

To get the umount working I use a timeout of 2 seconds, which seems to
be ok so far.

Regards,
Hannes


2015-09-23 21:28 GMT+02:00 Daniel. <danielhilst@gmail.com>:
> I agree with you that is intrinsically unworkable, if there is no physical
> media, how can it be umounted!? If anyone make this possible, maybe some
> day, in that day, umounting will be obsolete.
>
> Cheers,
> - dhs
>
> 2015-09-23 15:31 GMT-03:00 Paul D. DeRocco <pderocco@ix.netcom.com>:
>>
>> > From: Daniel. [mailto:danielhilst@gmail.com]
>> >
>> > I think that sync just flushes data to disk and umount clears
>> > the dirty bit. There is no sync.vfat that I know.
>>
>> That would seem to make auto-unmount (triggered by removal) an
>> intrinsically unworkable concept. Or is that only the case for FAT file
>> systems?
>>
>> --
>>
>> Ciao,               Paul D. DeRocco
>> Paul                mailto:pderocco@ix.netcom.com
>>
>
>
>
> --
> "Do or do not. There is no try"
>   Yoda Master
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [systemd-devel] How to automount
@ 2015-09-24 11:25 Johannes Pointner
  0 siblings, 0 replies; 18+ messages in thread
From: Johannes Pointner @ 2015-09-24 11:25 UTC (permalink / raw)
  To: yocto

I have to admit, I don't use systemd at the embedded system, but I use
the following files to do it for the usb flash drives:
/etc/auto.master:
+auto.master
/var/autofs /etc/auto.usb       --timeout=2

/etc/auto.usb:
usb1    -fstype=vfat,rw,sync,noatime,nodiratime,nodev,nosuid,noexec,uid=1000
   :/dev/usba
usb2    -fstype=vfat,rw,sync,noatime,nodiratime,nodev,nosuid,noexec,uid=1000
   :/dev/usbb

Furthermore I have a additional udev rule for the usb interfaces:
/etc/udev/rules.d/99-mount-usb-key.rules:
SUBSYSTEMS=="usb", SUBSYSTEM=="block", KERNELS=="1-1", ENV{USB_HUB}="usb2"
SUBSYSTEMS=="usb", SUBSYSTEM=="block", KERNELS=="2-1", ENV{USB_HUB}="usb1"

ENV{USB_HUB}=="usb1", SUBSYSTEM=="block", KERNEL=="sd[a-z]*", SYMLINK+="usba"
ENV{USB_HUB}=="usb2", SUBSYSTEM=="block", KERNEL=="sd[a-z]*", SYMLINK+="usbb"

But I also use automount on my desktop PC and there with systemd, but
no for a flash drives instead for cifs shares and this looks like
this:

/etc/autofs/aut.cifs-shares:
exchange -fstype=cifs,nosuid,rw,credentials=/home/h4nn35/.smbcredentials,dir_mode=0777,file_mode=0666
://server/exchange

/etc/autofs/auto.master:
+auto.master
/home/h4nn35/NetShares /etc/autofs/auto.cifs-shares --timeout=60 --ghost

I hope this helps.

2015-09-24 12:58 GMT+02:00 Mike Looijmans <mike.looijmans@topic.nl>:
> On 24-09-15 08:04, Johannes Pointner wrote:
>>
>> I'm using autofs to do the trick. It's working fine for me.
>>
>> To get the umount working I use a timeout of 2 seconds, which seems to
>> be ok so far.
>
>
>
> I am very very interested in how you got that to actually work. Please show
> us your configuration files and/or recipes and enlighten us!
>
> So far, all I ever got autofs to accomplish was giving me a major headache.
>
>
> Kind regards,
>
> Mike Looijmans
> System Expert
>
> TOPIC Embedded Products
> Eindhovenseweg 32-C, NL-5683 KH Best
> Postbus 440, NL-5680 AK Best
> Telefoon: +31 (0) 499 33 69 79
> Telefax: +31 (0) 499 33 69 70
> E-mail: mike.looijmans@topicproducts.com
> Website: www.topicproducts.com
>
> Please consider the environment before printing this e-mail
>
>
>
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2015-09-24 11:25 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <F9B37C5086864E2EA06AC70C09CF7C25@PAULD>
     [not found] ` <CAFKnvs6eVMrfcH3AOS28vAG237UUbYdLKR=FGB9PBipOQZbqYg@mail.gmail.com>
     [not found]   ` <3DB96F2F9D444EFE931CA8443BAFBACE@PAULD>
     [not found]     ` <CAPWNY8XTWDDS83JwizV8jH=xkxs9hdRgBLB5CsacTYQsqCwG=Q@mail.gmail.com>
2015-09-22 17:45       ` [systemd-devel] How to automount Paul D. DeRocco
2015-09-22 18:33         ` Fred Ollinger
2015-09-22 19:55           ` Daniel.
2015-09-22 23:42           ` Paul D. DeRocco
2015-09-22 23:49             ` Fred Ollinger
2015-09-23  0:22               ` Paul D. DeRocco
2015-09-23  0:30               ` Daniel.
2015-09-23  1:20                 ` Paul D. DeRocco
2015-09-23  2:34                   ` Daniel.
2015-09-23  7:20           ` Mike Looijmans
2015-09-23  8:30             ` Paul D. DeRocco
2015-09-23 10:09               ` Daniel.
2015-09-23 18:31                 ` Paul D. DeRocco
2015-09-23 19:28                   ` Daniel.
2015-09-24 10:55                 ` Mike Looijmans
2015-09-24  6:04 Johannes Pointner
2015-09-24 10:58 ` Mike Looijmans
  -- strict thread matches above, loose matches on Subject: below --
2015-09-24 11:25 Johannes Pointner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.