uuid
-
use UUID to fix a device nameComputer/linux 2013. 12. 18. 13:59
One target of the automatic backup script is the external usb disk named as /dev/sdl1. After rearrange the usb cables over all usb device, it was recognized as /dev/sdk1 as follows:Dec 18 13:21:46 kaffee kernel: [588414.483990] sd 13:0:0:0: [sdk] 976773168 512-byte logical blocks: (500 GB/465 GiB) Dec 18 13:21:46 kaffee kernel: [588414.484521] sd 13:0:0:0: [sdk] Write Protect is off Dec 18 13:21..
-
mount usb devices by using UUID or device ID (id)Computer/linux 2008. 12. 9. 16:17
Check UUIDs of the devices by blkid OR ls -lta /dev/disk/by-uuid blkid : /dev/sda1: LABEL="ATOM" UUID="5CD2-10BC" TYPE="vfat" ls -lta : 5CD2-10BC -> ../../sdc1 in fstab UUID=5CD2-10BC /media/usb-atom auto user,noauto,umask=033 0 0 bugsumount: mount disagrees with the fstab consult https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/99437/comments/3 ls -lta /dev/disk/by-id/ returns usb-Imat..