I am attempting to update a broken Linux Mint 32 bit installation using chroot from a live cd. Different websites give different folders that need to be mounted before chroot
.
The error I am trying to solve is here
What folders to mount and why?
bootchroot
I am attempting to update a broken Linux Mint 32 bit installation using chroot from a live cd. Different websites give different folders that need to be mounted before chroot
.
The error I am trying to solve is here
What folders to mount and why?
Best Answer
well; gentoo wiki is very nice in that respect; (assuming that you are booted to working environment like livecd/usb) first we assume your chroot system is on /dev/sdaX. so we go mount it:
if your chroot (problematic environment) has seprate
/boot
,/var
or any other partitions we mount them like above.then depend on what kind of system you are building (systemd or init ):
if youare building init-based system like
OpenRc
don't do--make-rslave
lines.then to chroot in a right way do this:
Note; that your chroot environment may differ and
/bin/env
wasn't there. so it should be atusr/bin/env
.