Transferring the root filesystem to a ramdisk?

Julian Elischer julian at elischer.org
Sat Jan 31 15:27:14 PST 2004


you could mount the replacement root device on '/'

alternatively you could make init do the chroot (you have source no? :-)


On Sat, 31 Jan 2004, Cordula's Web wrote:

> > > > in an attempt to save power on FreeBSD servers, I'm
> > > > trying to replace the hdd with a ramdisk. The idea is to:
> > >
> > > 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
> > 
> > there is a port "ataidle" that sets teh IDE drive's internal idle
> > timeout timer so it will spin down if you dont use it..
> 
> Yes, thank you. ataidle works like a charm.
> 
> > as for scsi, you can sent it a spin-down command with camcontrol but I
> > forget the actual command..
> > (it should be in the scsi .h files)
> 
> # camcontrol stop da0
> # camcontrol start da0
> works for me.
> 
> Now, all I need would be a syscall to switch the kernel's notion
> of the root device.
> 
> Or is there a way to umount root, and remount it on the md drive?
> 
> -- 
> Cordula's Web. http://www.cordula.ws/
> 
> 



More information about the freebsd-multimedia mailing list