From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LQMT018HAYqR for ; Wed, 26 Sep 2012 13:13:36 +0200 (CEST) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Wed, 26 Sep 2012 13:13:36 +0200 (CEST) Received: by obbtb18 with SMTP id tb18so410276obb.37 for ; Wed, 26 Sep 2012 04:13:35 -0700 (PDT) Sender: Matthew Monaco Message-ID: <5062E35B.5070102@0x01b.net> Date: Wed, 26 Sep 2012 05:13:31 -0600 From: Matthew Monaco MIME-Version: 1.0 References: <20120921100101.GA11357@tansi.org> <50614FBC.80709@0x01b.net> <506200BD.6010803@0x01b.net> <50626485.5000109@0x01b.net> <5062C9BB.5010900@0x01b.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Encrypt all partitions with dm-crypt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de On 09/26/2012 04:49 AM, Stayvoid wrote: >> You can mount to wherever you like. Once you've mapped the block >> device to /dev/mapper/NAME, you have a block device like any other. > > Will the following work from a recovery shell? > > # mkdir media > # mount /dev/mapper/main /media > # mount -t proc none /media/proc > # mount --rbind /dev /media/dev > # mount --rbind /sys /media/sys > # mount /dev/sda1 /boot > > There is no /bin/bash. Can I use ash? > > # chroot /media /bin/ash Has it occurred to you to just try these things? We're getting a bit off topic here... That will work, assuming you mapped something to /dev/mapper/main with cryptsetup already. Also, I think you meant /media/boot. Also, /mnt should be available, no reason to insist on media. ash is fine, it's what is provided by busybox in the initramfs. I usually do: # mount /dev/mapper/main /mnt # mount /dev/sda1 /mnt/boot # for m in dev proc sys; do mount --bind /$m /mnt/$m; done # chroot /mnt