The purpose of this document is to provide a general rescue method without the need for the Mageia boot medium. This procedure will interrupt the boot process in a very early stage, and starts a rescue environment. This method can be used to repair things, reset your password etc.
Of course, it only works if the boot-loader is still available and the kernel is not broken.
Mageia Boot Menu
Boot your system. In the Mageia Boot menu, press e to edit the Mageia entry. Move your cursor to the line that starts with:
Remove the words "splash" and "quiet" and add:
Press ctrl+x to boot
You are now in the rescue shell, press ctrl+l to clear the screen.
Normally the root filesystem of your installation is mounted on this directory. But it's mounted read-only, remount it:
mount -o remount,rw /sysroot
Check if there is content in /sysroot/boot.
If not: you have to mount the filesystem that contains your kernel and bootloader configuration. This is probably on /dev/sda1.
cat /proc/partitions can give you some hints, it is normally located on a small filesystem.
mount /dev/sda1 /sysroot/boot
In the rescue environment, you'll probably need access to devices, filesystems, hardware information, and processes. Bind the /dev, /sys and /proc directories in /sysroot
mount --bind /dev /sysroot/dev mount --bind /sys /sysroot/sys mount --bind /proc /sysroot/proc
Now you can change from the root filesystem of the rescue shell to the root filesystem of your installation
And you have full access to your installation
Example: reset root password
As an example of what you can do now, execute:
Your root password is changed!
Press ctrl+d to exit to the root filesystem of the rescue shell
Press ctrl+d again to reboot the system.