Automatic creation and formating of HOME partition
Hi,
I'm a big fan of the NSLU2-Linux project so I've been doing some developments for this platform for the last three years. In order for the end users to test my applications, I initially created an USB image with everything bundled into it. Then, they only had to download the image and decompress (dd) it into an USB pendrive with capacity equal or greater than 4 GB. The fact is that this has brought me lots of problems in the practice since my Web server hardly accepts long file transfers. Moreover, flash spaces beyond 4GB are wasted.
As result, I'm now considering a different approach but I'll need some help as I don't know how to do it. Well, I've thought that I could maybe create an USB disk image only with the root file system partition. Then, the first time a script runs, it creates a home partition and formats it into the rest of the space available in the pendrive.
There is maybe some command-line alternative to fdisk without having the user to interact during the format process... ??
Any fresh idea is welcome !!
Thanks in advance.
Daniel.
|