[dm-crypt] LUKS is written to a device with no partition table. Is it possible to add a partition table?

Joe Hillenbrand joehillen at gmail.com
Wed Apr 20 21:26:59 CEST 2016


I was worried about this. Turns out since there is no partition table,
I don't think I can be sure that btrfs only lives on the first 4TiB.

    # parted /dev/mapper/fatty
    GNU Parted 3.2
    Using /dev/mapper/fatty
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) print
    Model: Linux device-mapper (crypt) (dm)
    Disk /dev/mapper/fatty: 12.0TB
    Sector size (logical/physical): 512B/4096B
    Partition Table: loop
    Disk Flags:

    Number  Start  End     Size    File system  Flags
    1      0.00B  12.0TB  12.0TB  btrfs

    (parted) unit s
    (parted) print
    Model: Linux device-mapper (crypt) (dm)
    Disk /dev/mapper/fatty: 23441764352s
    Sector size (logical/physical): 512B/4096B
    Partition Table: loop
    Disk Flags:

    Number  Start  End           Size          File system  Flags
    1      0s     23441764351s  23441764352s  btrfs


I'm having a terrible time trying to figure out a way to confirm on
which blocks the filesystem lives.


More information about the dm-crypt mailing list