From owner-freebsd-hackers@FreeBSD.ORG Thu May 24 23:39:06 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7732416A41F for ; Thu, 24 May 2007 23:39:06 +0000 (UTC) (envelope-from david@functionalchaos.net) Received: from mrelay-v1.mesd.k12.or.us (mrelay-v1.mesd.k12.or.us [198.236.68.98]) by mx1.freebsd.org (Postfix) with ESMTP id 5424013C43E for ; Thu, 24 May 2007 23:39:06 +0000 (UTC) (envelope-from david@functionalchaos.net) Received: from localhost (localhost [127.0.0.1]) by mrelay-v1.mesd.k12.or.us (Postfix) with ESMTP id EEDDA3C623C for ; Thu, 24 May 2007 16:39:05 -0700 (PDT) X-Virus-Scanned: by amavisd-new at mesd.k12.or.us Received: from mrelay-v1.mesd.k12.or.us ([127.0.0.1]) by localhost (mrelay-v1.mesd.k12.or.us [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mS8ZzM+iJV9H for ; Thu, 24 May 2007 16:39:05 -0700 (PDT) Received: from mail.mesd.k12.or.us (mail-x.mesd.k12.or.us [198.236.66.2]) by mrelay-v1.mesd.k12.or.us (Postfix) with ESMTP id 22F593C61CF for ; Thu, 24 May 2007 16:39:05 -0700 (PDT) Received: from [198.236.66.125] (dcramblett.mesd.k12.or.us [198.236.66.125]) by mail.mesd.k12.or.us (Postfix) with ESMTP id 108933F426A for ; Thu, 24 May 2007 16:39:05 -0700 (PDT) Message-ID: <46562218.7030703@functionalchaos.net> Date: Thu, 24 May 2007 16:39:04 -0700 From: David Cramblett User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4640EAD0.3020502@mesd.k12.or.us> <4647D88D.5060404@functionalchaos.net> In-Reply-To: <4647D88D.5060404@functionalchaos.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: System Drops to manual mount root prompt after HDD duplication X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2007 23:39:06 -0000 I was able to resolve this issue. Another sys-admin pointed out that my boot0cfg had the disk setup in CHS apposed to LBA. See below: |[root@www root]# boot0cfg -v ad0 |# flag start chs type end chs offset size |1 0x80 0: 1: 1 0xa5 1023:254:63 63 586067202 | |version=1.0 drive=0x80 mask=0xf ticks=182 |options=nopacket,update,nosetdrv |default_selection=F1 (Slice 1) That's a problem all right: "options=nopacket" means CHS mode. I checked th BIOS which indeed had the drive in CHS mode. I changed it to LBA as well as updated the boot0cfg: #boot0cfg -o packet ad0s1 However I still was dropped into the manual mount root prompt. While I was inspecting the BIOS I noticed that it could not see any drive larger than 130GB and the BIOS was detecting my drive as such. I moved the drive into a different machine and the problem was gone. David David Cramblett wrote: > My FreeBSD 5.2.1 server had a 4.5 GB HDD. I decided to upgrade it with > a larger drive. I installed a new drive on the second IDE channel which > made it ad2, of course, my original drive was ad0. I created a > partition, boot loader and matching slices on the new drive. Then I > copied the old drive to the new drive using tar. Once finished, I > removed the original drive and installed the new one on the primary > channel. When I booted up everything appeared normal, but when the > system starts to mount "/" it gives no error or warning and just drops > to a "Manual mount root specification" prompt. If I type "ufs:ad0s1a" > it boots up and everything is perfect. This is the same slice "/" was > on the old drive as well. > > > I have tried the following with no success: > > Checked /etc/fstab > > boot0cfg -v -B ad0 > > bsdlabel -B ad0s1 > > tried booting from a cd, going into post install config, fdisk, and set > the partition as bootable, it already was. > > Since upgrading the hard disk, I have upgraded the system to 5.5 and > then to 6.2. This system has been working great for over a week now, > just have this boot problem. > > > -------------- > > Here is my fstab: > > /dev/ad0s1b none swap sw 0 0 > /dev/ad0s1a / ufs rw 1 1 > > -------------- > > Output from bsdlabel > # bsdlabel ad0s1 > > # /dev/ad0s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 585018626 1048576 4.2BSD 2048 16384 28552 > b: 1048576 0 swap > c: 586067202 0 unused 0 0 # "raw" part, > don't edit > > > -------------- > > Output from boot0cfg > # boot0cfg -v ad0 > # flag start chs type end chs offset size > 1 0x80 0: 1: 1 0xa5 1023:254:63 63 586067202 > > version=1.0 drive=0x80 mask=0xf ticks=182 > options=nopacket,update,nosetdrv > default_selection=F1 (Slice 1) > > > > Thanks, > > David >