Steve Litt on 12 Oct 2017 10:04:16 -0700

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] create a boot record without use of chroot?

On Wed, 11 Oct 2017 20:35:03 -0400
JP Vossen <> wrote:

> There are 2 things that help out the whole `chroot` thing and this
> process.
> One is simple, create your mounts the way you need them, then mount
> them that way.  The second is "bind mounts" (kinda like a symlink for
> a mount).  So if you have sda1 as /boot/ and sda2 as / then as root:
> 	cd /mnt
> 	mkdir -p recover/boot
> 	mount /dev/sda2 recover
> 	mount /dev/sda1 recover/boot
> 	mount -o bind /dev /mnt/recover/dev
> 	mount -t proc none /mnt/recover/proc
> 	chroot recover

Very, very nice! I'm saving this for future reference.

Shouldn't the final line be "chroot recover /bin/sh" ?   



Steve Litt 
October 2017 featured book: Rapid Learning for the 21st Century
Philadelphia Linux Users Group         --
Announcements -
General Discussion  --