Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #237466

Re: How do I mount the USB stick containing the installer in Rescue Mode?

From Reco <recoverym4n@enotuniq.net>
Newsgroups linux.debian.user
Subject Re: How do I mount the USB stick containing the installer in Rescue Mode?
Date 2021-07-16 07:10 +0200
Message-ID <CBogO-6XN-5@gated-at.bofh.it> (permalink)
References (4 earlier) <CBdY5-rl-5@gated-at.bofh.it> <CBehr-xP-5@gated-at.bofh.it> <CBer8-Bs-5@gated-at.bofh.it> <CBeUa-12b-9@gated-at.bofh.it> <CBfZU-1F8-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jul 15, 2021 at 10:11:06PM +0200, Stella Ashburne wrote:
> Hi
> 
> > Sent: Thursday, July 15, 2021 at 7:07 PM
> > From: "Reco" <recoverym4n@enotuniq.net>
> > To: debian-user@lists.debian.org
> > Subject: Re: How do I mount the USB stick containing the installer in Rescue Mode?
> 
> > Ok. Can you use this rescue mode to execute an ordinary shell, with full
> > access to all filesystems?
> 
> Before I proceed with your suggestion, while in Resuce Mode, do I
> enter the encryption passphrase or not? If I don't enter the password,
> /dev/perfect-vg/root won't be mounted.

You have to enter the encryption passphrase. It makes little sense to do
all this otherwise.


> Even after I've entered the encryption passphrase, there are two ways
> to execute a shell: one is to execute it in /dev/perfect-vg/root
> environment and the other is to execute it in the installer
> environment. Which environment do you want me to executve a shell in
> please?

First one definitely won't do it, so it's the "installer environment".


> What did you mean by "full access to all filesystems"? When I was
> installing Debian 11, I first encrypted a free space with LUKS and
> then created two logical volumes in it: one whose mount point is /
> (the root file system. Debian installer requires it; otherwise the
> installation can't and won't proceed.) while the other is "used as"
> swap area.

Compare the results of "mount" command from both shells. The difference
should be obvious.


> > If you're executing a shell in a
> > logical volume, you're chrooted into that filesystem.
> 
> I had to enter the encryption passphrase first, followed by mounting
> /dev/perfect-vg/root as a root file system temporarily. Then I chose
> 'Execute a shell in the installer environment' and only then would I
> be able to chroot /target

This. My suggestion is to use bind-mount before chrooting there.


> > 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.
> >
> Could you be so nice as to give me the command(s) to bind mount the directory with packages? Thank you.

mount --bind <source_dir_with_packages> \
	/target/<target_dir_where_packages_should_be>

Reco

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-15 11:50 +0200
  Re: How do I mount the USB stick containing the installer in Rescue  Mode? Reco <recoverym4n@enotuniq.net> - 2021-07-15 12:00 +0200
    Re: How do I mount the USB stick containing the installer in Rescue  Mode? Greg Wooledge <greg@wooledge.org> - 2021-07-15 13:10 +0200
      Re: How do I mount the USB stick containing the installer in Rescue  Mode? The Wanderer <wanderer@fastmail.fm> - 2021-07-15 13:20 +0200
      Re: How do I mount the USB stick containing the installer in Rescue  Mode? Reco <recoverym4n@enotuniq.net> - 2021-07-15 13:20 +0200
      Re: How do I mount the USB stick containing the installer in Rescue  Mode? Joe <joe@jretrading.com> - 2021-07-15 15:50 +0200
      Re: How do I mount the USB stick containing the installer in Rescue Mode? Stefan Monnier <monnier@iro.umontreal.ca> - 2021-07-15 17:40 +0200
        Re: How do I mount the USB stick containing the installer in Rescue  Mode? Reco <recoverym4n@enotuniq.net> - 2021-07-15 18:20 +0200
          Re: [Misstänkt skräppost] Re: How do I mount the USB stick containing the installer in Rescue Mode? "xtra-kaj@telia.com" <xtra-kaj@telia.com> - 2021-07-17 09:30 +0200
    Re: How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-15 14:00 +0200
      Re: How do I mount the USB stick containing the installer in Rescue  Mode? Reco <recoverym4n@enotuniq.net> - 2021-07-15 14:00 +0200
        Re: How do I mount the USB stick containing the installer in Rescue  Mode? David Wright <deblis@lionunicorn.co.uk> - 2021-07-15 17:50 +0200
          Re: How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-15 20:40 +0200
            Re: How do I mount the USB stick containing the installer in Rescue  Mode? David Wright <deblis@lionunicorn.co.uk> - 2021-07-15 21:10 +0200
              Re: How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-15 22:20 +0200
                Re: How do I mount the USB stick containing the installer in Rescue  Mode? Greg Wooledge <greg@wooledge.org> - 2021-07-15 22:30 +0200
                Re: How do I mount the USB stick containing the installer in Rescue  Mode? David Wright <deblis@lionunicorn.co.uk> - 2021-07-16 06:50 +0200
        Re: How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-15 20:10 +0200
          Re: How do I mount the USB stick containing the installer in Rescue  Mode? Brian <ad44@cityscape.co.uk> - 2021-07-15 20:30 +0200
            Re: How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-15 20:40 +0200
              Re: How do I mount the USB stick containing the installer in Rescue  Mode? Reco <recoverym4n@enotuniq.net> - 2021-07-15 21:10 +0200
                Re: How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-15 22:20 +0200
                Re: How do I mount the USB stick containing the installer in Rescue  Mode? Reco <recoverym4n@enotuniq.net> - 2021-07-16 07:10 +0200
                Re: How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-21 13:30 +0200
                Re: How do I mount the USB stick containing the installer in Rescue  Mode? Reco <recoverym4n@enotuniq.net> - 2021-07-21 13:50 +0200
                Re: How do I mount the USB stick containing the installer in Rescue  Mode? Greg Wooledge <greg@wooledge.org> - 2021-07-21 13:50 +0200
                Re: How do I mount the USB stick containing the installer in Rescue  Mode? Richard Hector <richard@walnut.gen.nz> - 2021-07-21 21:20 +0200
                Re: How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-27 09:30 +0200
                Re: How do I mount the USB stick containing the installer in Rescue  Mode? Reco <recoverym4n@enotuniq.net> - 2021-07-27 10:20 +0200
                Re: How do I mount the USB stick containing the installer in Rescue  Mode? Greg Wooledge <greg@wooledge.org> - 2021-07-27 13:40 +0200
            Re: How do I mount the USB stick containing the installer in Rescue  Mode? David Wright <deblis@lionunicorn.co.uk> - 2021-07-15 20:50 +0200
              Re: How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-15 21:10 +0200
                Re: How do I mount the USB stick containing the installer in Rescue Mode? David <bouncingcats@gmail.com> - 2021-07-16 07:50 +0200
  Re: How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-15 13:40 +0200
  Re: How do I mount the USB stick containing the installer in Rescue  Mode? David Wright <deblis@lionunicorn.co.uk> - 2021-07-15 18:10 +0200
    Re: How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-15 21:00 +0200
      Re: How do I mount the USB stick containing the installer in Rescue Mode? "Thomas Schmitt" <scdbackup@gmx.net> - 2021-07-15 21:40 +0200
        Re: How do I mount the USB stick containing the installer in Rescue  Mode? Stella Ashburne <rewefie@gmx.com> - 2021-07-15 22:20 +0200
          Re: How do I mount the USB stick containing the installer in Rescue  Mode? David Wright <deblis@lionunicorn.co.uk> - 2021-07-16 06:50 +0200
      Re: How do I mount the USB stick containing the installer in Rescue  Mode? David Wright <deblis@lionunicorn.co.uk> - 2021-07-16 06:50 +0200
        Re: How do I mount the USB stick containing the installer in Rescue  Mode? Greg Wooledge <greg@wooledge.org> - 2021-07-16 13:40 +0200
          Re: How do I mount the USB stick containing the installer in Rescue  Mode? David Wright <deblis@lionunicorn.co.uk> - 2021-07-16 17:20 +0200
            Re: How do I mount the USB stick containing the installer in Rescue  Mode? Greg Wooledge <greg@wooledge.org> - 2021-07-16 18:00 +0200

csiph-web