Questions tagged [rescue-mode]

33 questions
8
votes
3 answers

change DNS server in a non-persistent way (on the command-line) [rescue mode]

is there a way i can change the DNS server on the command-line without having to change anything on the disk? i recently booted into the rescue session and i got an IP address (using DHCP) but no DNS server. as my network config is usually done with…
6
votes
4 answers

How do I add myself back in sudo group in Encrypted HDD of 16.04 with Strict Security Policies?

I know the threads How do I add myself back as a sudo user?, Mounting encrypted LUKS partition from Live CD, ... This thread is about how to add a sudo user back without root and other strict security policies in place in encrypted environment:…
4
votes
0 answers

Start SSH in isolated rescue.target?

I'm planning a system upgrade from Eoan to Focal on a remote machine where I only have SSH access. I've previously dealt with broken packages causing the system to boot into rescue mode, so I want to ensure whatever happens I can keep my access to…
iBug
  • 1,859
3
votes
1 answer

Server started in 'Rescue' mode

We have bough a server and we are using for our website, today I received an email from the provider that your server has started into Rescue mode and they sent to me a temporary password to login through PuTTY. Any one can teach me what to do? When…
h0feer
  • 31
  • 4
2
votes
0 answers

Fixing boot error on RAID 1

I operate a remote server (Ubuntu Server 14.04). On rebooting it halts and says: Errors were found while checking the disk drive for /. keys:Press F to attempt to fix the errors, I to ignore, S to skip mounting, or M for manual recovery I can't…
Peter
  • 527
2
votes
1 answer

How to postition within magnetic tape in rescue mode of the installer image

I'm trying to get data from magnetic tape in the ubuntu installer environment respectively the rescue mode of the ubuntu installer image. To do so, i need to position on a distinct filespace/filemark within the magnetic tape. During normal operation…
QBall
  • 31
2
votes
1 answer

How to have ssh running in the rescue mode?

If I select rescue mode in GRUB, ssh is not run. I have to type start ssh to have it running. Can I made this be done automatically for me? Typical situation is with broken graphics, when I need to login to the box remotely. Now, I have to type…
eudoxos
  • 939
1
vote
2 answers

Reset network configuration

Recently I messed up the network settings for my Ubuntu 16.04 machine. It does not load the network when it boots normally. Before this, I did ip addr flush eth0 instead of eth1. The machine is now in rescue mode and I have the normal disk mounted…
1
vote
1 answer

Server not booting after 16.04 upgrade (not pinging)

Yesterday I upgraded my server to 16.04, all fine and when I rebooted the server rebooted to rescue. I fixed package conflicts with apt-get autoremove and apt-get upgrade etc... I also tried to repair grub mounting my hd in /mnt and working with…
1
vote
1 answer

Cannot boot laptop after I dropped it

I dropped my laptop (from a chair!) and now it does not boot. It shows me only the grub menu screen. Using the recovery mode it gave me: No init found.Try passing init=bootarg and prompted (initramsfs) Then, I used a live cd and did: sudo fdisk…
George
  • 411
1
vote
0 answers

Ubuntu boots into emergency mode, home folder empty

After laptop (Lenovo T520) fell on the ground, my HDD (Crucial_CT240M500SSD3) started making clicking sounds during boot and at startup started receiving following message: 2100: Detection error on HDD0 (Main HDD) So I presume my disk has been…
oknajp
  • 11
1
vote
1 answer

install grub on mounted filesystem

I have booted rescue linux (init ram fs), and mounted /dev/sda1 on /mnt/sda1 /dev/sda1 is a linux partition, but /dev/sda has no mbr. How can I install grub on mounted filesystem /mnt/sda1 ? I tried: mount /dev/sda1 sda1/ mount -t proc /proc…
1
vote
0 answers

Restore Ubuntu 16.04 which was corrupted by sudo apt autoremove python3

I mistakenly ran the command, sudo apt autoremove python3 in Ubuntu 16.04. Because of that all software was removed, and even the terminal is not working. Debian package manager is also not working. I'm unable to reinstall the terminal application…
1
vote
1 answer

How to edit GRUB after POST for text only console mode?

How do I edit the GRUB boot sequence from: linux /boot/vmlinuz... quiet splash so that it boots to the console? I've tried removing "quiet" and "splash", as well as adding "text". I can also boot to rescue mode, or edit the boot sequence. Else…
Thufir
  • 4,631
0
votes
1 answer

Installation of kept back packages: libgl1-mesa-dev results in emergency mode

I have recently seen on my 16.04 when running apt upgrade that some packages have been kept back. I went to investigate and found the answer here. It basically says that you are supposed to install the packages individually instead of running apt…
1
2 3