Can't setup usbmount on Ubuntu 12.04.1 LST

Csányi Pál csanyipal at gmail.com
Thu Aug 30 09:31:40 UTC 2012


Hi,

on my newly installed Ubuntu 12.04.1 LST system I removed unity because
I prefer Window Maker.

Now I must to setup some things, like automount USB sticks.

I installed the usbmount package and setup it in
/etc/usbmount/usbmount.conf file:

ENABLED=1
MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3
             /media/usb4 /media/usb5 /media/usb6 /media/usb7"
FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus"
MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime,rw"
FS_MOUNTOPTIONS="-fstype=vfat,gid=floppy,dmask=0007,fmask=0117"
VERBOSE=no

Now, when I plug the USB Stick I can't open it's directory:
/media/usb0

It has permissions:
$ ls -l /media

lrwxrwxrwx 1 root root      4 aug   30 10:46 usb -> usb0
drwxrwx--- 2 root floppy 4096 jan    1  1970 usb0

I added my username to floppy group by running 'sudo vigr' and 'sudo
vigr -s'.

In the syslog I have these messages:

Aug 30 11:20:27 ubuntucsp kernel: [15046.346009] sd 15:0:0:0: [sdc]
Attached SCSI removable disk 
Aug 30 11:20:27 ubuntucsp usbmount[13585]: /dev/sdc does not contain a
filesystem or disklabel 
Aug 30 11:20:27 ubuntucsp usbmount[13606]: executing command: mount
-tvfat -osync,noexec,nodev,noati 
me,nodiratime,rw,gid=floppy,dmask=0007,fmask=0117 /dev/sdc1 /media/usb0 
Aug 30 11:20:27 ubuntucsp usbmount[13606]: executing command: run-parts
/etc/usbmount/mount.d 

When I changed the /etc/usbmount/usbmount.conf file to:
VERBOSE=yes

I get followings messages:
Aug 30 11:29:44 ubuntucsp kernel: [15602.978197] sd 16:0:0:0: [sdc]
Attached SCSI removable disk 
Aug 30 11:29:44 ubuntucsp usbmount[13769]: loaded usbmount configurations
Aug 30 11:29:44 ubuntucsp usbmount[13769]: trying to acquire lock
/var/run/usbmount/.mount.lock 
Aug 30 11:29:44 ubuntucsp usbmount[13769]: acquired lock
/var/run/usbmount/.mount.lock 
Aug 30 11:29:44 ubuntucsp usbmount[13769]: /dev/sdc does not contain a
filesystem or disklabel 
Aug 30 11:29:44 ubuntucsp usbmount[13793]: loaded usbmount configurations
Aug 30 11:29:44 ubuntucsp usbmount[13793]: trying to acquire lock
/var/run/usbmount/.mount.lock 
Aug 30 11:29:44 ubuntucsp usbmount[13793]: acquired lock
/var/run/usbmount/.mount.lock 
Aug 30 11:29:44 ubuntucsp usbmount[13793]: /dev/sdc1 contains filesystem
type vfat 
Aug 30 11:29:44 ubuntucsp usbmount[13793]: mountpoint /media/usb0 is
available for /dev/sdc1 
Aug 30 11:29:44 ubuntucsp usbmount[13793]: executing command: mount
-tvfat -osync,noexec,nodev,noati 
me,nodiratime,rw,gid=floppy,dmask=0007,fmask=0117 /dev/sdc1 /media/usb0 
Aug 30 11:29:44 ubuntucsp usbmount[13793]: executing command: run-parts
/etc/usbmount/mount.d 
Aug 30 11:29:44 ubuntucsp usbmount[13793]: usbmount execution finished 

What is the solution?

-- 
Regards from Pal





More information about the ubuntu-users mailing list