Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jul 2009 18:26:10 +0100
From:      Chris Whitehouse <cwhiteh@onetel.com>
To:        Sergio de Almeida Lenzi <lenzi.sergio@gmail.com>
Cc:        freebsd-questions <questions@freebsd.org>
Subject:   Re: load kernel from different media
Message-ID:  <4A4F90B2.4020006@onetel.com>
In-Reply-To: <1246489693.68114.23.camel@localhost>
References:  <4A4BD7E1.8010204@onetel.com> <1246489693.68114.23.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
Sergio de Almeida Lenzi wrote:
> 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
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 
Hi sergio

thanks for your reply. I've been playing around with bootable pen drives 
cd's and hard disks with varying degrees of breakage :) however now i"ve 
found the workaround for the original problem which is simply to disable 
firewire in the BIOS.

cheers

Chris



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