Well, I've been thinking about making my own flavor of Puppy lately (Not as different as Puplet, though. More of a practice run before I start Operation: CovertPups (yes, that's plural)), and I was wondering how you make filesystems in a file, like image(un-gzipped). I was also wondering how to make a compressed filesystem like usr_cram.fs. Yes, I know I could use the remastering script to do a bunch of this, but I don't have enough ram, and I'd rather do it this way anyway. This way I can set up a directory on my harddrive and have the full tree in it and won't dissappear when I shut-down, then write a script that will get the size, make the filesystems, and add the files. It would be much faster than running through the remaster script every time I want to test it.
Thanks!
EDIT: Okay, I found the first part. Once I get that sorted out, I'll try to figure out the squash stuff. Then I'll turn this into a howto.
EDIT 2: Did it, done it, done!
To make an ext2 filesystem (like image or pup001) of <X> kilobytes
Code: Select all
dd if=/dev/zero of=/tmp/hdimage bs=1k count=<X>
mke2fs -m 0 -b 1024 /tmp/hdimage
To make a squashfs (like usr_cram.fs) out of a directory (/tmp/usr, in this case)
Code: Select all
mksquashfs /tmp/usr /tmp/usr_cram.fs
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]