Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: smultita on September 10, 2011, 11:50:49 AM

Title: chroot sh: Out of virtual memory!
Post by: smultita on September 10, 2011, 11:50:49 AM
When running
chroot /mnt/hdb1/oldlinux
I get
sh: Out of virtual memory!

I'm running tinycore3.8.4 in VirtualPC on Win7 host
with 1 GB mem for the VM

Any suggestions to solf the out of memory?
Title: Re: chroot sh: Out of virtual memory!
Post by: maro on September 10, 2011, 08:42:33 PM
You seem to have a talent to pick the one VM system that has (for obvious reason) probably the worst possible Linux support.

Having said this, I've just done a quick test with a few different parameters: using a WinXP host, booting TC 3.8.4 from a CD-ROM image in a VirtualPC VM with 256 MBytes RAM and running my own little chroot setup script (http://pastebin.com/kLphZ82F) I was not able to re-produce your finding.

Obviously I don't know know how you've set up your 'chroot', and what you intend to do whitin it. Maybe you could use my little script as a test to see whether you get a different result.

Other then this I come back to my usual advice in these matters: using QEMU or VirtualBox has pretty much never let me down (and I tend to boot multiple TC VMs of either "flavour" every day either on a WinXP or a Linux host).
Title: Re: chroot sh: Out of virtual memory!
Post by: smultita on September 12, 2011, 04:13:25 AM
Thanx Maro, your chroot setup script works even on Win7 VirtualPC.
I need this to re-compile some old programs for a Linux 2.0.40 box.