Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: dupuy@cs.columbia.edu (Alex Dupuy) Newsgroups: comp.sys.sun Subject: How to deal with trashed fstabs Message-ID: <1096@brazos.Rice.edu> Date: 21 Aug 89 20:20:21 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 27 Keywords: SunOS Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 107, message 3 of 16 > I made a /minibin and put a "survival kit" in it. ... I picked cat, cp, dd, > ed, ls, mv, ps, rm, and stty. % file -L /bin/{cat,cp,dd,ed,ls,mv,ps,rm,stty} /bin/cat: sparc pure dynamically linked executable /bin/cp: sparc pure dynamically linked executable /bin/dd: sparc pure dynamically linked executable /bin/ed: sparc demand paged dynamically linked executable /bin/ls: sparc pure dynamically linked executable /bin/mv: sparc demand paged executable /bin/ps: sparc pure dynamically linked set-gid executable /bin/rm: sparc pure dynamically linked executable /bin/stty: sparc pure dynamically linked executable I hope all your programs in /minibin are statically linked, otherwise, you had better set up a /minilib with a copy of libc.so.* and ld.so so you can do runtime linking. Personally, why bother with anything you can do using sh? The only thing I would want in a /minibin would be restore. Everything else which can't be done with I/O redirection and builtin echo isn't critical in single-user mode. % file /usr/etc/restore /usr/etc/restore: sparc demand paged executable @alex