'uuid'에 해당되는 글 3건

 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 uuid
  • 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
  • bugs

    umount: mount disagrees with the fstab

  • consult https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/99437/comments/3

  1. ls -lta /dev/disk/by-id/  returns
    usb-Imation_Atom_07850E270003-0:0-part1 -> ../../sdc1
  2. in /etc/fstab,
    /dev/disk/by-id/usb-Imation_Atom_07850E270003-0:0-part1 /media/usb-atom    auto        user,noauto,umask=033    0    0



신고
블로그 이미지

citadel

memory, life, and logs

uuid and local

Computer/linux 2007.06.27 07:37
wants to know about UUID

 ls -lta /dev/disk/by-uuid/

and locale

more /var/lib/locales/supported.d/local


신고

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

GD Graphics Library  (0) 2007.07.26
uuid and local  (0) 2007.06.27
warning: comparison between signed and unsigned integer expressions  (0) 2007.06.24
How to do xterm configuration  (0) 2007.06.22
블로그 이미지

citadel

memory, life, and logs

Tag locale, uuid

티스토리 툴바