is it possible to create partition table inside crypt mapper?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
i.e. not
fdisk /dev/sda; cryptsetup create xxx /dev/sda1
but vice versa
cryptsetup create xxx /dev/sda ; fdisk /dev/mapper/xxx
is it allowed?
fdisk cryptsetup partition-table
add a comment |Â
up vote
1
down vote
favorite
i.e. not
fdisk /dev/sda; cryptsetup create xxx /dev/sda1
but vice versa
cryptsetup create xxx /dev/sda ; fdisk /dev/mapper/xxx
is it allowed?
fdisk cryptsetup partition-table
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
i.e. not
fdisk /dev/sda; cryptsetup create xxx /dev/sda1
but vice versa
cryptsetup create xxx /dev/sda ; fdisk /dev/mapper/xxx
is it allowed?
fdisk cryptsetup partition-table
i.e. not
fdisk /dev/sda; cryptsetup create xxx /dev/sda1
but vice versa
cryptsetup create xxx /dev/sda ; fdisk /dev/mapper/xxx
is it allowed?
fdisk cryptsetup partition-table
asked Dec 6 '17 at 21:53
bdimych
404
404
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
It's possible, but might need additional steps (kpartx) to make those partitions available.
parted /dev/mapper/cryptsda
kpartx -a /dev/mapper/cryptsda
mount /dev/mapper/cryptsda1 /mnt/firstpartition
Most people just use LVM instead, of course LVM also needs VG/LV to be enabled first, but this is usually handled for you by whatever init system you use.
However, you should still partition the raw drive regardless, otherwise there is a high risk of data loss. A seemingly unpartitioned drive is fair game for all partitioners, installers, etc.
So usually it's /dev/sda
û /dev/sda1
û cryptsetup/LUKS û LVM û filesystem.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
It's possible, but might need additional steps (kpartx) to make those partitions available.
parted /dev/mapper/cryptsda
kpartx -a /dev/mapper/cryptsda
mount /dev/mapper/cryptsda1 /mnt/firstpartition
Most people just use LVM instead, of course LVM also needs VG/LV to be enabled first, but this is usually handled for you by whatever init system you use.
However, you should still partition the raw drive regardless, otherwise there is a high risk of data loss. A seemingly unpartitioned drive is fair game for all partitioners, installers, etc.
So usually it's /dev/sda
û /dev/sda1
û cryptsetup/LUKS û LVM û filesystem.
add a comment |Â
up vote
3
down vote
accepted
It's possible, but might need additional steps (kpartx) to make those partitions available.
parted /dev/mapper/cryptsda
kpartx -a /dev/mapper/cryptsda
mount /dev/mapper/cryptsda1 /mnt/firstpartition
Most people just use LVM instead, of course LVM also needs VG/LV to be enabled first, but this is usually handled for you by whatever init system you use.
However, you should still partition the raw drive regardless, otherwise there is a high risk of data loss. A seemingly unpartitioned drive is fair game for all partitioners, installers, etc.
So usually it's /dev/sda
û /dev/sda1
û cryptsetup/LUKS û LVM û filesystem.
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
It's possible, but might need additional steps (kpartx) to make those partitions available.
parted /dev/mapper/cryptsda
kpartx -a /dev/mapper/cryptsda
mount /dev/mapper/cryptsda1 /mnt/firstpartition
Most people just use LVM instead, of course LVM also needs VG/LV to be enabled first, but this is usually handled for you by whatever init system you use.
However, you should still partition the raw drive regardless, otherwise there is a high risk of data loss. A seemingly unpartitioned drive is fair game for all partitioners, installers, etc.
So usually it's /dev/sda
û /dev/sda1
û cryptsetup/LUKS û LVM û filesystem.
It's possible, but might need additional steps (kpartx) to make those partitions available.
parted /dev/mapper/cryptsda
kpartx -a /dev/mapper/cryptsda
mount /dev/mapper/cryptsda1 /mnt/firstpartition
Most people just use LVM instead, of course LVM also needs VG/LV to be enabled first, but this is usually handled for you by whatever init system you use.
However, you should still partition the raw drive regardless, otherwise there is a high risk of data loss. A seemingly unpartitioned drive is fair game for all partitioners, installers, etc.
So usually it's /dev/sda
û /dev/sda1
û cryptsetup/LUKS û LVM û filesystem.
answered Dec 6 '17 at 22:14
frostschutz
24.5k14774
24.5k14774
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f409325%2fis-it-possible-to-create-partition-table-inside-crypt-mapper%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password