Linux
Rescue
Changing root for repairing a system from a rescue instance
mkdir /mnt/root
mount /dev/sdX /mnt/root
cd /mnt/root
mount -t proc /proc proc/
mount --rbind /sys sys/
mount --rbind /dev dev/
chroot /mnt/root
Changing root for repairing a system from a rescue instance
mkdir /mnt/root
mount /dev/sdX /mnt/root
cd /mnt/root
mount -t proc /proc proc/
mount --rbind /sys sys/
mount --rbind /dev dev/
chroot /mnt/root