RE: Set boot loader to boot off CD manually

From: John Baldwin (jhb_at_freebsd.org)
Date: 12/09/03

  • Next message: Robert Watson: "Re: inode state"
    Date: Tue, 09 Dec 2003 13:44:33 -0500 (EST)
    To: Daniel Goepp <freebsd@goepp.com>
    
    

    On 09-Dec-2003 Daniel Goepp wrote:
    > Hi all,
    >
    > I was banging my head against the wall too long yesterday, so I have
    > broken down, and have to ask. Any help on this matter is greatly
    > appreciated.
    >
    > Here is what I'm trying to do. I have two computers, both running 4.8,
    > clean, minimal installs. They have two serial cables connected to each
    > other to act as serial consoles, and -Dh has been added to /boot.config,
    > along with ttys having been updated. The console bit works great. What I
    > want to be able to do, is completely rebuild one of the machines remotely.
    > So I log into one, serial over to the other, and reboot it. Then, when
    > the loader comes up, I stop it, and break to the "ok" prompt. I unload
    > the kernel that was starting to load, and at this point, want to boot off
    > CD, to rebuild the system, as though I had gone into the BIOS, and set the
    > CD as the first boot device. However, I don't have remote access to the
    > BIOS, so I can't do this.

    The BIOS does not provide a way to talk to the CD to read files off of it
    unless you boot from it. So, no, you can't boot from the hard drive and
    read files off the CD from the loader. However, you can copy the kernel
    and mfsroot off of the CD and stick them in /boot/new/kernel and
    /boot/new/mfsroot.gz and then manually load the new kernel and mfsroot
    from the hard disk's loader to get into the installer. I.e. something
    like:

    ok unload all
    ok load /boot/new/kernel
    ok load -t mfs_root /boot/new/mfsroot
    ok boot

    -- 
    John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
    "Power Users Use the Power to Serve!"  -  http://www.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: Robert Watson: "Re: inode state"

    Relevant Pages

    • Re: GRUB module query
      ... config screen for various RAID options - I turn them off and use kernel ... The whole interaction between BIOS, ... case a secondary "on card" bios, and then GRUB, and then Kernel. ... So on boot the BIOS conspire to load the ...
      (Ubuntu)
    • Re: maximum hard drive size in Latitude cpi
      ... > actually written a boot loader they won't be so adamant about how "Windows ... > of the disk, and while it is being read off of the disk the machine is ... > limitatoins of that BIOS. ... After that the kernel takes over. ...
      (comp.sys.laptops)
    • Re: Debian bootable on external USB-harddisk
      ... > They are all on the external harddisk since I want to boot from this ... >> fail if you have placed the kernel and initrd on the external ... >> available from BIOS. ... >> grub stage one on the external disk. ...
      (comp.os.linux.setup)
    • Re: Sata_via problems in a Vintage2-AE1
      ... I'm using the bios version 0206. ... The bios is configured with vt8251 in AHCI mode and bios boot up ... The kernel boots, but when arrives at the ata3, ... With the default options of the kernel I cannot boot in this device with any ...
      (Linux-Kernel)
    • Re: HELP: Gateway Solo 5300 changed HD and added CD but cant load operating system
      ... The HD is recognized in bios OK. ... Also it won't boot from an external USB CD drive. ... > Or put the drive in your desktop and load the xp cd from there. ... > Return address is VALID but some sites block emails ...
      (comp.sys.laptops)