Many people have heard of and have used RAM disk images under Linux, but did you know you can do the same thing with Solaris 10? Well, it’s a little known fact, but you can, which is great for the potential of using Solaris 10 or OpenSolaris on embedded devices or even on security devices like firewalls.
Here is a quick method (courtesy of Peter Buckingham on one of our internal aliases) on creating a RAM disk image under Solaris 10 x86/x64 or OpenSolaris x86/x64:
- Install Solaris onto a disk based system
- Tar it up (except for
proc) - Modify
/boot/solaris/bootenv.rcand remove “bootpath“ - Modify
/lib/svc/method/fs-usrand changemountfsto remount/instead - Modify
/etc/vfstaband
- changerootfsto be/devices/ramdisk:a
- remove swap
- remove/tmpso it’s not swap backed - Now use the
/boot/solaris/bin/root_archivecommand to build the RAM disk image:eg
# /boot/solaris/bin/root_archive pack solaris.img <dir>… where <dir> is the directory you’ve got your working filesystem in.
Now you have a RAM disk image, there’s nothing really stopping you from loading it from the network via pxegrub/pxelinux, or from a local disk.
2 Responses to “HOWTO: Create a Solaris 10 RAM Disk Image”
Speak Your Mind 
Search
Related Entries
- HOWTO: Patch Solaris 10 Wanboot Miniroot Image
- HOWTO: Update Ultra 20 BIOS From a USB Stick
- HOWTO: Migrate a UFS Root Filesystem to ZFS
- Links for 3 August 2007
- Growing a ZFS Root Pool
- Solaris 10 10/08 (aka Update 6) is Now Available
- HOWTO: Create a ZFS Filesystem OS X Leopard
- Links for 20 Feb 2008 - 1 Mar 2008
- Compiling GAIM 2 / Pidgin On Solaris 10
- Ultra 20 Graphics Card Not Seen OpenSolaris snv_108 and Later


Hello,
that`s a cool idea. What should be done, to get this running uns Solaris Sparc ?
@Marko: In theory (read, I’ve not tried this yet), provided you’ve got KU 137137 or later installed, the procedure should be the same. KU 137137 introduces the newboot architecture onto SPARC and brings it in line with the x86 boot architecture.