Encrypted usb drive has only root priviledges
I have encrypted my 1G USB drive using these commands:
cryptsetup luksFormat /dev/sda1
cryptsetup luksOpen /dev/sda1 newdisk
I tested the newly created partition with the command
cryptsetup status newdisk
and I've got this result:
/dev/mapper/newdisk is active:
cipher: aes-cbc-
keysize: 128 bits
device: /dev/sda1
offset: 1032 sectors
size: 1998595 sectors
mode: read/write
Then I formated the partition with
mkfs.ext2 /dev/mapper/newdisk
mount /dev/mapper/newdisk /mnt
and it worked fine. I unmounted the drive with
umount /mnt
cryptsetup luksClose /dev/mapper/newdisk
and rebooted. I did not modify fstab neither crypttab. Everything went fine, no complains. When I inserted USB flash into slot later on, it properly asked for a password and when given one, it mounted the drive automatically. So far everything went smoothly, indeed. The mount command shows:
/dev/mapper/
The problem is, only root has write access to this drive now.
I tried to modify fstab by adding the line
/dev/mapper/
but on the next reboot it complained that there is no _dev_sdb1 on /dev/mapper and it goes into emergency mode.
I tried /etc/init.
Please help. Thank you.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Tormod Volden
- Solved:
- Last query:
- Last reply: