Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
User Journal

Journal karniv0re's Journal: System Rescue to the Rescue!

Once again, it has been way too long. I've been on Slashdot coming up on 20 years. I honestly can't believe it's still around. Which is why I export all of these journals to Google Docs and Calendar. Of course, who knows how long that'll last. When that time comes though, I'll just do a data export. Anyway.

I fucked up my desktop trying to do a dist upgrade. Not enough space in /boot, so I tried moving the one of the kernel images to /tmp, but inadvertently deleted the one that was actually being used and then rebooted. Bam. Couldn't find /boot/vmlinuz-5.4.0-155-generic. Well shit.

To my knowledge, I had no bootable media lying around. I did try some thumbdrives, and one actually had an old Ubuntu on it, but it spazzed out when trying to mount. So, what did I do? I pulled out my nearly 15 year old laptop running Ubuntu 4. It's got just enough steam to get onto wifi and download some things and dd them onto some thumbdrives. So I got System Rescue Linux. Plugged in the thumbdrive and unmounted it after it was automounted.

$ sudo umount /media/thumbdrive
$ dd if=systemrescue.iso of=/dev/sdc bs=4M

Downloaded the 5.4.0-155-generic AMD64 kernel DEB and unpackaged it.

$ ar -x ./kernelimage.deb
$ tar -xvf data.tar.xf

Found my compressed kernel image and copied it over to the other thumbdrive.

Then booted up with System Rescue, which gives a root shell. Mounted the /boot partition and the other thumbdrive and copied the file over to where it should be.
Rebooted (a couple times, because I had messed with the boot order and it wasn't looking in the UEFI bootloader. A few reboots and messing around got it to pick ubuntu and finally everything booted up.

I am still in a bad state with kind of a half dist upgrade right now. But at least I have a system that's up and running.

Haven't hacked like this in years. Feels good. Especially since I just started a new job working for a hedge fund. I'm making crazy good money and finally feel like things are going my way. At 40. But still. Better late than never.

Living on Earth may be expensive, but it includes an annual free trip around the Sun.

Working...