In an attempt to create an encrypted partition on my Slackware 12 system (not the root or swap partition, just a standard partition on a secondary drive to store all my important data). I would like this partition to be visible in KDE system:/media but require a password to open/decrypt it for use after booting into KDE.
I have been working with the "README_CRYPT.TXT
" written by Alien_Bob; but after following the readme and (I think) adapting as necessary, I am a little stumped as to why it is not working.
What I have done so far:
1. Create a 5Gb ext3 partition as /dev/hdb6, label crypt.
2. Reboot for partition table to update and KDE to 'see' new partition.
3. Open root terminal in kde, type:
cryptsetup -s 256 -y luksFormat /dev/hdb6
cryptsetup luksDump /dev/hdb6
cryptsetup luksOpen /dev/hdb6 crypt
echo "<passwd> crypt /dev/hdb6" > /etc/crypttab
vgcreate cryptvg /dev/mapper/crypt
lvcreate -L 5G -n crypt cryptvg
After rebooting the computer, I have .. well .. nothing?
The crypt partition is no longer appearing in KDE system:/media. If I open a root terminal and type mount, there is no mention of /dev/hdb6 being mounted anywhere?
I then made a directory /mnt/crypt and attempted to mount /dev/hdb6 manually:
root@Crazed-Weasel:~# mkdir /mnt/crypt
root@Crazed-Weasel:~# mount /dev/hdb6 /mnt/crypt
mount: wrong fs type, bad option, bad superblock on /dev/hdb6,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
So then I followed up with 'dmesg | tail' and was presented with this:
EXT3-fs error (device hdb6): ext3_check_descriptors: Block bitmap for group 0 not in group (block 1880800975)!
EXT3-fs: group descriptors corrupted!
What does that mean?
Did I miss an important step in the encryption process somewhere?
I am very new to encryption so if anyone could offer suggestions or solutions to this, I would really appreciate it.
Thanks very much in advance for any help.