Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Cattle not pets. Carve a new partition with gparted, install new OS, mount the old partition and copy over any valuable data. (Hopefully you have this backed up anyway)


This works when you have automated setup of the services, configuration, etc. I can't speak for you, but my home machines don't have the same love and care for that step as parts of my kubernetes cluster.


Live USB stick, boot, copy everything from the 'broken' install to a second USB stick, reinstall, restore.

Or, if you really want to get into the weeds, try to re-install systemd. As a learning exercise.

This is a great question on a job interview though. "What happens on a Debian machine if you 'apt remove systemd'?"


I hope the answer the interviewer expects is "Did your current guy do that? Is that why you're interviewing? Was it you?"

I've been a unix and linux jackofall since '96 or so, and I could not answer that question better than "probably a big mess"

Though it would certainly not be points against if they did happen to say "I tried that once just to see". That is good curiosity and tinkering, but I never happened to try it once just to see myself.

I guess it could be a valid question just to see if the response shows some flavor of shock and alarm. IE everyone is expected to say "I don't know" but if the response is blank as though the question were not remarkable, that's not encouraging.

I guess my answer would be "Holy sh... we don't have time for this, take me to the machine right now." haha Or just "I dunno but I'll clean it up."


from a LiveUSB one can probably chroot into the borked system and re/install the deleted files without manually copying


That's literally what I said. :)


Why not chroot in and use your now-connected internet to reinstall systemd?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: