It seems that mylivecd needs about 2.5 times the size of generated image in free space.
it will first build the work directory which is the same size of the image, then it will generate the image, it also needs some space for temporary files.
Example: you have a 4GB installation, that would produce an iso image about 1GB, you need 2.5GB free space
mylivecd does not compute the required size before starting, and it will attempt to build the image untill it runs out of space, then it will die with an error message.
To get over the limited free space problem, I used an external USB HDD.
I have a 1TB USB HDD with abou 400MB free space.
I moved all the contents of the drive to a temporray directory /xx and excluded the diretory from mylivecd
This is easier than excluding all directories from myliveccd
Notes:
1- create the empty /Temp, /Work, /Img directories on your drive before you start
2- Modify the command according to your media name and mount point
3- run mylivecd --help for more options
4- run mount and make sure your USB HDD is mounted
Here is the command and output.
=================================================================
[root@Linux hassanein]# mylivecd --verbose --nodir /media/SAMSUNG/xx --tmp /media/SAMSUNG/Temp --workdir /media/SAMSUNG/Work /media/SAMSUNG/Img/My_USB_Img.iso
mylivecd, version 0.9.4,
http://pclinuxos.com/Copyright (C) 2010, Texstar <texstar at gmail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
WARNING: The temporary directory '/media/SAMSUNG/Work' will not be removed at exit, please do so manually
Disabling Services not needed on the LiveCD
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
running: /sbin/chkconfig --list
Creating initrd: [100.00% 00:00:23/00:00:23]
Setting filesystem parameters: [100.00% 00:00:39/00:01:05]
Creating compressed image: [100.00% 01:43:44/01:45:06]
Creating isolinux boot: [100.00% 00:00:01/00:00:01]
Creating final iso: [100.00% 00:01:27/00:01:28]
Restoring Services on the installed system
Created '/media/SAMSUNG/Img/My_USB_Img.iso' (873,461,760 bytes) in 01:46:18
==========================================================================
I also used the same method to create the image on a windows partition on a dual boot system.
Note:
This method does not work with drives formatted as FAT32, the drive has to be native Linux (ext2 ext3) or NTFS
Good luck