Subject: Re: Help: Injudicious use of "rm -r"
To: T. Sean (Theo) Schulze <71410.25@compuserve.com>
From: Paul Goyette <paul@whooppee.com>
List: port-mac68k
Date: 11/30/1997 08:46:07
Since you've still got a valid shell why not just copy bash to /bin/csh
and then log in as root? Granted, you'll be running under bash but at
least you'll be running!
On Sun, 30 Nov 1997, T. Sean (Theo) Schulze wrote:
> I don't thik that I made clear that I can still move around the system
> some as myself. That limits what I can do though since I can't su or
> logout and login as root. Fortunately, I use bash as my shell, but root
> uses csh. bash is in /usr/local/bin so I still have it. I can't change
> any of root's login files, because I don't have permission.
>
> Something just occured to me. Could I shutdown by issuing the command
> "/usr2/sbin/shutdown -r now"? Is there something the kernel would look
> for on shutdown that it won't be able to find with /bin and /altroot
> gone? Hey wait, if shutdown lives in /sbin, I still have it. It should
> still work, right?
>
> Sorry for the stream of consciousness stuff, but this has me really spun
> up!
>
> >Oh boy! I may have stepped in it this time!
> >
> >I have a IIci running 1.3_alpha on a 540MB Quantum Maverick drive using
> >GENERICSBC#48. Mounted in the case in one of my nubus slots is a Purple
> >Bullet, a deveice that lets me mount a 2.5" drive on a nubus card and use
> >it like a normal drive. This 2.5" drive is a 160MB Quantum GO drive that
> >I used to use as my primary/only NetBSD drive. It still has NetBSD 1.2C
> >loaded on it, minus the kernel.
> >
> >I wanted to clear this drive off, load the 1.3_alpha src on it (among
> >other things) and then make some symbolic links to directories on this
> >drive to off-load some of the stuff on the 540MB Maverick.
> >
> >Apparently I was not careful about what I put on the command line while
> >using rm and it seems I have removed the /altroot and /bin directories
> >from my primary 1.3_alpha drive. Any suggestions on how I can get those
> >files back, or otherwise undo what I have done? My plan right now is to:
> >
> >1) shut off the computer (I can't shutdown because I can't log in as root.
> > Root uses the csh shell, which went away with /bin),
> >
> >2) reboot into the MacOS,
> >
> >3) cpin GENERICSBC#26 and base1.3_alpha onto the GO160MB drive with the
> >Installer,
> >
> >4) boot into the GO160MB and use tar to re-install base1.3_alpha,
> >
> >5) shutdown and reboot into the 540MB drive as usual, and
> >
> >6) be more careful with rm in the future, or find a better way to clear
> >some space on that drive.
> >
> >Will this plan work? Can anyone else offer me an alternative? Will I need
> >to re-install more than base?
> >
> >TIA,
> >
> >Sean.
>
>
> T. Sean (Theo) Schulze
> 71410.25@compuserve.com
> TSSchulze@aol.com
>
> Hope is not a course of action. (But prayer is a combat multiplier.)
>
>
>
>
-----------------------------------------------------------------------------
| Paul Goyette | PGP Public Key fingerprint: | E-mail addresses: |
| Network Consultant | 0E 40 D2 FC 2A 13 74 A0 | paul@whooppee.com |
| and kernel hacker | E4 69 D5 BE 65 E4 56 C6 | paul_goyette@ins.com |
-----------------------------------------------------------------------------