luks encrypted, unlocked partition does not appear in /dev/, despite fdisk seeing it
Hello dear community.
I've been using Linux for quite a while now (1 year in daily home- and work use now), And I'm using Arch Linux as daily for a few months now. (Currently running kernel version 4.8.10-1-ARCH) and I've started using luks/dm-crypt to encrypt some partitions of some harddrive. I'm pretty new to using it, and I've recently tried to create a luks encrypted container on my external harddrive, which I created a mbr(dos) table in and created an ext4 partition in, but I'm not able to mount the partition in this table anymore, since the partition doesnt appear anymore after unlocking the container. Interestingly, fdisk still sees the partition in this container and gets recognized as: Code:
Festplatte /dev/mapper/test: 512 GiB, 549753716736 Bytes, 1073737728 Sektoren nor does it appear in /dev/disk/by-name/ or /dev/disk/by-uuid or anywhere else. I was once able to mount the partition, but now its not possible anymore :( Anyone having a clue why? |
Having a partitioned device inside a LUKS container is pretty unusual. Probing for partitions inside that container is not going to be automatic. You need to tell the kernel to do it:
Code:
kpartx -av /dev/mapper/test |
Also, no point having the block device at all if only one partition - normal practice would be to mkfs on the (unlocked) container itself.
|
Thanks for the swift answers!
Partprobing on /dev/*lukscontainer* actually solved it for me. Funny that I didnt have the idea partprobing after unlocking manually myself makes me wonder lol. @syg00 Realized that now too, already had this once, but I wondered that dolphin is a bit weirdly behaving when partitioning in some container directly, but its behaving more weirdly vice versa... |
All times are GMT -5. The time now is 06:48 AM. |