Re: /dev/disk/by-id symlinks should not include bus type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 1, 2008 at 19:00, martin f krafft <madduck@xxxxxxxxxx> wrote:

> Entries in /dev/disk/by-id are prefixed with e.g. ata-* or scsi-* or
> usb-* depending on the bus to which a disk is connected. This makes
> it impossible to switch disks between busses (e.g. hook an ATA disk
> to usbserial and just make it work). I can use by-uuid for
> partitions holding filesystems, but swap partitions are not exposed
> by-uuid, so those cannot be used across different bus-systems.

UUID's are the right solution here. Fix your mkswap, or re-run it, it
has support for this for long:
  /lib/udev/vol_id /dev/sda10
  ID_FS_USAGE=other
  ID_FS_TYPE=swap
  ID_FS_VERSION=2
  ID_FS_UUID=275f3dae-70e7-4c0b-b81a-b5b658b7f3e6
  ID_FS_UUID_ENC=275f3dae-70e7-4c0b-b81a-b5b658b7f3e6
  ID_FS_LABEL=swap
  ID_FS_LABEL_ENC=swap

Thanks,
Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux