Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: [gentoo-user] [SOLVED] Running cryptsetup under mdev
Date: Wed, 07 May 2014 18:11:31
Message-Id: 20140507181110.GA806@waltdnes.org
In Reply to: Re: [gentoo-user] Problems with loop-aes by "J. Roeleveld"
1 On Wed, May 07, 2014 at 08:11:02AM +0200, J. Roeleveld wrote
2 > On Tuesday, May 06, 2014 05:34:52 PM Walter Dnes wrote:
3 > >
4 > > Unfortunately, mdev != udev. People running RAID have problems too.
5 >
6 > I know it isn't. I just find it strange that LVM can't work without
7 > udev when I see options which configure the LVM-tools to either
8 > double-check udevs actions or even completely bypass udev:
9
10 Thanks for the pointer. After turning off the udev-related options in
11 lvm.conf, I'm getting /dev/mapper device nodes as expected. I still
12 can't get cryptsetup to work with LUKS, but it works fine *WITHOUT* LUKS
13 as per instructions at http://sleepyhead.de/howto/?href=cryptpart#woluks
14 In my case, the initial setup was...
15
16 cryptsetup -y create usbkey1 /dev/sdb1
17 mkfs.ext2 /dev/mapper/usbkey1
18 mount -t ext2 /dev/mapper/usbkey1 /mnt/usbkey1
19 umount /mnt/usbkey1
20 cryptsetup remove usbkey1
21
22 ...and subsequent sessions...
23
24 cryptsetup -y create usbkey1 /dev/sdb1
25 mount -t ext2 /dev/mapper/usbkey1 /mnt/usbkey1
26 ...do whatever...
27 umount /mnt/usbkey1
28 cryptsetup remove usbkey1
29
30 The setup and teardown commands have to be done as root, but I've
31 chowned /mnt/usbkey1 to waltdnes:users and confirmed that I can create
32 and delete files and directories as a regular user.
33
34 --
35 Walter Dnes <waltdnes@××××××××.org>
36 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] [SOLVED] Running cryptsetup under mdev "J. Roeleveld" <joost@××××××××.org>