Hi.

On Thu, Jul 15, 2021 at 08:38:59PM +0200, Stella Ashburne wrote:
> > Sent: Thursday, July 15, 2021 at 6:26 PM
> > From: "Brian" <a...@cityscape.co.uk>
> > To: debian-user@lists.debian.org
> > Subject: Re: How do I mount the USB stick containing the installer in 
> > Rescue Mode?
> >
> > On Thu 15 Jul 2021 at 20:01:05 +0200, Stella Ashburne wrote:
> >
> > > root@perfect:/# file -sL /dev/sdb1
> > > bash: file: command not found
> > > root@perfect:/#
> >
> Nope, apparently it isn't available in Rescue Mode.
> 
> Entered encryption passphrase -> Choose a device to use as root file system 
> -> /dev/perfect-vg/root -> Execute a shell in /dev/perfect-vg/root

Ok. Can you use this rescue mode to execute an ordinary shell, with full
access to all filesystems?
I've been thinking about it, and it makes some sense.

If you're using your USB stick to boot, you have its file system
(/dev/sdb1 in this case) mounted. If you're executing a shell in a
logical volume, you're chrooted into that filesystem.

But it does not change that the filesystem from /dev/sdb1 is mounted
already, it's just inaccessible from the chroot.


What you actually need is to bind mount the directory with packages into
the mounted /dev/perfect-vg/root, and just chroot into it. No need to
modify /etc/fstab at all.

Reco

Reply via email to