5

Used space on new encrypted 64GB USB flash drive

view full story
linux-howto

http://crunchbanglinux.org – I encrypted a 64GB USB with plain dm-crypt/cryptsetup as follows. I used gparted to remove the existing/factory FAT32 partition (which started after 2.83MB of unallocated space for some reason) and then ran:$ sudo cryptsetup create -c aes-cbc-plain -s 256 -h ripemd160 -y NAME /dev/sdc # enter password twice $ sudo mkfs.ext4 -m 0 /dev/mapper/NAME $ sudo mkdir /media/NAME $ sudo chown USER:USER /media/NAME -R $ sudo mount /dev/mapper/NAME /media/NAME/This all worked fine -- I have an empty, encrypted device. However:$ df -Th ... /dev/mapper/NAME ext4 61G (HowTos)