Menu

tutorial

Peter

Tutorial
http://peter.kingofcoders.com/?p=1399

How to run ?
PFSBuilder support GUI mode and command-line mode

Run in command line
you can add some command line parameters when execute PFSBuilder, if want to generate a PFS image from directory dir1 and a project file (which record all the file permissions, owner), you can execute PFSBuilder like this:

java -jar PFSBuilder.jar -projectFile=project.ini -directory=dir1 -output=harddisk -

partitionName="peter file system 90MB" -partitionSize=94371840 -partitionOffset=10485760 -blocksize=4096

The above will generate a output image, called "harddisk" using the directory "dir1" with the project file "project.ini". The project.ini is used to store the permission of each file and directory, those permissions will be used as the permissions in peter file system. All the files and directories in "dir1" will compress into a single image called "harddisk".

Command line parameter summary:

usage : java -jar PFSBuiler.jar <paramters>
parameters : 
-c Compress
-x Extract
-projectfile=<file>
-inputdirectory=<inpput directory>
-outputdirectory=<output directory>
-output=<file>
-input=<file>
-partitionsize=<partition size>
-partitionsize=C,H,S
-partitionoffset=<partition offset>
-partitionoffset=C,H,S
-blocksize=<file system block size>
-partitionname=<partition name>
-buffersize=<buffer size>
-trimTo=<size>
-trimTo=c,h,s
-stop
-gui

You need either -c or -x option
Run in GUI
If you want to run PFSBuilder with a graphical interface, please add -gui parameter.


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.