ACPI administration advocacy advocacy advocacy opinion alsa amarok apache apple apt aptitude archive audio audo authentication automount avi awk backup bash BIOS boot browser business bzip cache calendar calibre cdr cdrecord censorship commandline computerscience console convert cron cut database date debian degree design desktop development disk dpkg dvd economics education emacs email europe exim faad ffmpeg file files firefox firewall flash foss freedom ftp fun fuse git gnumeric graphics grep growisofs grub gtkpod gzip hardware hardware html icedove idiocy image imagemagick images installation ip iphone ipod iptables iso itunes ivman kde kernel keyboard knoppix lame laptop latex libreoffice linux locale lockin locking longlines lsof m4a microsoft mimetypes minitab mogrify mount mp3 mp4 mplayer multimedia music mysql network nfs nfs4 nmap openbox openfiles openoffice opinion opinion orgmode partition pdf pdftk perl php podcast politics pomodoro ports postgresql print printing privacy process programming rant remote rhythmbox rss rsync rxvt scp screengrab screenshot script scripting scsi security sed server services shell siteadmin sitenews sitesoftware skype skype slackware sound sox spam spreadsheet ssh statistics subversion sudo svk swap t23 t43 tar terminal tex text thinkpad thunderbird time timer timezone ubuntu udev upgrade usb usbmount users uuid versioncontrol vfat video vnc windows wine wordpress wordprocessing X40 xwindows xwindows youtube
You run Debian Sid. You're on the cutting edge. It's where you like to be.
Recently, you found that USB pen drives and hard disks weren't being mounted, or if they were, no user other than root was able to write to them.
You know it's all udev. It's shiny. It's new. It controls the /dev directory and almost all hardware events.
If it's udev that is making your usb disks mount read-only. why?
You turn on 'debug' level logging:
sudo udevadm control --log-priority=debug
More information is now reported to
/var/log/syslog. You see lines containing
/lib/udev/rules.d/usbmount.rules. You conclude that the udev rules
You examine, in particular
usbmount script to handle the mounting of usb devices. You
become concerned that the usbmount package is no longer maintained.
But you check the source code. You are relieved to find out that
usbmount is a simple script that even you could maintain. You continue to use it.
You read the usbmount documentation, and the configuration options. You realise that the problem is VFAT, an extremely limited and quite rubbish format, that doesn't deal with permissions properly and that, therefore, no one in their right mind should use. Unfortunately, pen drives always use VFAT. You remember the proper way to mount VFAT disks.
You make the following changes to
You replace the line:
With this one:
And you add this line:
Users in the plugdev group can now write to pen drives and other usb VFAT formatted hard drives. You make sure you are in the plugdev group.