13

How to chroot into #! on disk when you can not boot via grub

view full story
linux-howto

http://crunchbanglinux.org – How to chroot from live session to #! on diskAssumption: #! is installed on /dev/sda1 but is not accessible via grubGoal: reinstall grub in mbr of /dev/sda:Here goes:boot from livecd or usbin terminal window:TARGET=/media/sda1 sudo mkdir -p $TARGET sudo mount /dev/sda1 $TARGET sudo mount --bind /dev $TARGET/dev sudo mount --bind /dev/pts $TARGET/dev/pts sudo mount --bind /proc $TARGET/proc sudo mount --bind /sys $TARGET/sys sudo chroot $TARGET /bin/bashThis places you in a root terminal on the #! systemDo whatever you want to do there, e.g. re-install grubgrub-install /dev/sda updat (HowTos)