Saturday, November 20, 2004

Hotplugs

It used to take some work to set up a hotplug, that is, to mount an external device such as a memory key or digital camera. No more. Just plug the device in, and do

$ ls -l /media/
total 24
drwxr-xr-x  2 root root 4096 Nov 20 09:58 cdrecorder
drwxr-xr-x  2 root root 4096 Nov 20 09:58 floppy
drwxr-xr-x  2 root root 4096 Nov 20 19:00 usbdisk

usbdisk is what's in the USB port, so do

$ mount /media/usbdisk/

Move files around as usual, and then

$ umount /media/usbdisk

before unpluging.

0 comments: