By default, you do not have immediate access to your server's hard drive after starting the rescue system. You have to mount it first.
Use lsblk to find the name of your hard drive and its partitions. After executing the command, you will see a list of all the hard drives and partitions on your system.
Execute the following command to mount a partition:
mount /dev/vda3 /mnt
Replace /dev/vda3 with the partition you want to mount.
/mnt.Depending on the configuration, you can now switch to your installed system via chroot. This lets you change your root password or reinstall the bootloader.
The following procedure is only an example based on a possible system configuration. The exact procedure varies depending on your configuration and requires advanced knowledge of Linux system administration.
We have already mounted the / partition in a previous step.
If the /boot directory is located on a separate partition, you must also mount it under /mnt/boot:
mount /dev/vda2 /mnt/boot
mount -t proc proc /mnt/proc
mount -t sysfs sys /mnt/sys
mount -o bind /dev /mnt/dev
You can now switch to chroot:
chroot /mnt /bin/bash
Now, you can work there. For example, you can change your root password or reinstall the bootloader.
Note that it may be necessary to configure name servers within the chroot environment under /etc/resolv.conf in order to use the network correctly.
exit.umount:umount /mnt/boot # (if you have mounted /boot)
umount /mnt/{proc,sys,dev}
umount /mnt
netcup
netcup Enterprise
Community
netcup Enterprise
Community