Re: dm-crypt and UUID instead of /dev/xxx

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

 



On 05.06.2007 10:36:15, rupert wrote:
> Hi,
> 
> is there a way to initialize the luks disks with the UUID instead using the
> /deb/hdb1 entry?
> 
> I written a small GUI to manage the diks, but some are USB disks and the dev
> entry changes sometimes.
> 
> Is there a programm that shows me all the disks that are encrypted?(like the
> one that detects the disks on gnome start).
> I would like to add autodetection to my tool.

That's what udev and the /dev/disk/by-id/ directory does.

blindcoder@pallas:~$ ls -l /dev/disk/by-id/
total 0K
lrwxrwxrwx 1 root root 38 2007-03-12 07:45 ata-Maxtor_4G120J6_G6066H5E -> ../../ide/host0/bus0/target0/lun0/disc
lrwxrwxrwx 1 root root 39 2007-03-12 07:45 ata-Maxtor_4G120J6_G6066H5E-part1 -> ../../ide/host0/bus0/target0/lun0/part1
lrwxrwxrwx 1 root root 39 2007-03-12 07:45 ata-Maxtor_4G120J6_G6066H5E-part2 -> ../../ide/host0/bus0/target0/lun0/part2

For USB disks, it would be /dev/disk/by-id/usb-BLAHBLUBB-partx

Greetings,
	Benjamin
-- 
  ____  _        _    ____  _   _ _ _____ __  __ 
 / ___|| |      / \  / ___|| | | ( ) ____|  \/  |
 \___ \| |     / _ \ \___ \| |_| |/|  _| | |\/| |
  ___) | |___ / ___ \ ___) |  _  | | |___| |  | |
 |____/|_____/_/   \_\____/|_| |_| |_____|_|  |_|
 play online: telnet://slashem.crash-override.net
 view scores: http://slashem.crash-override.net
 watch deaths: irc://irc.freenode.net#slashem

Attachment: pgpWx7kAXNtdj.pgp
Description: PGP signature


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux