Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
1 answers
6436 views
Unable to chroot /mnt/sysimage
I'm working on a RH 7.3 with some issues on the partitions so It doesn't boot properly and goes in emergency mode. I booted the machine from an RH 7.3 iso and I need to extract an sosreport in Rescue mode but I have the following errors: chroot /mnt/sysimage chroot: failed to run command '/bin/sh':...
I'm working on a RH 7.3 with some issues on the partitions so It doesn't boot properly and goes in emergency mode. I booted the machine from an RH 7.3 iso and I need to extract an sosreport in Rescue mode but I have the following errors: chroot /mnt/sysimage chroot: failed to run command '/bin/sh': No such file or directory So I use the following command as in the page https://access.redhat.com/solutions/43133 : ln -s bash /mnt/sysimage/bin/sh but I'm getting the error message: ln: failed to create symbolic link /mnt/sysimage/bin/sh: No such file or directory Could you help me please?
intore (399 rep)
Oct 21, 2019, 01:51 PM • Last activity: May 16, 2025, 10:02 PM
0 votes
1 answers
78 views
How to regenerate the rescue kernel from the running/installed kernel in Oracle Linux 8
Once I've deleted all rescue kernel images from my system, I need to regenerate/recreate these images. The only information I've found was about Fedora ([here][1]), so it didn't help me. [1]: https://unix.stackexchange.com/q/718388/668115
Once I've deleted all rescue kernel images from my system, I need to regenerate/recreate these images. The only information I've found was about Fedora (here ), so it didn't help me.
Nick (11 rep)
Jan 25, 2025, 09:09 AM
2 votes
1 answers
6390 views
How to add cryptsetup to Dracut
I'm switching to Dracut and I've numerous problems. In order to eliminate them one by one, first I want my system to boot correctly. So my Grub2 entry looks like this: menuentry 'dracut' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos ins...
I'm switching to Dracut and I've numerous problems. In order to eliminate them one by one, first I want my system to boot correctly. So my Grub2 entry looks like this: menuentry 'dracut' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd1,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 829c0201-9b6d-4e18-8464-9d2551311ea6 else search --no-floppy --fs-uuid --set=root 829c0201-9b6d-4e18-8464-9d2551311ea6 fi echo 'Loading Linux 4.9.0-2-amd64 ...' linux /vmlinuz-4.9.0-2-amd64 rd.shell rd.debug log_buf_len=1M echo 'Loading dracut initial ramdisk ...' initrd /initramfs-4.9.0-2-amd64.img } I expect to be dropped into the rescue shell and then manually assemble the root file system, and continue booting; but there is no cryptsetup binary in the rescue shell. Dracut configuration file /etc/dracut.conf.d/* looks like this: do_prelink=no add_dracutmodule+="cryptsetup" Relevant list of modules are as follows: # dracut --list-modules | grep crypt dracut: Executing: /usr/bin/dracut --list-modules crypt crypt-gpg crypt-loop ecryptfs How can I add cryptsetup so I could manually unlock the encrypted partition manually (via rescue shell)?
ceremcem (2451 rep)
Aug 6, 2017, 01:21 PM • Last activity: Dec 16, 2020, 01:05 PM
6 votes
1 answers
15291 views
Reboot inside rescue mode chroot
I had a problem booting my computer, so I ran a Live cd and booted it into rescue mode, started SSH and went back home, then I fixed the boot error remotely, and now I want to restart my server so that I can boot my system, but when I try to run any of the following commands I get an error saying :...
I had a problem booting my computer, so I ran a Live cd and booted it into rescue mode, started SSH and went back home, then I fixed the boot error remotely, and now I want to restart my server so that I can boot my system, but when I try to run any of the following commands I get an error saying : root@debian:~# reboot Running in chroot, ignoring request. root@debian:~# shutdown -r 0 Running in chroot, ignoring request. So, my question is : **Is it possible for me to restart my server from inside the chroot?**
Hunter.S.Thompson (9135 rep)
Jul 20, 2017, 08:18 PM • Last activity: Sep 22, 2020, 05:10 AM
1 votes
1 answers
488 views
I cannot reset password using rescue mode
We have a problem on a centos 6 server. normally, PasswordAuthentication is off. When I get connected using rescue mode, I execute these commands : mount -o remount,rw / chroot / /bin/bash passwd root It says password reset successfully. And I also try to edit `/etc/ssh/sshd_config` and` /etc/ssh/ss...
We have a problem on a centos 6 server. normally, PasswordAuthentication is off. When I get connected using rescue mode, I execute these commands : mount -o remount,rw / chroot / /bin/bash passwd root It says password reset successfully. And I also try to edit /etc/ssh/sshd_config and /etc/ssh/ssh_config to enable password authentication, but the problem is that none of the modifications is saved after reboot. And when I try the new password with ssh, it does not work. Do you have any idea?
SmootQ (113 rep)
Oct 29, 2018, 02:00 PM • Last activity: Oct 29, 2018, 03:38 PM
0 votes
1 answers
703 views
Cannot mount ISO in CentOS 7 Guest running rescue kernel
I have a CentOS 7-Minimal VM running on a Windows 7 host that has been happily running for a year or so. A kernel panic occurred and I was unable to boot into anything except the rescue kernel. While trying to troubleshoot the panic, I removed (via yum remove) all the other installed kernels and was...
I have a CentOS 7-Minimal VM running on a Windows 7 host that has been happily running for a year or so. A kernel panic occurred and I was unable to boot into anything except the rescue kernel. While trying to troubleshoot the panic, I removed (via yum remove) all the other installed kernels and was going to simply reinstall the latest. However, for some reason I cannot mount any ISO file (CentOS, VBox GuestAdditions, etc) to install the kernel package. Attempting to mount an ISO doesn't recognize the file system: mount error The drive is attached: enter image description here I hope I am missing something simple, but I've spent half a day trying to get this working to no avail.
Jim S. (101 rep)
Oct 5, 2017, 02:06 PM • Last activity: Oct 6, 2017, 02:03 PM
1 votes
0 answers
3202 views
Centos 7 server won't boot - 'Dependency failed for Network Manager Wait Online'
I have a Centos 7 server that won't boot, it's giving me the following errors[![enter image description here][1]][1] [1]: https://i.sstatic.net/Kj1Yy.png I can boot to single user mode but I just get the following when I try to query any of these services with systemctl `systemctl status polkit Unit...
I have a Centos 7 server that won't boot, it's giving me the following errorsenter image description here I can boot to single user mode but I just get the following when I try to query any of these services with systemctl `systemctl status polkit Unit polkit.service could not be found.` Any ideas what could be causing the boot issues or what the best way to troubleshoot this is?
martin81 (13 rep)
Aug 9, 2017, 03:04 PM • Last activity: Aug 25, 2017, 02:28 AM
Showing page 1 of 7 total questions