Is there a way to automount/umount FAT32 USB flash drive?
Manualy I insert drive, then "mount /dev/sda1 /media/usb1", copy a file, then umount and disconnect. But I need it to be automatic, that is put the drive in, wait for a programm to copy and safely pull the drive out.
I created file 10-auto.rules in /etc/udev/rules.d/ with follows:
Take a look at what /etc/rc.local contains, to save memory I initially use udev on boot but I stop it after the boot process. That's because I mostly have a static environment and I don't use automount that much.
Double check if udevd is really running (comment that line or just start it) and let me know how it goes
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That hits the mark. I commented out udev stop string in /etc/rc.local and now I see my flash automatically mounts and unmounts.
But at the same time strange thing appears, please look at dmesg tail:
[ 6.129796] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 9.871587] pcm512x 1-004d: Failed to reset device: -5 [ 9.874422] pcm512x: probe of 1-004d failed with error -5 [ 9.965179] pcm512x 1-004c: Failed to reset device: -5 [ 9.968091] pcm512x: probe of 1-004c failed with error -5
6 sec string is the last in the boot process when udev is stopped in rc.local. Once it is running all the way there are pcm512x faults at the end of boot. And it really matters because boot takes additional 4 sec with it.
The great thing about your distro is fast boot. Can I rid myself of these (unnessesary for me) pcm512x checks?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm a little bit paranoid about memory consumption because I'm cleaning up space for my own stuff and not for the OS itself, opencv/ROS/julius and so on (I'm a robotic fanatic).
I cannot understimate what udevd does so I'm using it during the boot process but rc.local terminates it at the end.
Don't know about pcm512x, I need to understand what piece of hardware is (seems to be I2S sound card driver) and I need to disable or edit the module in order to gain a little bit more on boot.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been trying to disable pcm512x by blacklisting it in /etc/modprobe.d/blacklist.conf but with no effect. Is it possible at all or there should be modified kernel image?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is there a way to automount/umount FAT32 USB flash drive?
Manualy I insert drive, then "mount /dev/sda1 /media/usb1", copy a file, then umount and disconnect. But I need it to be automatic, that is put the drive in, wait for a programm to copy and safely pull the drive out.
I created file 10-auto.rules in /etc/udev/rules.d/ with follows:
That has no effect.
And added to fstab
/dev/sda1 /home/media/usb1 vfat defaults,auto 0 0
No good.
Waiting for the advice...
Mike.
Take a look at what /etc/rc.local contains, to save memory I initially use udev on boot but I stop it after the boot process. That's because I mostly have a static environment and I don't use automount that much.
Double check if udevd is really running (comment that line or just start it) and let me know how it goes
That hits the mark. I commented out udev stop string in /etc/rc.local and now I see my flash automatically mounts and unmounts.
But at the same time strange thing appears, please look at dmesg tail:
[ 6.129796] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 9.871587] pcm512x 1-004d: Failed to reset device: -5
[ 9.874422] pcm512x: probe of 1-004d failed with error -5
[ 9.965179] pcm512x 1-004c: Failed to reset device: -5
[ 9.968091] pcm512x: probe of 1-004c failed with error -5
6 sec string is the last in the boot process when udev is stopped in rc.local. Once it is running all the way there are pcm512x faults at the end of boot. And it really matters because boot takes additional 4 sec with it.
The great thing about your distro is fast boot. Can I rid myself of these (unnessesary for me) pcm512x checks?
Thanks!
I'm a little bit paranoid about memory consumption because I'm cleaning up space for my own stuff and not for the OS itself, opencv/ROS/julius and so on (I'm a robotic fanatic).
I cannot understimate what udevd does so I'm using it during the boot process but rc.local terminates it at the end.
Don't know about pcm512x, I need to understand what piece of hardware is (seems to be I2S sound card driver) and I need to disable or edit the module in order to gain a little bit more on boot.
Hi,
I've been trying to disable pcm512x by blacklisting it in /etc/modprobe.d/blacklist.conf but with no effect. Is it possible at all or there should be modified kernel image?
Thanks