Friday, May 11, 2007

Rescue Mode in Linux

  • Boot The system using the first installation CD and enter boot : linux text
  • Rescue Environment will then try to detect existing root filesystem and if successful,mounts it under /mnt/sysimage.

# chroot /mnt/sysimage --- Changes /mnt/sysimage to root (/)

# exit ---- exits from the chrooted environment

# exit ---- exits from the rescue environment and automatically reboots.

  • If rescue environment is unable to detect root filesystem then issue the following commands :

#mknod /dev/hda# fdisk -l /dev/hdx


#mkdir /mnt/sysimage

#mount /dev/hda5 (assuming /dev/hda5 as the root of existing linux)

#mount /dev/hda2 /mnt/sysimage/boot

#chroot /mnt/sysimage

# exit : After troubleshooting

#exit : reboot

No comments:

web counter