I recently purchased a large external drive. Using dm-crypt to set it up.
# cryptsetup luksFormat /dev/sdb
WARNING!
========
This will overwrite data on /dev/sdb irrevocably.
Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Command successful.
# mmls /dev/sdb
Cannot determine partition type
# cryptsetup luksOpen /dev/sdb myfs
Enter LUKS passphrase for /dev/sdb:
key slot 0 unlocked.
Command successful.
# mkfs.ext2 -m 0 /dev/mapper/myfs >> /documentation/external_fs_inode_info
(why waste 5% of your disk space on an external hard drive?)
# mount -t ext2 /dev/mapper/myfs /mymountpoint
# cd /mymountpoint; dd if=/dev/urandom of=crap; rm -f crap
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment