cryptsetup luksOpen


4 posts
by Werewolf6851 » Sun Dec 16, 2012 8:53 am
greetings by the way.

System, Raspberry Pi B version Version B
uname -a
Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux

using cryptsetup to open my archive
"sudo cryptsetup status archive"
/dev/mapper/archive is active and is in use.
type: LUKS1
cipher: aes-cbc-essiv:sha256
keysize: 128 bits
device: /dev/sda1
offset: 1032 sectors
size: 3906960376 sectors
mode: read/write

But but when I mount it
"mkdir /dev/shm/archive"
"chmod a+w /dev/shm/archive"
"sudo mount -o uid=1000,gid=1000 /dev/mapper/archive /dev/shm/archive/"
but got reply
mount: warning: /dev/shm/archive/ seems to be mounted read-only.
So I tried
"sudo mount -o remount,rw /dev/mapper/archive"
and get
mount: warning: /run/shm/archive seems to be mounted read-only.

So any clue what I'm missing to be able to write to my cryptsetup volume?
Also tried making mount point in home directory instead, with same results

Wolf

P.S. I use /dev/shm/ for mount points or files want to disappear at shutdown
User avatar
Posts: 11
Joined: Sat Dec 08, 2012 6:43 am
Location: Tomah, Wisconsin
by steev » Fri Dec 21, 2012 11:53 am
What's the filesystem of your LUKS volume?

If it's NTFS for some reason (maybe accessing under Windows) then make sure you are mounting it with the ntfs-3g driver and not the Linux kernel's ntfs driver (which doesn't have full write support)
Posts: 57
Joined: Fri Jan 27, 2012 5:08 pm
by Werewolf6851 » Thu Jan 10, 2013 4:29 am
Thanks!
That solved the issue. Have two external hard drives used between Linux and Win computers. And needed common file system for files bigger than 4 gig.

Wolf
User avatar
Posts: 11
Joined: Sat Dec 08, 2012 6:43 am
Location: Tomah, Wisconsin
by Werewolf6851 » Tue Sep 03, 2013 12:10 am
Old thread, but sorta pertains.

Which file system uses more overhead/resources? ntfs-3g or btrfs?

thanks wolf.
User avatar
Posts: 11
Joined: Sat Dec 08, 2012 6:43 am
Location: Tomah, Wisconsin