Linux rescue
Page content
Sometimes you have to repair that damn linux system …
Recipe:
1st: start your linux system with some ISO file, some CD/DVD or via network.
(for e.g.: Systemrescue Linux)
2nd: mount the root disk of your broken system
mount /dev/sdaX /mnt
3rd: activate proc,sys & dev filesystems:
cd /mnt
mount -t proc proc proc/
mount --rbind /sys sys/
mount --rbind /dev dev/
4th: Enter the broken system:
chroot /mnt /bin/bash
NOW do your repairs!
5th: Reinstall the bootloader (just in case …)
grub-install /dev/sda
6th: logout, unmount and reboot …
exit
umount /mnt
reboot