If you want to run programs from the hard disk within the rescue environment, you must chroot the disk in addition to mounting it. This procedure only works with Linux systems.
The procedure is as follows:
- Rescue System booten
- Mounting the hard disk
Befehl: mount /dev/sda2 /mnt
The hard disk designation differs depending on the hard disk used /dev/sda for SCSI and SATA hard disks and /dev/md for raid disks. The following number indicates the number of the partition on the hard disk. More information about mounting hard disks can be found here .
- Mounten des Proc und Dev Dateisystems
Befehl: mount -t proc proc /mnt/proc && mount -obind /dev /mnt/dev
- Chrooting to the server environment on disk
Befehl: chroot /mnt/ /bin/bash
- Here you can then run the desired programs as known.
- After completion of the work, leave the area again
- Unmount Proc and Dev
Befehl: umount /mnt/proc && umount /mnt/dev
- Unmount the hard disk
Befehl: umount /mnt
- Stop the rescue system and restart the server.