✓ Solved
Mount fails for ecryptfs container file
Hello everyone. I'm a new user experimenting with a basic Alpine Nanode (1GB RAM/25 GB storage )
I'm trying to create a secure storage container on the Node. I have no experience with VMs or cloud machines but lots with metal. This is what I have done:
- Created a 1G container file with fallocate.
- Created a key with dd.
- Formatted the container/assigned key with cryptsetup/LUKS.
- opened the device / confirmed it opens in /dev/mapper.
- created a filesystem on the open block device
All of thes operations worked exactly as I would have expected. However, when I try to mount the block device, mount fails:
a:~/keys/fc0# file -s /dev/mapper/fc0
/dev/mapper/fc0: SGI XFS filesystem data (blksz 4096, inosz 512, v2 dirs)
a:~/keys/fc0# mount /dev/mapper/fc0 /srv/fc0/
mount: mounting /dev/mapper/fc0 on /srv/fc0/ failed: Invalid argument
I have No Idea what's going on. Any help would be very appreciated. Thanks.