Hi all,
This is not a problem directly related to Plesk but I need your help if possible...
Setup: Centos 7.9 / Plesk Obsidian 18
Raid with 4 discs.
After requesting the replacement of a defective disk, the server did not restart due to a problem with Grub.
#grub>
I try this to repair in rescue mode:
#mount /dev/sdb1 /mnt
#mkdir /mnt/proc
#mkdir /mnt/sys
#mkdir /mnt/dev
#mount -o bind /proc /mnt/proc
#mount -o bind /sys /mnt/sys
#mount -o bind /dev /mnt/dev
#chroot /mnt /bin/bash
To then do:
grub-install /dev/sdb
update-grub
But i have this error with #chroot /mnt /bin/bash:
chroot: failed to run command ‘/bin/bash’: No such file or directory
I try this:
# ldd /bin/bash
linux-vdso.so.1 (0x00007ffd89de5000)
libncurses.so.5 => /lib/x86_64-linux-gnu/libncurses.so.5 (0x00007f8f1a736000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f8f1a50c000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8f1a308000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8f19f5d000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8f1a95b000)
# cp /lib/x86_64-linux-gnu/libncurses.so.5 /mnt/lib
# cp /lib/x86_64-linux-gnu/libncurses.so.5 /mnt/lib
# cp /lib/x86_64-linux-gnu/libdl.so.2 /mnt/lib
# cp /lib/x86_64-linux-gnu/libc.so.6 /mnt/lib
# cp /lib64/ld-linux-x86-64.so.2 /mnt/lib64
But always:
chroot: failed to run command ‘/bin/bash’: No such file or directory
Does anyone have an idea of the problem?
I'm not familiar with how Grub works and how to fix it... thanks in advance for your help.
Erwan
This is not a problem directly related to Plesk but I need your help if possible...
Setup: Centos 7.9 / Plesk Obsidian 18
Raid with 4 discs.
After requesting the replacement of a defective disk, the server did not restart due to a problem with Grub.
#grub>
I try this to repair in rescue mode:
#mount /dev/sdb1 /mnt
#mkdir /mnt/proc
#mkdir /mnt/sys
#mkdir /mnt/dev
#mount -o bind /proc /mnt/proc
#mount -o bind /sys /mnt/sys
#mount -o bind /dev /mnt/dev
#chroot /mnt /bin/bash
To then do:
grub-install /dev/sdb
update-grub
But i have this error with #chroot /mnt /bin/bash:
chroot: failed to run command ‘/bin/bash’: No such file or directory
I try this:
# ldd /bin/bash
linux-vdso.so.1 (0x00007ffd89de5000)
libncurses.so.5 => /lib/x86_64-linux-gnu/libncurses.so.5 (0x00007f8f1a736000)
libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007f8f1a50c000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8f1a308000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8f19f5d000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8f1a95b000)
# cp /lib/x86_64-linux-gnu/libncurses.so.5 /mnt/lib
# cp /lib/x86_64-linux-gnu/libncurses.so.5 /mnt/lib
# cp /lib/x86_64-linux-gnu/libdl.so.2 /mnt/lib
# cp /lib/x86_64-linux-gnu/libc.so.6 /mnt/lib
# cp /lib64/ld-linux-x86-64.so.2 /mnt/lib64
But always:
chroot: failed to run command ‘/bin/bash’: No such file or directory
Does anyone have an idea of the problem?
I'm not familiar with how Grub works and how to fix it... thanks in advance for your help.
Erwan