From owner-freebsd-questions@FreeBSD.ORG Wed Jul 1 23:08:15 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 4028A1065675 for ; Wed, 1 Jul 2009 23:08:15 +0000 (UTC) (envelope-from lenzi.sergio@gmail.com) Received: from mail-gx0-f210.google.com (mail-gx0-f210.google.com [209.85.217.210]) by mx1.freebsd.org (Postfix) with ESMTP id EB1B28FC19 for ; Wed, 1 Jul 2009 23:08:14 +0000 (UTC) (envelope-from lenzi.sergio@gmail.com) Received: by gxk6 with SMTP id 6so598349gxk.19 for ; Wed, 01 Jul 2009 16:08:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer; bh=Qdc/ntlJxYd+Njd4ekRtBdJaJwQOwy7NAM7q5D0iUPA=; b=xOT0ArRrwKsPfA1yRixhFPKfsGbsz1kJsf46T3bjpgsohu3ijG8KafeGs+zTrvSetu lsV6ASflMAtCRUAp4+Jnywq/FhoYiQHE4Zc4VpX9rmpX5ycoDvDW58uZ/Cd1b5GnaXvh tAxHVMRGwK7pKYjmqg/xq+FAqlrefMfQAaHC4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer; b=Pp0GvyeGjxUE7HXMt0eA28k68wR9p+RPY1uL9+RUbvojBMddlmzoZqp0AsbpIiRTLt HzSKT6jyTBGAZypsuJUevgqQoIVJyHzjSeKDhKMYv+ClRL23jVxtSZivuA1oA2Uraykd 6Vh2anDC2kGk8imKxzQjcAWt9zBnSOHdQ2agc= Received: by 10.90.101.17 with SMTP id y17mr2042392agb.44.1246489694389; Wed, 01 Jul 2009 16:08:14 -0700 (PDT) Received: from ?10.0.0.118? (200.175.53.23.static.gvt.net.br [200.175.53.23]) by mx.google.com with ESMTPS id 6sm4094338agb.68.2009.07.01.16.08.10 (version=SSLv3 cipher=RC4-MD5); Wed, 01 Jul 2009 16:08:11 -0700 (PDT) From: Sergio de Almeida Lenzi To: Chris Whitehouse , freebsd-questions In-Reply-To: <4A4BD7E1.8010204@onetel.com> References: <4A4BD7E1.8010204@onetel.com> Date: Wed, 01 Jul 2009 20:08:13 -0300 Message-Id: <1246489693.68114.23.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 FreeBSD GNOME Team Port Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: load kernel from different media 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, 01 Jul 2009 23:08:15 -0000 Em Qua, 2009-07-01 às 22:40 +0100, Chris Whitehouse escreveu: Yes you can. put your kernel (the one that works) on a DVD/CD assume that your rootfs on the HD is on ad0s1a, /usr is on /dev/ad0s1e with all the /boot directory. than boot from dvd/CD with the HD on the machine too. on the startup, hit 6 (number 6). than type: set vfs.root.mountfrom="ufs:ad0s1a" boot -s ==================== the machine will boot from the CD (with the kernel on the CD) than will mount the filesystem / (root) using ufs and the device /dev/ad0s1a once boot, you can mount the / rw..... mount -o rw /dev/ad0s1a /mnt mount /dev/ad0s1e /usr than..... export PATH=/mnt/sbin:/mnt/bin:/usr/sbin:/usr/bin mount -t cd9660 /dev/acd0 /cdrom cd /cdrom tar cf - boot | tar -xpvf - -C /mnt =============== edit /mnt/fstab to match the /(root) fs ..... ==============fstab========= /dev/ad0s1a / ufs rw 1 1 ===================== fastboot the machine will reboot and boot happy on the hd.... hope it can help