From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 11:17:39 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDB2E106564A for ; Sun, 30 Nov 2008 11:17:39 +0000 (UTC) (envelope-from tijl@ulyssis.org) Received: from mailrelay002.isp.belgacom.be (mailrelay002.isp.belgacom.be [195.238.6.175]) by mx1.freebsd.org (Postfix) with ESMTP id 50E518FC14 for ; Sun, 30 Nov 2008 11:17:39 +0000 (UTC) (envelope-from tijl@ulyssis.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtoEANEEMklR92rK/2dsb2JhbACBbctDgn0 Received: from 202.106-247-81.adsl-dyn.isp.belgacom.be (HELO kalimero.kotnet.org) ([81.247.106.202]) by relay.skynet.be with ESMTP; 30 Nov 2008 12:17:37 +0100 Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.14.3/8.14.3) with ESMTP id mAUBGTLX001473; Sun, 30 Nov 2008 12:16:29 +0100 (CET) (envelope-from tijl@ulyssis.org) From: Tijl Coosemans To: freebsd-questions@freebsd.org, admin@azuni.net Date: Sun, 30 Nov 2008 12:16:27 +0100 User-Agent: KMail/1.9.10 References: <49322B49.80005@azuni.net> In-Reply-To: <49322B49.80005@azuni.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811301216.28523.tijl@ulyssis.org> Cc: Subject: Re: FreeBSD 4.8: can't load kernel after doing "cp -R /" to another disk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2008 11:17:39 -0000 On Sunday 30 November 2008 06:57:29 admin@azuni.net wrote: >>> Hello, everyone. This is the problem: our SCSI disk with FreeBSD >>> 4.8 on it has been failing recently, so I copied its root partition >>> to a fresh IDE disk with cp -pR and >> >> You should use dump and restore to copy the root partition, see: > > I'd done that before trying cp -pR, as outlined by rse@: > > dump -L -0 -f- /old | (cd /new && restore -r -v -f-) > http://people.freebsd.org/~rse/mirror/ > > which isn't too different. I think I know what the problem is: I made > the new single slice and FreeBSD partition on it and ran newfs -U on > it using the latest FreeBSD 5.x livecd toolkit, and later 4.8 can't > even mount that partition (mount /dev/ad0s1a /mnt) failing with > "incorrect superblock", so I think its /boot/loader can't load the > kernel because of FS issues (but strangely enough pressing "?" at the > boot loader prompt lists directory entries of the root FS just fine). > It turns out UFS isn't upwards compatible from releases 4.8 -> 5.5. > I'll try running newfs -U from 4.8. Last time I checked many 4.8 > binaries couldn't run due to disk errors, I hope newfs runs ok... You need to create a UFS1 file system. Also, root file systems usually don't have soft updates (-U) enabled.