Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 01-30-2013, 12:59 PM   #1
LQ Newbie
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
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.
Old 01-31-2013, 03:26 AM   #2
Registered: Dec 2012
Location: South Devon, UK
Distribution: PCLinuxOS, Suse, Mint, Puppy.
Posts: 67

Rep: Reputation: 17
Linux in ram

I believe Puppy Linux runs in ram, I have used it on a machine with no Disks attached, it worked well.
528.005 is the one I used.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I am completely new and looking for an FTP Server to run on Linux Ubuntu 12.04 LTS spaddz Linux - Software 6 10-29-2012 09:54 AM
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 03:08 PM
Kernel 2.6 run from Ramdisk BLJ Linux - Newbie 1 11-30-2007 10:27 PM
Completely new to Linux, Downloaded Mandrake 10 and want to run both XP and Mandrake Scandal Mandriva 4 06-28-2004 10:03 PM
Trying to understand how a boot loader handles initrd/initramfs/ramdisk ... cyril Linux - Software 0 04-08-2004 05:10 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:23 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration