Re: [arch-general] Problem with udev 145?
Hello, Replying here, as users cannot post to arch-dev-pubilc, IIRC. On 2009-08-28 at 09:30 +0200, Thomas Bächler wrote:
Exactly one of the many LUKS devices doesn't show up in /dev/disk/by-uuid/ anymore since an update of initscripts, udev and glibc this week. The other LUKS devices are still there, exactly that one is missing. cryptsetup displays the correct UUID and the device can be unlocked fine.
I can also confirm this. I have exactly the same problem here. One of my two external encrypted USB drives doesn't have a /dev/disk/by-uuid symlink with udev-145-1. However all other /dev/disk/by-* links for this drive are present. It is always the same drive that is affected. And it is only the by-label link for this drive which is missing.
I am lost here, does someone have ideas?
Not really. Just that downgrading to udev-141-5 helps here. Regards.
Sebastian Schwarz schrieb:
I can also confirm this. I have exactly the same problem here. One of my two external encrypted USB drives doesn't have a /dev/disk/by-uuid symlink with udev-145-1. However all other /dev/disk/by-* links for this drive are present. It is always the same drive that is affected. And it is only the by-label link for this drive which is missing.
I am several hundred kilometers away from the machine in question, so debugging is impossible. It's an external drive for you, so can you run: udevadm --kernel --udev --env and then plug it in? Maybe we can find the problem in the output.
I forgot to mention that I do not use any custom udev rules. Just Arch's defaults. On 2009-08-29 at 01:43 +0200, Thomas Bächler wrote:
It's an external drive for you, so can you run: udevadm --kernel --udev --env and then plug it in? Maybe we can find the problem in the output.
Here you go. Hope it helps: # udevadm monitor --kernel --udev --env monitor will print the received events for: UDEV - the event which udev sends out after rule processing KERNEL - the kernel uevent KERNEL[1251503380.850313] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2 (usb) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2 SUBSYSTEM=usb DEVTYPE=usb_device DEVICE=/proc/bus/usb/001/038 PRODUCT=d49/7201/1 TYPE=0/0/0 BUSNUM=001 DEVNUM=038 SEQNUM=1613 MAJOR=189 MINOR=37 KERNEL[1251503380.852219] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0 (usb) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/001/038 PRODUCT=d49/7201/1 TYPE=0/0/0 INTERFACE=8/6/80 MODALIAS=usb:v0D49p7201d0001dc00dsc00dp00ic08isc06ip50 SEQNUM=1614 KERNEL[1251503380.853833] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6 (scsi) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6 SUBSYSTEM=scsi DEVTYPE=scsi_host SEQNUM=1615 KERNEL[1251503380.854877] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/scsi_host/host6 (scsi_host) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/scsi_host/host6 SUBSYSTEM=scsi_host SEQNUM=1616 KERNEL[1251503380.856312] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/usb_endpoint/usbdev1.38_ep01 (usb_endpoint) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/usb_endpoint/usbdev1.38_ep01 SUBSYSTEM=usb_endpoint SEQNUM=1617 MAJOR=253 MINOR=16 KERNEL[1251503380.857239] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/usb_endpoint/usbdev1.38_ep82 (usb_endpoint) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/usb_endpoint/usbdev1.38_ep82 SUBSYSTEM=usb_endpoint SEQNUM=1618 MAJOR=253 MINOR=24 KERNEL[1251503380.858211] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/usb_device/usbdev1.38 (usb_device) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/usb_device/usbdev1.38 SUBSYSTEM=usb_device SEQNUM=1619 MAJOR=189 MINOR=37 KERNEL[1251503380.859130] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/usb_endpoint/usbdev1.38_ep00 (usb_endpoint) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/usb_endpoint/usbdev1.38_ep00 SUBSYSTEM=usb_endpoint SEQNUM=1620 MAJOR=253 MINOR=25 UDEV [1251503380.888230] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2 (usb) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2 SUBSYSTEM=usb DEVTYPE=usb_device DEVICE=/proc/bus/usb/001/038 PRODUCT=d49/7201/1 TYPE=0/0/0 BUSNUM=001 DEVNUM=038 SEQNUM=1613 ID_VENDOR=Maxtor ID_VENDOR_ENC=Maxtor ID_VENDOR_ID=0d49 ID_MODEL=OneTouch_III ID_MODEL_ENC=OneTouch\x20III ID_MODEL_ID=7201 ID_REVISION=0001 ID_SERIAL=Maxtor_OneTouch_III_00F3127F ID_SERIAL_SHORT=00F3127F ID_BUS=usb ID_USB_INTERFACES=:080650: DEVNAME=/dev/bus/usb/001/038 MAJOR=189 MINOR=37 DEVLINKS=/dev/char/189:37 UDEV [1251503380.892215] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/usb_endpoint/usbdev1.38_ep00 (usb_endpoint) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/usb_endpoint/usbdev1.38_ep00 SUBSYSTEM=usb_endpoint SEQNUM=1620 DEVNAME=/dev/usbdev1.38_ep00 MAJOR=253 MINOR=25 DEVLINKS=/dev/char/253:25 UDEV [1251503380.892529] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/usb_device/usbdev1.38 (usb_device) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/usb_device/usbdev1.38 SUBSYSTEM=usb_device SEQNUM=1619 DEVNAME=/dev/usbdev1.38 MAJOR=189 MINOR=37 DEVLINKS=/dev/char/189:37 UDEV [1251503380.893759] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0 (usb) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0 SUBSYSTEM=usb DEVTYPE=usb_interface DEVICE=/proc/bus/usb/001/038 PRODUCT=d49/7201/1 TYPE=0/0/0 INTERFACE=8/6/80 MODALIAS=usb:v0D49p7201d0001dc00dsc00dp00ic08isc06ip50 SEQNUM=1614 UDEV [1251503380.893936] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/usb_endpoint/usbdev1.38_ep01 (usb_endpoint) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/usb_endpoint/usbdev1.38_ep01 SUBSYSTEM=usb_endpoint SEQNUM=1617 DEVNAME=/dev/usbdev1.38_ep01 MAJOR=253 MINOR=16 DEVLINKS=/dev/char/253:16 UDEV [1251503380.894090] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/usb_endpoint/usbdev1.38_ep82 (usb_endpoint) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/usb_endpoint/usbdev1.38_ep82 SUBSYSTEM=usb_endpoint SEQNUM=1618 DEVNAME=/dev/usbdev1.38_ep82 MAJOR=253 MINOR=24 DEVLINKS=/dev/char/253:24 UDEV [1251503380.894217] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6 (scsi) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6 SUBSYSTEM=scsi DEVTYPE=scsi_host SEQNUM=1615 UDEV [1251503380.894492] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/scsi_host/host6 (scsi_host) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/scsi_host/host6 SUBSYSTEM=scsi_host SEQNUM=1616 KERNEL[1251503386.566024] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0 (scsi) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0 SUBSYSTEM=scsi DEVTYPE=scsi_target SEQNUM=1621 KERNEL[1251503386.566179] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0 (scsi) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0 SUBSYSTEM=scsi DEVTYPE=scsi_device MODALIAS=scsi:t-0x00 SEQNUM=1622 KERNEL[1251503386.566297] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/scsi_device/6:0:0:0 (scsi_device) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/scsi_device/6:0:0:0 SUBSYSTEM=scsi_device SEQNUM=1623 KERNEL[1251503386.566408] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/scsi_generic/sg1 (scsi_generic) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/scsi_generic/sg1 SUBSYSTEM=scsi_generic SEQNUM=1624 MAJOR=21 MINOR=1 KERNEL[1251503386.566537] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/bsg/6:0:0:0 (bsg) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/bsg/6:0:0:0 SUBSYSTEM=bsg SEQNUM=1625 MAJOR=254 MINOR=1 UDEV [1251503386.568461] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0 (scsi) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0 SUBSYSTEM=scsi DEVTYPE=scsi_target SEQNUM=1621 UDEV [1251503386.568591] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0 (scsi) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0 SUBSYSTEM=scsi DEVTYPE=scsi_device MODALIAS=scsi:t-0x00 SEQNUM=1622 UDEV [1251503386.568873] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/scsi_device/6:0:0:0 (scsi_device) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/scsi_device/6:0:0:0 SUBSYSTEM=scsi_device SEQNUM=1623 UDEV [1251503386.569130] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/scsi_generic/sg1 (scsi_generic) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/scsi_generic/sg1 SUBSYSTEM=scsi_generic SEQNUM=1624 DEVNAME=/dev/sg1 MAJOR=21 MINOR=1 DEVLINKS=/dev/char/21:1 UDEV [1251503386.569721] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/bsg/6:0:0:0 (bsg) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/bsg/6:0:0:0 SUBSYSTEM=bsg SEQNUM=1625 DEVNAME=/dev/bsg/6:0:0:0 MAJOR=254 MINOR=1 DEVLINKS=/dev/char/254:1 KERNEL[1251503386.570239] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/scsi_disk/6:0:0:0 (scsi_disk) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/scsi_disk/6:0:0:0 SUBSYSTEM=scsi_disk SEQNUM=1626 UDEV [1251503386.570649] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/scsi_disk/6:0:0:0 (scsi_disk) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/scsi_disk/6:0:0:0 SUBSYSTEM=scsi_disk SEQNUM=1626 KERNEL[1251503386.596528] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb (block) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb SUBSYSTEM=block DEVTYPE=disk SEQNUM=1627 MAJOR=8 MINOR=16 KERNEL[1251503386.596692] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1 (block) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1 SUBSYSTEM=block DEVTYPE=partition SEQNUM=1628 MAJOR=8 MINOR=17 KERNEL[1251503386.596818] add /devices/virtual/bdi/8:16 (bdi) UDEV_LOG=0 ACTION=add DEVPATH=/devices/virtual/bdi/8:16 SUBSYSTEM=bdi SEQNUM=1629 UDEV [1251503386.601120] add /devices/virtual/bdi/8:16 (bdi) UDEV_LOG=0 ACTION=add DEVPATH=/devices/virtual/bdi/8:16 SUBSYSTEM=bdi SEQNUM=1629 UDEV [1251503386.788141] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb (block) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb SUBSYSTEM=block DEVTYPE=disk SEQNUM=1627 ID_VENDOR=Maxtor ID_VENDOR_ENC=Maxtor\x20\x20 ID_VENDOR_ID=0d49 ID_MODEL=OneTouch_III ID_MODEL_ENC=OneTouch\x20III\x20\x20\x20\x20 ID_MODEL_ID=7201 ID_REVISION=035f ID_SERIAL=Maxtor_OneTouch_III_00F3127F-0:0 ID_SERIAL_SHORT=00F3127F ID_TYPE=disk ID_INSTANCE=0:0 ID_BUS=usb ID_USB_INTERFACES=:080650: ID_USB_INTERFACE_NUM=00 ID_USB_DRIVER=usb-storage ID_PATH=pci-0000:00:1d.7-usb-0:8.2.2:1.0-scsi-0:0:0:0 DEVNAME=/dev/sdb MAJOR=8 MINOR=16 DEVLINKS=/dev/block/8:16 /dev/disk/by-id/usb-Maxtor_OneTouch_III_00F3127F-0:0 /dev/disk/by-path/pci-0000:00:1d.7-usb-0:8.2.2:1.0-scsi-0:0:0:0 UDEV [1251503386.843873] add /devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1 (block) UDEV_LOG=0 ACTION=add DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.2/1-8.2.2/1-8.2.2:1.0/host6/target6:0:0/6:0:0:0/block/sdb/sdb1 SUBSYSTEM=block DEVTYPE=partition SEQNUM=1628 ID_VENDOR=Maxtor ID_VENDOR_ENC=Maxtor\x20\x20 ID_VENDOR_ID=0d49 ID_MODEL=OneTouch_III ID_MODEL_ENC=OneTouch\x20III\x20\x20\x20\x20 ID_MODEL_ID=7201 ID_REVISION=035f ID_SERIAL=Maxtor_OneTouch_III_00F3127F-0:0 ID_SERIAL_SHORT=00F3127F ID_TYPE=disk ID_INSTANCE=0:0 ID_BUS=usb ID_USB_INTERFACES=:080650: ID_USB_INTERFACE_NUM=00 ID_USB_DRIVER=usb-storage ID_PATH=pci-0000:00:1d.7-usb-0:8.2.2:1.0-scsi-0:0:0:0 DEVNAME=/dev/sdb1 MAJOR=8 MINOR=17 DEVLINKS=/dev/block/8:17 /dev/disk/by-id/usb-Maxtor_OneTouch_III_00F3127F-0:0-part1 /dev/disk/by-path/pci-0000:00:1d.7-usb-0:8.2.2:1.0-scsi-0:0:0:0-part1
Sebastian Schwarz schrieb:
I forgot to mention that I do not use any custom udev rules. Just Arch's defaults.
On 2009-08-29 at 01:43 +0200, Thomas Bächler wrote:
It's an external drive for you, so can you run: udevadm --kernel --udev --env and then plug it in? Maybe we can find the problem in the output.
Here you go. Hope it helps:
Can't see anything here. Can you call blkid /dev/sdb1 (or whetever the partition is)? Should return something like: /dev/sda6: UUID="a008dfd5-385b-4c24-81e1-5f741132c400" TYPE="crypto_LUKS"
On 2009-08-29 at 13:52 +0200, Thomas Bächler wrote:
Can't see anything here. Can you call blkid /dev/sdb1 (or whetever the partition is)?
The following command for the partition in question did not output anything: $ blkid /dev/sdc1 Yes, I am sure this is the right device file. :) $ ls -l /dev/disk/by-id/usb-Maxtor_OneTouch_III_00F3127F-0:0-part1 lrwxrwxrwx 1 root root 10 2009-08-29 11:01 /dev/disk/by-id/usb-Maxtor_OneTouch_III_00F3127F-0:0-part1 -> ../../sdc1 This is what I get for my other external hard drive: $ blkid /dev/sdd1 /dev/sdd1: UUID="87536fef-2136-4341-ac23-ceff7d220c07" TYPE="crypto_LUKS"
Sebastian Schwarz schrieb:
On 2009-08-29 at 13:52 +0200, Thomas Bächler wrote:
Can't see anything here. Can you call blkid /dev/sdb1 (or whetever the partition is)?
The following command for the partition in question did not output anything:
$ blkid /dev/sdc1
Yes, I am sure this is the right device file. :)
$ ls -l /dev/disk/by-id/usb-Maxtor_OneTouch_III_00F3127F-0:0-part1 lrwxrwxrwx 1 root root 10 2009-08-29 11:01 /dev/disk/by-id/usb-Maxtor_OneTouch_III_00F3127F-0:0-part1 -> ../../sdc1
This is what I get for my other external hard drive:
$ blkid /dev/sdd1 /dev/sdd1: UUID="87536fef-2136-4341-ac23-ceff7d220c07" TYPE="crypto_LUKS"
So we narrowed the problem down. Does cryptsetup luksDump show the UUID for both of them. And cryptsetup luksUUID? I'll have to look into blkid and see why it fails.
On 2009-08-29 at 14:26 +0200, Thomas Bächler wrote:
So we narrowed the problem down. Does cryptsetup luksDump show the UUID for both of them. And cryptsetup luksUUID? I'll have to look into blkid and see why it fails.
Yes, both luksDump and luksUUID show the UUIDs for both drives.
Sebastian Schwarz schrieb:
On 2009-08-29 at 14:26 +0200, Thomas Bächler wrote:
So we narrowed the problem down. Does cryptsetup luksDump show the UUID for both of them. And cryptsetup luksUUID? I'll have to look into blkid and see why it fails.
Yes, both luksDump and luksUUID show the UUIDs for both drives.
http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/2563 So, this is what happens. Input is welcome :)
On 2009-08-29 at 19:37 +0200, Thomas Bächler wrote:
http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/2563
So, this is what happens. Input is welcome :)
As I had nowhere enough space to backup the hard drive and recreate the LUKS volume I was desperate enough to use the dd method Karel Zak mentioned in his second post: # dd if=/dev/zero of=/dev/sdc1 bs=1 seek=1080 count=2 conv=notrunc It worked just fine on the (former ext3) partition. blkid now reports the UUID correctly and the /dev/disk/by-label link for it is created when plugging in the USB drive. # blkid /dev/sdc1 /dev/sdc1: UUID="e3c24abf-143a-4d84-92b1-113f02a49a16" TYPE="crypto_LUKS" However I've come to wonder what the correct partition type for LUKS might be. Usually I use just 83 (Linux), but I also have an encrypted swap partition of type 82 (Linux swap / Solaris). Both work. Moreover [this][1] site claims that the partition type for LUKS is e8. However fdisk doesn't recognize it and just displays it as "Unknown". Is there a preferred partition type for LUKS or is it in this case not so important? [1]: http://www.win.tue.nl/~aeb/partitions/partition_types-1.html
Sebastian Schwarz schrieb:
As I had nowhere enough space to backup the hard drive and recreate the LUKS volume I was desperate enough to use the dd method Karel Zak mentioned in his second post:
# dd if=/dev/zero of=/dev/sdc1 bs=1 seek=1080 count=2 conv=notrunc
It worked just fine on the (former ext3) partition. blkid now reports the UUID correctly and the /dev/disk/by-label link for it is created when plugging in the USB drive.
# blkid /dev/sdc1 /dev/sdc1: UUID="e3c24abf-143a-4d84-92b1-113f02a49a16" TYPE="crypto_LUKS"
Haha, nice.
However I've come to wonder what the correct partition type for LUKS might be. Usually I use just 83 (Linux), but I also have an encrypted swap partition of type 82 (Linux swap / Solaris). Both work.
Linux completey ignores partition types, it's that simple :)
participants (2)
-
Sebastian Schwarz
-
Thomas Bächler