Re: Transferring the root filesystem to a ramdisk?

From: Bjorn Eikeland (bjorn_at_eikeland.info)
Date: 01/31/04

  • Next message: Peder Blom: "Re: where am I supposed to put my rc.firewall?"
    Date: Sat, 31 Jan 2004 15:29:22 +0100
    To: cpghost@cordula.ws, "freebsd-multimedia@freebsd.org" <freebsd-multimedia@freebsd.org>
    
    

    I'm probably in over my head here, but;
    chroot should change the root filesystem for you.
    (look in the manpages for more details)

    As for powering down the hdd I did find a page for this,
    but havent had time to play with it yet:
    http://www.cran.org.uk/bruce/software.php

    best of luck!

    > Hello,
    >
    > in an attempt to save power on FreeBSD servers, I'm
    > trying to replace the hdd with a ramdisk. The idea is to:
    >
    > 1. boot from the hdd (or netboot from an NFS server)
    > 2. configure a ram disk (md(4))
    > 3. copy everything that's needed to ram disk
    > 4. transfer kernel root to ramdisk (*)
    > 5. turn off the hdd (**)
    >
    > (*) is the hairy question.
    > (**) How can that be done?
    >
    > I won't need paging, because there'll be enough ram for
    > everything (ramdisk, kernel and userland).
    >
    > Now the questions are:
    >
    > * How to "attach" the root filesystem to the ram disk?
    >
    > Can this be done only through pxe/netboot before the
    > kernel starts, or is there some kind of system call
    > that can transfer root on a running system?
    >
    > * How to power off (and on) the hdd (both for ATA and SCSI)?
    >
    > * Will the power consumption decrease (no hdd) or will
    > it increase (more ram)? Anybody measured this before
    > with regular diskless machines?
    >
    > Thanks,
    > -cpghost.
    >

    _______________________________________________
    freebsd-multimedia@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
    To unsubscribe, send any mail to
    "freebsd-multimedia-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: Peder Blom: "Re: where am I supposed to put my rc.firewall?"

    Relevant Pages

    • Re: kernel panic after upgrade to 8.0
      ... > The above error messages look like the root filesystem can ... The 2.4.18-14 kernel is the one that I was initially trying to boot from ... All opinions stated are my own, and probably don't even vaguely resemble those of Navarro College. ... To Unsubscribe Go To ABOVE URL or send a message to: ...
      (RedHat)
    • Re: grub question read-only
      ... kernel line, even though the system boots normal rw? ... your root filesystem is also read-only, ... EXT3-fs: write access will be enabled during recovery. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Installing on a CF
      ... > * usual compressed initrd containing entire root filesystem is loaded ... > into RAM ... startup scripts mount the CF to a mountpoint in the ...
      (comp.os.linux.embedded)
    • Re: Etch on USB-HD wont boot - race condition?
      ... notebook but the kernel cannot find the root filesystem. ... partitions on hda or hdc on my thinkpad-t42. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: with etch, /etc/fstab root not needed?
      ... guessing somehow etch got it from there and consequently didn't need ... The root filesystem itself is already mounted. ... Other than that you need an entry for everything that you want to ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)