From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 986CF1381FA for ; Wed, 7 May 2014 18:57:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3A26E0AF8; Wed, 7 May 2014 18:57:39 +0000 (UTC) Received: from smtpq1.tb.mail.iss.as9143.net (smtpq1.tb.mail.iss.as9143.net [212.54.42.164]) by pigeon.gentoo.org (Postfix) with ESMTP id 91E83E0A94 for ; Wed, 7 May 2014 18:57:38 +0000 (UTC) Received: from [212.54.42.134] (helo=smtp3.tb.mail.iss.as9143.net) by smtpq1.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1Wi729-0006WI-TX for gentoo-user@lists.gentoo.org; Wed, 07 May 2014 20:57:37 +0200 Received: from 53579160.cm-6-8c.dynamic.ziggo.nl ([83.87.145.96] helo=data.antarean.org) by smtp3.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1Wi729-000836-Il for gentoo-user@lists.gentoo.org; Wed, 07 May 2014 20:57:37 +0200 Received: from [192.168.45.100] (53579160.cm-6-8c.dynamic.ziggo.nl [83.87.145.96]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by data.antarean.org (Postfix) with ESMTPSA id B7D764C for ; Wed, 7 May 2014 20:57:35 +0200 (CEST) User-Agent: K-9 Mail for Android In-Reply-To: <20140507181110.GA806@waltdnes.org> References: <20140506183108.GA29693@waltdnes.org> <15054377.ZrtTjlGeGV@andromeda> <20140506213452.GA30163@waltdnes.org> <2812089.ihluqybgHf@andromeda> <20140507181110.GA806@waltdnes.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Subject: Re: [gentoo-user] [SOLVED] Running cryptsetup under mdev From: "J. Roeleveld" Date: Wed, 07 May 2014 20:57:29 +0200 To: gentoo-user@lists.gentoo.org Message-ID: Content-Transfer-Encoding: quoted-printable X-Ziggo-spambar: ---- X-Ziggo-spamscore: -4.8 X-Ziggo-spamreport: ALL_TRUSTED=-1,BAYES_00=-1.9,PROLO_TRUST_RDNS=-3,RDNS_DYNAMIC=0.982,TW_SB=0.077 X-Ziggo-Spam-Status: No X-Spam-Status: No X-Spam-Flag: No X-Archives-Salt: f9324848-55f3-4e5d-bccc-b036c06c9bcc X-Archives-Hash: 37662d4b28cb07b775e182e67282d2bc On 7 May 2014 20:11:10 CEST, Walter Dnes wrote: >On Wed, May 07, 2014 at 08:11:02AM +0200, J. Roeleveld wrote >> On Tuesday, May 06, 2014 05:34:52 PM Walter Dnes wrote: >> >=20 >> > Unfortunately, mdev !=3D udev. People running RAID have problems >too. >>=20 >> I know it isn't. I just find it strange that LVM can't work without >> udev when I see options which configure the LVM-tools to either >> double-check udevs actions or even completely bypass udev: > > Thanks for the pointer. After turning off the udev-related options in >lvm.conf, I'm getting /dev/mapper device nodes as expected. That is good. Now if only mdadm can be confirmed to work with mdev. I cou= ld try it on one of my machines.=20 > I still >can't get cryptsetup to work with LUKS, but it works fine *WITHOUT* >LUKS >as per instructions at >http://sleepyhead.de/howto/?href=3Dcryptpart#woluks >In my case, the initial setup was... > >cryptsetup -y create usbkey1 /dev/sdb1 >mkfs.ext2 /dev/mapper/usbkey1 >mount -t ext2 /dev/mapper/usbkey1 /mnt/usbkey1 >umount /mnt/usbkey1 >cryptsetup remove usbkey1 > >...and subsequent sessions... > >cryptsetup -y create usbkey1 /dev/sdb1 >mount -t ext2 /dev/mapper/usbkey1 /mnt/usbkey1 >...do whatever... >umount /mnt/usbkey1 >cryptsetup remove usbkey1 > > The setup and teardown commands have to be done as root, but I've >chowned /mnt/usbkey1 to waltdnes:users and confirmed that I can create >and delete files and directories as a regular user. The create and remove commands with LUKS also require root. They use a se= ssion manager in desktop environments to allow users to do it. Sudo with = a secure wrapper script might be sufficient for you? I was wondering. What is the actual reason why cryptsetup has a LUKS and = non-LUKS set of options? -- Joost --=20 Sent from my Android device with K-9 Mail. Please excuse my brevity.