[PLUG] Slackware -- programs missing
Dick Steffens
dick at dicksteffens.com
Sun Nov 25 02:15:50 UTC 2018
On 11/24/18 5:56 PM, Tomas K wrote:
> chroot command simply sets different root directory for a command -
> thus that command:
> a) sees different root directory
> b) cannot access anything outside that directory (aka chroot jail)
>
> Example:
> 1. Imagine you just mounted:
> mount /dev/sda2 /mnt/hd
> 2. Executing:
> sudo chroot /mnt/hd /bin/bash
> will execute bash from inside /mnt/hd (running /mnt/hd/bin/bash)
> as if you would have booted from there
>
> What Ben, most likely, wants to guide you through is running lilo as if
> booted from the disk mounted on /mnt/hd - thus updating the Lilo
> config.
>
> I will not guess further because I forgot most things about Lilo long
> time ago. The Linuxes I use boot using Grub for long time and/or boot
> using UEFI directly these days.
>
> Hope it makes sense.
> Tomas
Makes sense, but isn't working. I'm logged in as root, so I didn't use
sudo, but otherwise, I ran it the same:
chroot /mnt/hd /bin/bash
and got :
chroot: failed to run command '/bin/bash': No such file or directory
--
Regards,
Dick Steffens
More information about the PLUG
mailing list