Questions tagged [rescue]

Questions about process or software that is used for restoring an unusable/unbootable operating system into a usable state. Some of them may be questions on how to recover deleted files or partitions.

82 questions
102
votes
15 answers

GRUB starts in command line after reboot

I installed Linux Mint on my laptop along with a pre-installed Windows 10. When I turn on the computer, the normal GRUB menu appears most of the time: But after booting either Linux or Windows then rebooting, I GRUB starts in command line mode, as…
Antoine Aubry
  • 1,081
  • 2
  • 8
  • 10
39
votes
2 answers

Boot windows from grub rescue command prompt

Previously I had installed the Ubuntu 10.04 and Windows 7. Now I logged on to Windows, opened the partition editor and deleted the volume containing the Ubuntu - I thought it will delete the Ubuntu and it might help me install another OS - and I…
Karthi prime
  • 653
  • 3
  • 8
  • 11
18
votes
3 answers

How to mount a disk from destroyed raid system?

I have a horrible situation where I have to restore data from damaged raid system in a rescue Debian Linux. I just want to mount them all to /mnt/rescue in read only modus to be able to copy VMWare GSX images to another machine and migrate them to…
Tony Stark
  • 363
  • 1
  • 2
  • 7
12
votes
1 answer

How can I force a Ubuntu kernel to fail mounting / and drop into the initramfs rescue shell?

I am trying to customize the initramfs rescue environment and would like to force the kernel to fail mounting / and drop into the (initramfs) rescue shell, as opposed to single user mode. How can I do that? NB: I know how to hook into…
0xC0000022L
  • 16,189
  • 24
  • 102
  • 168
8
votes
2 answers

Need to boot Windows 7 from Grub rescue command prompt

I booted my computer today and found the Grub rescue command prompt. I have been given this computer and it has Linux and windows 7 on it, but I have only ever used the windows section. I have no idea about Linux at all, and was startled by this…
C.s.
  • 81
  • 1
  • 2
  • 3
8
votes
3 answers

Trap: can't su as root, can't change group to wheel, ssh as root prohibited

Is this a trap? I made these steps in FreeBSD 10: 1) ssh as root prohibited 2) logged as user 3) su as root 4) as root chsh changed name of user "user" to "luser" 5) exit from root And from this moment I can't su root cause the luser is not in the…
dima.h
5
votes
3 answers

How do I disable the creation of the rescue boot image on CentOS?

To make a long story short, my (CentOS 7) server's /boot is too small (100MiB) to hold 2 kernels plus the automatically generated rescue image. I want to avoid the hassle of repartitioning and reinstalling my server by preventing the rescue image…
hnsr
  • 143
  • 2
  • 7
5
votes
1 answer

Are there any canned solutions for running sshd in the initrd?

This is mostly aimed at Debian/Ubuntu, but I feel savvy enough on a variety of distros to be able to adapt the solution for one distro to another. Here's my scenario. There are a few situations when the boot process will drop you to the shell…
0xC0000022L
  • 16,189
  • 24
  • 102
  • 168
4
votes
2 answers

Emergency mode on Fedora 30

I am using fedora 30 since May, 30 final release.. I used terminal mode with xinput --test. After the command, only cursor was blinking... I rebooted, then emergency mode has come with the message was like: cannot open access to console, the root…
unmask
  • 61
  • 2
  • 8
4
votes
1 answer

/proc/sys/kernel/hung_task_timeout_secs error

I am building a CentOS 6.2 webserver on a Hyper-V Cluster and have hit a major issue. The current setup is this: Operating System: CentOS 6.2. Minimal Server Install Installed software includes: Hyper-V Linux integration Drivers Webmin Apache…
Balasarius
  • 41
  • 1
  • 1
  • 7
4
votes
2 answers

Booting Fedora in rescue mode

I have created a new Fedora live USB with the intention of booting into rescue mode and fixing the bootloader, so that I can dualboot win7 and Fedora 20. However, I do not understand how I am to boot into rescue mode, seeing as the installation boot…
Andrew Thompson
  • 239
  • 1
  • 3
  • 9
3
votes
1 answer

Grub rescue if Ubuntu USB not plugged in?

I have my Ubuntu installed on a USB drive, and to log into Windows I need to have it plugged while booting, or I get the Grub rescue prompt. When the USB drive is plugged in, I get the Grub menu from which I can choose Windows. Ubuntu 13.04 on the…
Borgia
  • 31
  • 2
3
votes
1 answer

How to manually regenerate the rescue kernel from the running/installed kernel in Fedora in 2022?

On the Internet I've only found this: /etc/kernel/postinst.d/51-dracut-rescue-postinst.sh $(uname -r) /boot/vmlinuz-$(uname -r) but it doesn't work in Fedora 36 and soon to be released version 37, because this file is missing, in fact the entire…
Artem S. Tashkinov
  • 26,392
  • 4
  • 33
  • 64
3
votes
1 answer

How to fix/reinstall grub from debian media, e.g. rescue mode?

How can one invoke grub-install from the debian netinst image? Or, does one need the live cd. (Situation: two disks: one degraded btrfs raid 1, another a blank disk I can install a new OS on, but which I can't boot from due to mobo. Currently upon…
ninjagecko
  • 219
  • 3
  • 8
3
votes
1 answer

error: invalid environment block

I've recently installed Manjaro on my PC. I booted, installed and updated my operating system. However when I boot my computer after the updates I get below error: error: invalid environment block Press any key to continue My PC then hangs on a…
user11376058
  • 31
  • 1
  • 3
1
2 3 4 5 6