how password protect usb drive
hi everyone
how can i protect a usb drive (thunbnail drive) by password? is there any multiplatform solution? thanks in advance
hi everyone
how can i protect a usb drive (thunbnail drive) by password? is there any multiplatform solution? thanks in advance
LUKS is the native Linux method. It can be used in Windows with FreeOTF. There are other cross-platform methods like TrueCrypt.
Assuming that you know the device name (for this example, I’ll use /dev/sdb
), to use LUKS:
# Be root.
cd /dev
su - # Or “sudo -s”.
# Make sure that the device is not mounted.
umount sdb*
# Format the device for encryption.
cryptsetup luksFormat --cipher aes-xts-plain64 --hash sha512 --key-size 512 \
--use-random --verify-passphrase sdb
cryptsetup luksOpen sdb luks-sdb
shred -n 1 mapper/luks-sdb
# Create a file-system.
mkfs -t ext4 -L "FILE_SYSTEM_LABEL" mapper/luks-sdb # Linux Ext4, or
mkfs -t ntfs -L "FILE_SYSTEM_LABEL" mapper/luks-sdb # Windows NTFS.
# If using Ext4, make sure that you can write to it.
# Not needed for NTFS (unless you use NTFS-3G Windows–Linux user-mapping).
mount mapper/luks-sdb /mnt
chown your_user_name: /mnt
umount /mnt
# Clean up.
cryptsetup luksClose mapper/luks-sdb
sync
Then next time you plug the device into Fedora, you’ll be prompted for the pass-phrase, and your chosen FILE_SYSTEM_LABEL will be used to identify the device in the file manager. On Windows you’ll need FreeOTF, and one of the Ext4 drivers if you use Ext4 (recommended; see here for an Ext4 on Windows summary article).
I don’t know about TrueCrypt, but I’m sure someone else can tell you about that.
If you create a ext4 filesystem, it would be necessary to change the permissions (using chown) in order to use the usb drive as a regular user.
You do NOT need the command line to achieve any of this in Fedora with Gnome Shell.
Try out the Disks utility (open up the overview and type 'disks' without the quotes).
From there, you will want to create a new LUKS partition.
Play around with it. Make sure you are selecting the right drive though :D.
thanks everyone
Asked: 2013-09-30 15:32:47 -0500
Seen: 1,877 times
Last updated: Dec 17 '13
Plantronics USB headset not appearing as output device in Pulseaudio [closed]
Password issue - can't login to Fedora
How to make D-Link N 150 USB Adapter work (HP ProBook G2)
Is there a way u can install a usb installer on fedora 17? [closed]
Problem installing from USB live, goes to black screen
USB drive will re-mount just after being ejected
Delay after first press on USB keyboard