OpenWrt Forum Archive

Topic: Is possible run openwrt direct from ram ? (like puppy linux)

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Is possible rum openwrt direct from ram ? (like puppy linux)

I have raspberry pi , and have a much ram , i try found into wiki or google and no have this information  is possible inform this procedure is possible ?

Hi , is is possible, what i need ?

What do you mean "directly from RAM"? RAM is Random Access Memory.

Yes you can use an "initrd" image which includes the root filesystem as a RAM drive.

You need a way to load it into RAM though.

mk24 wrote:

Yes you can use an "initrd" image which includes the root filesystem as a RAM drive.

You need a way to load it into RAM though.

Yes , i not sure is included in openwrt or is possible include this function in this system , and for this cause , a request information .

In page : http://puppylinux.org/main/Overview%20a … tarted.htm have this information :

"Runs from RAM, making it unusually fast even in old PCs and in netbooks with solid state storage media."

In last years , i try puppy on ram , is more fast , and for repetitive use , is better to speedy and stability use system on ram , i would like to know if with openwrt it is possible , for example , run asterisk or router , without decrease durability sdcard on pi.

mk24 wrote:

Yes you can use an "initrd" image which includes the root filesystem as a RAM drive.

You need a way to load it into RAM though.

Hi , thanks your information , i search but not found information to make initrd with root filesystem , is possible informe ne how to for i read ?

You could boot from the SD card then shadow the root file system in a RAM disk.  I doubt that would make a noticeable difference in speed though.  Most router operations do not access the disk after startup.

mk24 wrote:

You could boot from the SD card then shadow the root file system in a RAM disk.  I doubt that would make a noticeable difference in speed though.  Most router operations do not access the disk after startup.

In my case , i need run to ram , for 1 more speed , 2 sdcard have more life time 3 install softwares and after reboot , return for default factory (or last configure) .

my goal is run samba server , and asterisk , if i have problem with configuration , i reboot and have all data in last conf and more , i running on ram , I no have limitation IO sdcard .

Thanks your answer .

(Last edited by carlosalberto4ti on 3 Nov 2017, 15:00)

https://wiki.openwrt.org/doc/techref/process.boot

For you goal it is better to setup a x86/64 system for the performance.

carlosalberto4ti wrote:
mk24 wrote:

You could boot from the SD card then shadow the root file system in a RAM disk.  I doubt that would make a noticeable difference in speed though.  Most router operations do not access the disk after startup.

In my case , i need run to ram , for 1 more speed , 2 sdcard have more life time 3 install softwares and after reboot , return for default factory (or last configure) .

my goal is run samba server , and asterisk , if i have problem with configuration , i reboot and have all data in last conf and more , i running on ram , I no have limitation IO sdcard .

Thanks your answer .

ximibaba wrote:

https://wiki.openwrt.org/doc/techref/process.boot

For you goal it is better to setup a x86/64 system for the performance.

carlosalberto4ti wrote:
mk24 wrote:

You could boot from the SD card then shadow the root file system in a RAM disk.  I doubt that would make a noticeable difference in speed though.  Most router operations do not access the disk after startup.

In my case , i need run to ram , for 1 more speed , 2 sdcard have more life time 3 install softwares and after reboot , return for default factory (or last configure) .

my goal is run samba server , and asterisk , if i have problem with configuration , i reboot and have all data in last conf and more , i running on ram , I no have limitation IO sdcard .

Thanks your answer .

Sorry, I understain, but my hardware for use power on is raspberry, It stays power on 24/7.

For me to configure and test, ok (x86), I have a VM with openWRT 15.05, but a procedure or an article on how to do what I am looking for, in order to learn.

Thanks your answer .

Guys, there is no sense in quoting the complete previous posting.
Please use the "Post reply" button instead of the "Quote" button.

The discussion might have continued from here.