Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Jul 2009 20:08:13 -0300
From:      Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>
To:        Chris Whitehouse <cwhiteh@onetel.com>, freebsd-questions <questions@freebsd.org>
Subject:   Re: load kernel from different media
Message-ID:  <1246489693.68114.23.camel@localhost>
In-Reply-To: <4A4BD7E1.8010204@onetel.com>
References:  <4A4BD7E1.8010204@onetel.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1246489693.68114.23.camel>