How to configure Linux PE to require less than 2GB RAM
search cancel

How to configure Linux PE to require less than 2GB RAM


Article ID: 178203


Updated On:


Deployment Solution




In Deployment Solution 6.9 SP6 and 7.5, the Linux Preboot Environment (aka Linux Automation) was updated to a newer version of the Linux kernel. Without going into details as to why, it was determined that 2GB RAM minimum would be required. Due to this change, any system that has <2GB RAM can no longer use Linux PE to boot to automation - in many cases lower RAM is why Linux was chosen as the automation environment in the first place.

To get around this issue, many have resorted to retaining older versions of Linux PE for older systems, but then also requiring the new Linux PE for UEFI and other newer systems. We now have a better solution for this, which allows the use of the newer kernel for both groups of systems.

Disclaimer: This method is currently officially unsupported.

Here are the steps to modify the Linux PE to adjust the minimum required RAM:

  1. Copy file rootfs from folder “bootwiz\platforms\Linux\Base” to any Linux machine
  2. Create new directory
    $mkdir /mnt/Large
  3. Mount rootfs to /mnt/Large as
    $ mount –o loop rootfs /mnt/Large
  4. Create new loopback device of smaller size with following commands
    $ dd if=/dev/zero of= rootfs_custom bs=1M count=512
    $ /sbin/mke2fs -F -q -m 0 -O ^resize_inode rootfs_custom
    $/sbin/tune2fs -c 0 -i 0 rootfs_custom
  5. Mount custom rootfs as
    $mkdir /mnt/Custom
    $mnt rootfs_custom /mnt/Custom
  6. Copy files from rootfs to rootfs_custom as
    $ cp –rpf /mnt/Large/* /mnt/Custom
  7. unmount rootfs and rootfs_custom
    $ umount /mnt/Large
    $ umount /mnt/Custom
  8. rename rootfs as rootfs.bkup and rootfs_custom as rootfs
    $mv rootfs rootfs.bkup
    $mv rootfs-custom rootfs
  9. Copy updated rootfs to server and create new preboot.