2 ms·
I got a local login on a machine so busted that I couldn't mount /usr, meaning I couldn't read /usr/share/terminfo, meaning no screen editors would work. I knew
by kstrauser 6y ago
I got a local login on a machine so busted that I couldn't mount /usr, meaning I couldn't read /usr/share/terminfo, meaning no screen editors would work. I knew just enough ed that I was able to fix /etc/fstab and bring the system up.
I wouldn't wanna use it every day, but it has its time and place.
- donio 6y ago"busybox vi" is another option in these situations when that's available. It will happily run in a blank chroot. Everybody should know a little ed though, it's not that hard.
- kstrauser 6y agoIt was on a server that didn't have busybox installed. Also, can busybox vi work without access to termcap or terminfo?
- yjftsjthsd-h 6y agoHonestly at that point, unless your fstab is really big, I'd just `cat /etc/fstab` and then `cat >/etc/fstab <<EOF` and very carefully retype it (I mean take a backup first of course).
- kstrauser 6y agosed is also a friend in these situations.