SDB:DracutInChroot

Jump to: navigation, search


Tested on openSUSE

Recommended articles

Icon-manual.png

Related articles

Icon-help.png


Situation

Your system won't boot and you have been told you need to regenerate your initrd via chroot.


Procedure

First, login as rootin a konsole or terminal. Alternatively, either execute sudo - first, or prepend sudo to each of the following commands:

mount /dev/<root-device-name> /mnt
mount -o bind /dev /mnt/dev
mount -o bind /run /mnt/run
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt
mount -a
dracut `` 5.3.18-150400.59.46-default

Be sure in the last above command to use the actual version of your kernel for which a new initrd is required. When done, Ctrl-D to exit chroot, then reboot to test your work.

See also

Related articles

External links