Debian USB automount

debiandevicesmountusb

Got my USB flash automount broken after reboot.
Using Debian 6, GNOME 2

My NTFS hard disk is still mounting correctly.

When i connect my Android smartphone (with SD and local drive) my messages log looks like:

tail -f /var/log/messages

Aug 21 11:46:14 pp-hideout kernel: [  139.461734] sd 4:0:0:0: [sdc] Attached SCSI removable disk
Aug 21 11:46:14 pp-hideout kernel: [  139.466484] sd 4:0:0:2: [sdd] Attached SCSI removable disk
Aug 21 11:46:14 pp-hideout kernel: [  139.514664] cdrom: This disc doesn't have any tracks I recognize!
Aug 21 11:46:22 pp-hideout kernel: [  148.005560] sd 4:0:0:2: [sdd] 4268032 512-byte logical blocks: (2.18 GB/2.03 GiB)
Aug 21 11:46:22 pp-hideout kernel: [  148.006180] sd 4:0:0:0: [sdc] 7761920 512-byte logical blocks: (3.97 GB/3.70 GiB)
Aug 21 11:46:22 pp-hideout kernel: [  148.010305]  sdd:
Aug 21 11:46:22 pp-hideout kernel: [  148.010679]  sdc:
Aug 21 11:46:22 pp-hideout kernel: [  148.014944]  sdc1
Aug 21 11:46:22 pp-hideout halevt: Running: halevt-mount -u /org/freedesktop/Hal/devices/volume_uuid_DACE_470F -o sync -m 002 -o gid=plugdev
Aug 21 11:46:23 pp-hideout halevt: Running: halevt-mount -u /org/freedesktop/Hal/devices/volume_uuid_3E19_07CA -o sync -m 002 -o gid=plugdev

So the problem is somewhere on software level.
And the problem is I want it to automount, but it isn't working.
Can anybody help?

p.s.: How do Debian USB automounting is working "from the box"? Where can i read about it?

UPDATE:
Did some apt-get ideas from web and now I have:

Running: halevt-mount -u /org/freedesktop/Hal/devices/volume_uuid_DACE_470F -o sync -m 002 -o gid=plugdev
Aug 22 03:06:05 pp-hideout usbmount[15471]: executing command: mount -tvfat -osync,noexec,nodev,noatime,nodiratime /dev/sdc1 /media/usb0
Aug 22 03:06:05 pp-hideout halevt: Running: halevt-mount -s
Aug 22 03:06:05 pp-hideout usbmount[15471]: executing command: run-parts /etc/usbmount/mount.d
Aug 22 03:06:07 pp-hideout usbmount[15436]: executing command: mount -tvfat -osync,noexec,nodev,noatime,nodiratime /dev/sdd /media/usb1
Aug 22 03:06:07 pp-hideout halevt: Running: halevt-mount -s
Aug 22 03:06:07 pp-hideout usbmount[15436]: executing command: run-parts /etc/usbmount/mount.d

Now USB flash mounts, BUT read-only. How can I fix read-only? Any ideas?

Best Answer

This is the easiest way I have found:

http://pkill-9.com/mount-usb-micro-sd-card-linux-automount/

Related Question