Strange problem or maybe no problem ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello :-)

I have a problem :> I don't know if I moved this
data before somwhere else or am I using the wrong password
for my probably encrypted partition ;>

I always (last time about 2-3 months ago) did:
# cryptsetup.sh create encrypted /dev/sda2
# mount /dev/mapper/encrypted

but now after `mount /dev/mapper/encrypted /mnt/encrypted`
I get ~ "you must specify the filesystem"

(all modules are loaded)

So, as I said before, maybe I moved the data and did a format on
this partition, but I want to be sure before I do something really bad :]

My question is: is it possible, that /dev/sda2 is an encrypted
partition when :

# head -n 1 /dev/sda2
�mkdosfs  ?Q
            .) vE           FAT32   ┬≠"�

and when `mount /dev/sda2 /mnt/sda2` mounts cleanly but
no files/dirs are shown after `ls /mnt/sda2` ?
(I did not try to write something after mounting this way)

Looks like fat32? I did not use any special switches during
creation/encryption of this partition (-b -o etc.) I did not change
the version of cryptsetup/cryptsetup.sh (I don't use Luks) since the
partition was created.

I wrote this little script to automate password guessing
on this partition (is it ok?):

#!/bin/sh
PASSWORDS="password1
password2
password3
password4"

for password in $PASSWORDS; do
    echo -e "\n\n\n*** $password"
    cryptsetup.sh remove encrypted
    echo "$password" | cryptsetup.sh create encrypted /dev/sda2
 #  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 #  is this way of passing the password ok?
 #
    mount /dev/mapper/encrypted /mnt/encrypted
    ls -la /mnt/encrypted
    umount /dev/sda2
done


How can I get sure that there is no encrypted data on this disk?
Lets say, I have moved all this data somwhere else, and then I did
only `mkfs.msdos -F 32 /dev/sda2` - can I undo this?

TIA for any help 8-)

-- 
websafe

---------------------------------------------------------------------
dm-crypt mailing list - http://www.saout.de/misc/dm-crypt/
To unsubscribe, e-mail: dm-crypt-unsubscribe@xxxxxxxx
For additional commands, e-mail: dm-crypt-help@xxxxxxxx


[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux