backup of luks header example in the FAQ has a wrong path

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

 



using cryptsetup 1.4.1

At the section on how to backup a luks header, the example given is below:
cryptsetup luksHeaderBackup --header-backup-file h /dev/mapper/c1

The usage of "/dev/mapper" path implies running the command on the mapper, when i do that i get the following output:

[root@mtz build]# cryptsetup luksOpen /dev/sdc1 abc
Enter passphrase for /dev/sdc1:
[root@mtz build]# cryptsetup luksHeaderBackup --header-backup-file backup.img  /dev/mapper/abc ; echo $?
Device /dev/mapper/abc is not a valid LUKS device.
1

The command errors out when using the mapper address as FAQ suggests.

When i use the device directly, it works as shown below:
[root@mtz build]# cryptsetup luksHeaderBackup --header-backup-file backup.img  /dev/sdc1 ; echo $?
0

It looks like the command to backup the header is supposed to be run on the device its self and not on the mapper as the FAQ suggests.
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt

[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