Discussion:
[Fluxbox-users] automount usbpen
Massimo Canonico
2016-02-18 16:39:52 UTC
Permalink
Hi all,
I've always added to my /etc/fstab file the following line in order to
mount usbpen and sdcard:

/dev/sdb1 /mnt/usbpen vfat
noauto,noatime,user 0 0
/dev/sdc1 /mnt/usbpen2 vfat
noauto,noatime,user 0 0
/dev/mmcblk0p1 /mnt/sdcard auto
noauto,noatime,user 0 0

I am wondering if fluxbox is able to automount usbpen and if yes, how
can I set it up?

I'm using a fedora 23.

Thanks,
Massimo
Bob Hepple
2016-02-22 02:34:34 UTC
Permalink
It's not a fluxbox thing, but you can try autofs:

dnf install autofs
# put lines like this in /etc/auto.misc:
usbpen --fstype=auto :/dev/sdb1

# then
systemctl enable autofs
systemctl restart autofs
ls /misc/usbpen

# soft links help with tab-completion on the command line:
ln -s /misc/usbpen /mnt/usbpen
ls /mnt/usbpen

I'm sure there are more modern desktoppy ways to do it, but that works well
for me.


Cheers


Bob
Post by Massimo Canonico
Hi all,
I've always added to my /etc/fstab file the following line in order to
/dev/sdb1 /mnt/usbpen vfat
noauto,noatime,user 0 0
/dev/sdc1 /mnt/usbpen2 vfat
noauto,noatime,user 0 0
/dev/mmcblk0p1 /mnt/sdcard auto
noauto,noatime,user 0 0
I am wondering if fluxbox is able to automount usbpen and if yes, how
can I set it up?
I'm using a fedora 23.
Thanks,
Massimo
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Javier Vasquez
2016-02-22 04:07:23 UTC
Permalink
Post by Bob Hepple
dnf install autofs
usbpen --fstype=auto :/dev/sdb1
# then
systemctl enable autofs
systemctl restart autofs
ls /misc/usbpen
ln -s /misc/usbpen /mnt/usbpen
ls /mnt/usbpen
I'm sure there are more modern desktoppy ways to do it, but that works well
for me.
Cheers
Bob
Post by Massimo Canonico
Hi all,
I've always added to my /etc/fstab file the following line in order to
/dev/sdb1 /mnt/usbpen vfat
noauto,noatime,user 0 0
/dev/sdc1 /mnt/usbpen2 vfat
noauto,noatime,user 0 0
/dev/mmcblk0p1 /mnt/sdcard auto
noauto,noatime,user 0 0
I am wondering if fluxbox is able to automount usbpen and if yes, how
can I set it up?
I'm using a fedora 23.
Thanks,
Massimo
I'm using autofs for everything I know (included usb known devices).
To me it's cleaner, lighter and it not only automounts, it also auto
unmounts, :-) So no rival when you know what you're mounting. It
plays nice not just with usb devices, also does a great thing with
gphotofs, sshfs, gdrivefs and others...

For things I don't know beforehand, neither the partitioning scheme, I
use udiskie with udisks2 (also dunst). It's written in python, but
it's light and fast enough for me. It provides a system tray which
comes in handy to unmount and explore devices.

--
Javier

Loading...