> Labels and UUIDs are stored only on the filesystems they come from and > in the blkid cache in /etc/blkid.tab. That cache is cleared and > regenerated whenever you reboot. You can do this at any time by > running: > > blkid -c /dev/null -w /etc/blkid.tab > > udev does not have a database of its own; it uses blkid to look up > labels and UUIDs. > > FAT filesystems actually have 2 labels, and not every tool writes to > both of them. Looking at the code, I think mlabel tries to do so, but > it might not be reliable. Try using dosfslabel instead, as I fixed that > a little while ago and am confident that it does the right thing. > > Ben.
Hi Ben, I tried, as you adviced me, but I got no success. I used your commands, but this did not help. The strange thing is: if I create a new label, it is recognized with the new label. But when I delete the new label using mlabel -i /dev/sdb1, then the old label is again there. Please look at this: root@protheus7:~# mlabel -i /dev/sdb1 :: Volume has no label Enter the new volume label : root@protheus7:~# Now putting it out and again in, then it is recognized with label "BT4" (there was formerly Backtrack4 on this card). After it, I mount it in KDE4 using the hardwaremanager and starting dolpin. Although, the drive has no label (I overwrote and deleted the label in Windows,too), look at the udev stuff: root@protheus7:~# ls -la /dev/.udev/links/ |grep BT4 drwxr-xr-x 2 root root 80 7. Mär 19:44 disk\x2fby-label\x2fBT4 root@protheus7:~# And its content: root@protheus7:/dev/.udev/links/disk\x2fby-label\x2fBT4# pwd /dev/.udev/links/disk\x2fby-label\x2fBT4 root@protheus7:/dev/.udev/links/disk\x2fby-label\x2fBT4# root@protheus7:/dev/.udev/links/disk\x2fby-label\x2fBT4# ls b8:16 b8:17 root@protheus7:~# cat /dev/.udev/db/b8\:16 N:sdb S:disk/by-id/usb-Single_Flash_Reader_058F63356336-0:0 S:disk/by-path/pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0 S:disk/by-uuid/474910bd-9497-4324-b3ea-d2ba465da4e1 S:disk/by-label/BT4 W:68 I:3876054641 E:ID_VENDOR=Single E:ID_VENDOR_ENC=Single\x20\x20 E:ID_VENDOR_ID=058f E:ID_MODEL=Flash_Reader E:ID_MODEL_ENC=Flash\x20Reader\x20\x20\x20\x20 E:ID_MODEL_ID=6335 E:ID_REVISION=1.00 E:ID_SERIAL=Single_Flash_Reader_058F63356336-0:0 E:ID_SERIAL_SHORT=058F63356336 E:ID_TYPE=disk E:ID_INSTANCE=0:0 E:ID_BUS=usb E:ID_USB_INTERFACES=:080650: E:ID_USB_INTERFACE_NUM=00 E:ID_USB_DRIVER=usb-storage E:ID_PATH=pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0 E:ID_PART_TABLE_TYPE=dos E:ID_FS_LABEL=BT4 E:ID_FS_LABEL_ENC=BT4 E:ID_FS_UUID=474910bd-9497-4324-b3ea-d2ba465da4e1 E:ID_FS_UUID_ENC=474910bd-9497-4324-b3ea-d2ba465da4e1 E:ID_FS_VERSION=1.0 E:ID_FS_TYPE=ext2 E:ID_FS_USAGE=filesystem E:UDISKS_PRESENTATION_NOPOLICY=0 root@protheus7:~# root@protheus7:~# cat /dev/.udev/db/b8\:17 N:sdb1 S:disk/by-id/usb-Single_Flash_Reader_058F63356336-0:0-part1 S:disk/by-path/pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0-part1 S:disk/by-uuid/6A25-5376 S:disk/by-label/BT4 W:70 I:3876148685 E:ID_VENDOR=Single E:ID_VENDOR_ENC=Single\x20\x20 E:ID_VENDOR_ID=058f E:ID_MODEL=Flash_Reader E:ID_MODEL_ENC=Flash\x20Reader\x20\x20\x20\x20 E:ID_MODEL_ID=6335 E:ID_REVISION=1.00 E:ID_SERIAL=Single_Flash_Reader_058F63356336-0:0 E:ID_SERIAL_SHORT=058F63356336 E:ID_TYPE=disk E:ID_INSTANCE=0:0 E:ID_BUS=usb E:ID_USB_INTERFACES=:080650: E:ID_USB_INTERFACE_NUM=00 E:ID_USB_DRIVER=usb-storage E:ID_PATH=pci-0000:00:1d.7-usb-0:3:1.0-scsi-0:0:0:0 E:ID_PART_TABLE_TYPE=dos E:ID_FS_LABEL=BT4 E:ID_FS_LABEL_ENC=BT4 E:ID_FS_UUID=6A25-5376 E:ID_FS_UUID_ENC=6A25-5376 E:ID_FS_VERSION=FAT32 E:ID_FS_TYPE=vfat E:ID_FS_USAGE=filesystem E:UDISKS_PRESENTATION_NOPOLICY=0 E:UDISKS_PARTITION=1 E:UDISKS_PARTITION_SCHEME=mbr E:UDISKS_PARTITION_NUMBER=1 E:UDISKS_PARTITION_TYPE=0x0c E:UDISKS_PARTITION_SIZE=1967120384 E:UDISKS_PARTITION_FLAGS=boot E:UDISKS_PARTITION_SLAVE=/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/host10/target10:0:0/10:0:0:0/block/sdb E:UDISKS_PARTITION_OFFSET=8192 E:UDISKS_PARTITION_ALIGNMENT_OFFSET=0 root@protheus7:~# You see now, what I meant, with the database of udev. I deleted those files and the directories, but they are created by udev, when I plugin the sd-card. It is weired, because I cannot recognize, what is going on. I deleted also /etc/blkid.tab, and rebooted, but also got no success. Really weired... Hope, this helps a little bit. Hans -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201103072005.23449.hans.ullr...@loop.de