3

I am packaging an application for ubuntu and the only reasonable repeatable test bed I've come up with is a machine running a live CD. I can't use a VM as the application requires 3d acceleration (VirtualBox's current solution doesn't cut it).

Unfortunately, the package is about 2GB, so it is unable to be installed, since the file system is around 4GB total. Just wondering if there's a way to increase the size of the file system in a way that would benefit what I'm trying to do?

Any further information about how Ubuntu live CD works out how large to create the FS?

ish
  • 141,990

3 Answers3

1

The default LiveCD filesystem is stored entirely in RAM, so it's limited by how much physical RAM you have. I believe the default is to set it at ~50% of that number, striking a reasonable balance between temporary storage and enough memory to actually run stuff.

As the filesystem is necessarily very early on in the boot process, I believe it's setup by the kernel initramfs, so it would be difficult to change the ratio without building your own kernel.

Your best option is to switch to a LiveUSB and enable persistence, creating a multi-gigabyte on-disk file that will be used to store programs, downloads, etc. instead of RAM.

ish
  • 141,990
1

You can remaster Ubuntu which is basically extracting files from the original CD, customize the system and compile again the image

jet
  • 7,452
-1

If you have a USB flash drive, you could install Ubuntu directly onto it from the live CD. Say you have a 8GB USB, the file system could use four, and Virtualbox can use the rest. If you have a larger USB, the better. Here is a link to the answer on how to install Ubuntu to a USB.

Hope this solves it.

Max Tither
  • 1,354