Re: howto upgrade 4.8 to 4.9 without cdrom or floppy?

From: Robert Watson (rwatson_at_freebsd.org)
Date: 12/12/03

  • Next message: kitsune: "Re: Heavy Gear 2 under linux compat..."
    Date: Fri, 12 Dec 2003 01:38:57 -0500 (EST)
    To: paul van den bergen <pvandenbergen@swin.edu.au>
    
    

    On Fri, 12 Dec 2003, paul van den bergen wrote:

    > on freebsd-hackers, Alfred Perlstein posted a method that allows
    > boot-disk-less installation... but it requires mdconfig, a 5.1
    > utility...
    >
    > is there a method to do this under 4.8?
    >
    > it seems to me that the job performed by md0 could be done with vn0 e.g.

    If you're willing to build from the source tree, the
    buildworld/buildkernel/installkernel/reboot/installworld/mergemaster route
    is actually quite reliable. I just upgraded a 4.6 box to 4.9 a couple of
    days ago, remotely with no serial console, cdrom, or floppy, without a
    hitch.

    Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
    robert@fledge.watson.org Senior Research Scientist, McAfee Research

    >
    > do
    > # ls /dev/vn*
    > if empty do
    > # cd /dev
    > # ./MAKEDEV vn0
    > # ./MAKEDEV vn1
    > # vnconfig vn0 /path/to/freebsd/4.9.iso
    > # mount_cd9660 /dev/vn0c /path/to/freebsd4.9
    >
    > or however you access the freebsd install iso disk
    > the point being to get access to the /floppies/boot.flp image on the cdrom
    >
    > # vnconfig vn1 /path/to/freebsd4.9/floppies/boot.flp
    > # mkdir /bootfloppy
    > # mount_mfs /dev/vn1c /bootfloppy/
    > # cp /bootfloppy/kernel.gz /ikernel.gz
    > # cp /bootfloppy/mfsroot.gz /mfsroot.gz
    >
    > then reboot as described...
    >
    > I am about to try this out... wish me luck!
    >
    >
    > On Mon, 1 Dec 2003 07:18 pm, Alfred Perlstein wrote:
    > > I have a mini-HOWTO here that possibly be automated.
    > >
    > > Basically we're going to install FreeBSD over FreeBSD without
    > > a floppy, cdrom or pxe.
    > >
    > > This depends on a loader that's compatible with your kernel
    > > so if really weird lockups happen, you might not be compatible.
    > >
    > >
    > > Anyhow, here we go:
    > >
    > >
    > > Download the boot.flp from the release you want to install.
    > >
    > > Mount it like so:
    > > mdconfig -a -t vnode -f boot.flp
    > > # should output something like 'md0'
    > > mkdir -p /mnt
    > > mount /dev/md0 /mnt
    > >
    > > Copy the yummy bits from the install image to your root:
    > > cp /mnt/kernel.gz /ikernel.gz
    > > cp /mnt/mfsroot.gz /mfsroot.gz
    > >
    > > Now reboot and interrupt the loader when it counts down the boot.
    > >
    > > Then type these commands into the loader:
    > > unload kernel
    > > load /ikernel
    > > load -t mfs_root /mfsroot
    > > set vfs.root.mountfrom
    > > boot
    > >
    > > Now cross your fingers once you wipe the partitions out to reinstall...
    > >
    > >
    > > It would be cool if this could be automated[1], perhaps by setting
    > > the boot partition to the swap partition and setting it up temporarily
    > > as a ufs filesystem and then... oh... well...
    > >
    > > [1] http://www.jerkcity.com/jerkcity1426.html
    >
    >
    >
    > --
    > Dr Paul van den Bergen
    > Centre for Advanced Internet Architectures
    > caia.swin.edu.au
    > pvandenbergen@swin.edu.au
    > IM:bulwynkl2002
    > "And some run up hill and down dale, knapping the chucky stones
    > to pieces wi' hammers, like so many road makers run daft.
    > They say it is to see how the world was made."
    > Sir Walter Scott, St. Ronan's Well 1824
    >
    > _______________________________________________
    > freebsd-hackers@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    >

    _______________________________________________
    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"


  • Next message: kitsune: "Re: Heavy Gear 2 under linux compat..."

    Relevant Pages

    • Re: Using the boot-easy boot loader..
      ... > I am currently running FreeBSD 5.2.1, installing of OS'es is really not ... > a hard task for me, except this one time and it has to do with WINDOWS ... > Windows XP on my primary C drive, and I goto install the FreeBSD boot ... > freebsd boot loader... ...
      (freebsd-questions)
    • Problems trying to boot from an 80GB Seagate
      ... My first attempt at installing FreeBSD (using the bootable CDROM images ... The BIOS CMOS is configured to "Auto" detect the drives on boot, ... Next, I created a NTFS partition on the drive with an XP install CD, ...
      (freebsd-questions)
    • Re: Problem: cannot install on Dell 400SC
      ... appear to write the boot block. ... FreeBSD installer write the FreeBSD MBR and it seemed to do so just ... >> not this particular model and especially not the LSIL SCSI controller. ... boots into the sysinstall or our install system just ...
      (freebsd-questions)
    • Re: Failed installation of FreeBSD 5.4
      ... > I am attempting to install FreeBSD on a Pentium system ... > boot disks to install FreeBSD. ... It can be argued whether the hardware problems ...
      (freebsd-questions)
    • Dual Booting -- Help Please!
      ... FreeBSD getting 25 gig of my single 40 gig drive. ... Install FreeBSD 5.3-RELEASE ... I choose to install the FreeBSD Boot Manager ... Format first partition as NTFS ...
      (comp.unix.bsd.freebsd.misc)