From owner-freebsd-questions@FreeBSD.ORG Tue Mar 8 21:47:13 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D97916A4CE for ; Tue, 8 Mar 2005 21:47:13 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id B320543D5A for ; Tue, 8 Mar 2005 21:47:12 +0000 (GMT) (envelope-from danoxster@gmail.com) Received: by wproxy.gmail.com with SMTP id 70so1892253wra for ; Tue, 08 Mar 2005 13:47:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=bJvbZFy3ZGfgkpo2CBrWxidexYR/ELpl235QUgYc1tEsd+isP9qrSnldik8WG3PoHlt8Itij+m9eCylHW5g1RfLw7gy2qMc57cb0+FW9Z0i5/lHo4hr+UJOdYSzBYMdaOTc4kHFNs6BrQHNsmyN/naSqGzTuXG24XzpdIbCPITM= Received: by 10.54.83.6 with SMTP id g6mr35427wrb; Tue, 08 Mar 2005 13:47:12 -0800 (PST) Received: from ?192.168.1.4? ([220.233.85.5]) by smtp.gmail.com with ESMTP id g5sm601182wra.2005.03.08.13.47.10; Tue, 08 Mar 2005 13:47:12 -0800 (PST) Message-ID: <422E1D74.4070503@gmail.com> Date: Wed, 09 Mar 2005 08:47:32 +1100 From: Dan Simmonds User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Kinsey References: <422CD090.6070205@gmail.com> <422E18E4.9000509@daleco.biz> In-Reply-To: <422E18E4.9000509@daleco.biz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org Subject: Re: Disk Geometry X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2005 21:47:13 -0000 Thanks Kevin, This is quite helpful, only I have a fairly unusual disk structure, since the disk was originally a dual boot system with windows XP which I eventually converted into a full ufs drive. So all the BSD partitions are located on what was originally the second half of the disk. Is there anyway I can escape out of the automount prompt and run fdisk, or anything. I've been trying everything I can think of. Thanks, Dan. Kevin Kinsey wrote: > Dan Simmonds wrote: > >> I have a relatively new installation of FreeBSD 5.3 which I have been >> running >> as a file server. Recently we had a power outage and when I booted up >> the >> machine again, instead of a normal boot sequence I was given an >> "automount" prompt. >> >> I understand that I have to mount a disk slice and fsck my hard drive >> (I think >> this is right, please correct me if I'm wrong), only its been a while >> since I sliced >> up my hard drive and I've forgotten what the disk looks like. Is >> there anyway >> of investigating the disk geometry from this automount prompt? The only >> commands I seem to have available are mount commands. >> >> Thanks, >> >> Dan. > > > > (Hi, Dan ... this probably needs to go over to questions@freebsd.org, > where more experience folks will see it, so I'm redirecting the CC > there...) > > Ouch! I hope your disk can recover. Once you get this grassfire > out, be sure and check your backup strategies.... > > The *only* command you can enter isn't even really a command, > it's simply the answer to the question "where the heck is /boot?" > which is something the system desperately needs to know. > > IIRC (and who knows, it has been a little while since I saw this > one, thank Deity) it gives you a hint or two about what to > do. The usual boot device is /dev/ad0s1 (for IDE drives) or > /dev/da0s1 (for SCSI) and the filesystem type is normally > ufs (but that could vary, ufs2 for example). > > Once you get in, you will want to fsck and attempt to > remount your slices; you probably won't have access to a lot > of normal tools (for at least two reasons I can think of: > one being that some of them are on the /usr partition, > and the other being that $PATH is not set, so even stuff > in /bin and /sbin will *say* "not found", just call 'em by the > full path /sbin/fsck, /sbin/mount, etc.) If everything fscks > clean, try rebooting again to return to multi-user (normal) > mode. > > Good luck. > > Kevin Kinsey >