LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Run Linux completely from ramdisk (initramfs) (http://www.linuxquestions.org/questions/linux-kernel-70/run-linux-completely-from-ramdisk-initramfs-4175447875/)

innocent4711 01-30-2013 12:59 PM

Run Linux completely from ramdisk (initramfs)
 
Hello to everybody, this is my first posting here!

I have a question concerning the boot-process in linux. I want to achieve that my linux is booting completely from initramfs. My system is completely diskless. So what I have already done:

I'am running CentOS 5.9 (Kernel 2.6.18-348) on a machine that has not any disks inside. So I want to have a diskless boot-process. In the planned production environment this machine will boot from network (pxe). Booting from network works like a charme and the initramfs is loaded into memory correctly.

Normally the initramfs is used for setting up an inital filesystem to load some drivers that are not compiled into the kernel. After the actual filesystem is mounted successfully the root-mount-point is switched to that new filesystem and the system can start from there. As I figured out the system calls '/sbin/init' from the new filesystem (which is now the root-filesystem).

I want to skip this last step, so my whole system is completely included in the initramfs at root-mount-point. The filesystem at this stage is "ramfs". My whole embedded system is already configured and packed into an initramfs-image (cpio-archive that is gzipped). That is not a problem at all.

First of all: is it possible to run the entire system from a ramdisk?



Thanks in advance and nice greets from Germany!


PS: Sorry for my bad english but I am not a native speaker.

trevoratxtal 01-31-2013 03:26 AM

Linux in ram
 
Hello
I believe Puppy Linux runs in ram, I have used it on a machine with no Disks attached, it worked well.
http://puppylinux.com/
528.005 is the one I used.
Trev


All times are GMT -5. The time now is 01:10 PM.