From owner-freebsd-questions@FreeBSD.ORG Wed Dec 23 22:11:50 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 363711065693 for ; Wed, 23 Dec 2009 22:11:50 +0000 (UTC) (envelope-from miconof80.list@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id B4CB98FC17 for ; Wed, 23 Dec 2009 22:11:48 +0000 (UTC) Received: by ewy26 with SMTP id 26so4260800ewy.3 for ; Wed, 23 Dec 2009 14:11:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=CnrLxanwlL06RjllX8++d9waMXKiG1MnG64rqUMaVZc=; b=iSTkrKfFS6kpH15YN/aupeL7nBstNc+2XmV6/+SdGaJRA8Vx4otyAJhTmm0IFlK7Bi sicXhjnbMjjdwW4tNpX/ZdqM/bopqsUl9U/Q2JXrMc4P0PYlU117+dNknm6wqosNbzmL wKH8h0+2D7at6FYWh9ZfHOT71YL88v+zqKKdw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=Q9sNQo9QfV5s9+I73i0rWuyIFJoDDL5szVXdv/mYOA5W2GrKDjfFUoMJb/9tkkYSJI SPo65YzOBYdCtbq2gcB3eMTtllnxyrTfKJuF/8jePTA81txsZaxtdAiObSHmz4fHqeMX lsFdOMrElMW773O1SnrIPj81VYQOUfJDR9AV0= Received: by 10.213.25.69 with SMTP id y5mr12880568ebb.54.1261606307398; Wed, 23 Dec 2009 14:11:47 -0800 (PST) Received: from e4300 (ble76-1-82-236-66-69.fbx.proxad.net [82.236.66.69]) by mx.google.com with ESMTPS id 28sm15737272eyg.20.2009.12.23.14.11.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 23 Dec 2009 14:11:46 -0800 (PST) Date: Wed, 23 Dec 2009 23:11:42 +0100 From: Michel Le Cocq To: Ruben de Groot Message-ID: <20091223221141.GB2082@e4300> References: <20091223205137.GA2082@e4300> <20091223214416.GB82061@ei.bzerk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20091223214416.GB82061@ei.bzerk.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Michel Le Cocq , questions@freebsd.org Subject: Re: FreeBSD boot invalid partition 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: Wed, 23 Dec 2009 22:11:50 -0000 Ruben de Groot a écrit: > On Wed, Dec 23, 2009 at 09:51:39PM +0100, Michel Le Cocq typed: > > I just dump a real host and try to restore it on a virtual host under > > kvm. > > > > When booting under KVM i see this : > > Booting From hard Disk... > > Invalid partition > > Invalid partition > > No /boot/loader > > > > FreeBSD/i386/Boot > > Default: 0:ad(0,a)/boot/kernel/kernel > > boot : > > > > If i enter : > > boot : 0:ad(0,d) > > > > it's ok and then : > > Manual Root Filesystem Specification : > > Mountroot> ufs:/dev/ad0s1d > > > > and it's finaly boot. > > > > [root@vbsdio ~]# cat /etc/fstab > > # Device Mountpoint FStype Options Dump Pass# > > /dev/ad0s1b none swap sw 0 0 > > /dev/ad0s1d / ufs rw 1 1 > > /dev/ad0s1g /local ufs rw 2 2 > > /dev/ad0s1e /usr ufs rw 2 2 > > /dev/ad0s1f /var ufs rw 2 2 > > /dev/acd0 /cdrom cd9660 ro,noauto 0 0 > > linproc /compat/linux/proc linprocfs rw 0 0 > > [root@vbsdio ~]# > > > > I need to change my master boot device or anything else. > > But don't know what to do exactly. > > Not sure, but I think boot0 only boots "a" partitions. So after > you manually boot like above, go into bsdlabel and change ad0s1d > into ad0s1a. Do the same in fstab. I boot under liveFS then : bsdlabel -e ad0s1 change 'd' label to 'a'. mount /dev/ad0s1a /mnt edit /mnt/etc/fstab and change mount point of / to a. It's now ok. Thanks a lot. -- Michel