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:46 kaffee kernel: [588414.485131] sd 13:0:0:0: [sdk] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Dec 18 13:21:46 kaffee kernel: [588414.528258]  sdk: sdk1
Dec 18 13:21:46 kaffee kernel: [588414.530946] sd 13:0:0:0: [sdk] Attached SCSI disk


So it is better to use UUID instead of sdX bla.   Check UUID for the usb external HDD


root@kaffee:/dev/disk/by-uuid# ls -ltar
total 0
drwxr-xr-x 5 root root 100 Dec 18 13:17 ..
lrwxrwxrwx 1 root root  10 Dec 18 13:18 ee695188-6bab-4f1f-a4c2-cf1b70799c4e -> ../../sdk1


  Change /etc/fstab as follows:


#/dev/sdl1      /media/toshiba                            ext4    rw,user,noauto        0       0
UUID=ee695188-6bab-4f1f-a4c2-cf1b70799c4e       /media/toshiba                    ext4    rw,user,noauto      

저작자 표시 비영리 변경 금지
신고

'Computer > linux' 카테고리의 다른 글

identify NetBIOS names on Linux  (0) 2013.12.20
use UUID to fix a device name  (0) 2013.12.18
compare two directories by using diff  (0) 2013.10.28
remove a user from a specific group  (0) 2013.10.28
블로그 이미지

citadel

memory, life, and logs

Tag

티스토리 툴바