/mnt/sysimage を chroot できません。

/mnt/sysimage を chroot できません。

RH 7.3を使用していますが、パーティションに問題があり、正しく起動せずに緊急モードに入ります。 RH 7.3 isoでコンピュータを起動し、回復モードでsosreportを抽出する必要があるため、次のエラーが発生します。

chroot /mnt/sysimage
chroot: failed to run command '/bin/sh': No such file or directory

そのため、ページで次のコマンドを使用します。https://access.redhat.com/solutions/43133:

ln -s bash /mnt/sysimage/bin/sh

しかし、エラーメッセージが表示されます。

ln: failed to create symbolic link /mnt/sysimage/bin/sh: No such file or directory

私を助けてくれますか?

ベストアンサー1

このリンクは公開されません。ただし、ほとんどの場合、bashシェルのフルパスを使用する必要があります(または/ binフォルダにある必要があります)。努力する:

ln -s /bin/bash /mnt/sysimage/bin/sh

おすすめ記事