Sean R. Cummins on Wed, 10 May 2000 19:27:26 -0400 (EDT) |
There's a real quick and easy way to fix this if you have the Solaris media..... high level overview: boot off the install cd in single user mode, mount the root filesystem, edit /etc/passwd. step-by-step: 1) put the install media in the drive, go to the prom level (the "ok" prompt) and type "boot cdrom -s" 2) Find the name of your root slice. If you don't know the name of your root partition, try this: a) type "format" b) choose the disk you think you're booting off of (probably 0). remember the cxtxdx name of the disk you chose, you'll need it later. c) type "p" enter "p" enter to print out the partition table. you should find a root slice there, probably slice 0. d) so, you'll want to append the root slice number (s0) to the name of the disk (c0t0d0), making it, in this case, c0t0d0s0. 3) Mount that into /a by typing "mount /dev/dsk/c0t0d0s0 /a" 4) cd /a/etc 5) vi passwd, save your changes, reboot. That should do it... - Sean -----Original Message----- From: plug-admin@lists.nothinbut.net [mailto:plug-admin@lists.nothinbut.net]On Behalf Of darxus@chaosreigns.com Sent: Wednesday, May 10, 2000 2:27 PM To: plug@lists.nothinbut.net Subject: Re: [PLUG] inconveniently broke a sun box On Wed, 10 May 2000, William H. Magill wrote: > > I have the pizza box on my lap right now. I'm going to try building > > readwrite ufs support into a linux kernel and mounting the drive in it. > > Just boot it up into single user mode. At that point, it doesn't care about > /etc/passwd. (I don't think, but don't remember... If it does, you'll have > to physically mount the disk on another box.) > > stop-a will get you to the prom prompt. > >boot -s Got into single user mode, but I still got the "No shell" error :/ Oh yeah, and this drive.. might be standard uw scsi, except it doesn't have a place to plug power in.. so it looks like I can't do anything with it. ___________________ www.ChaosReigns.com ______________________________________________________________________ Philadelphia Linux Users Group - http://plug.nothinbut.net Announcements - http://lists.nothinbut.net/mail/listinfo/plug-announce General Discussion - http://lists.nothinbut.net/mail/listinfo/plug ______________________________________________________________________ Philadelphia Linux Users Group - http://plug.nothinbut.net Announcements - http://lists.nothinbut.net/mail/listinfo/plug-announce General Discussion - http://lists.nothinbut.net/mail/listinfo/plug
|
|