Page 1 of 1

container file system advice

Posted: 10 Jan 2018, 00:16
by rych
How do I go about creating my own container image file, similar in spirit to porteus save.dat I guess, that I can mount and unmount and work with like a file system. I'd appreciate a guidance into the search results I'm getting: Docker, overlay fs, overlay2, aufs, etc. or simply doing what's described here: https://unix.stackexchange.com/question ... -container

The image file could be quite large and will be living permanently on a host Windows NTFS disk. As I boot into porteus, I'd mount it and use a normal linux file system to save arbitrary data, not the porteus "changes".

container file system advice

Posted: 10 Jan 2018, 00:48
by Ed_P
Why? :%) I save files I download and backup directly to my NTFS file systems.

container file system advice

Posted: 10 Jan 2018, 06:05
by rych
same reasons that justify save.dat I guess: symbolic links, linux permissions -- all features of an ext4 file system encapsulated in an NTFS file. Plus, I'm going to leave it on the host between sessions: content hidden from Windows search, perhaps even encrypted.

container file system advice

Posted: 10 Jan 2018, 06:14
by Ed_P
Oh. Ok. :happy62:

container file system advice

Posted: 10 Jan 2018, 22:39
by wread
@rych
I do not have a changes file. I make a module of my changes every time I build or install a new application.

Then I put them all together in a folder named Settings, contained in modules. Then I have:
myDolphin.xzm
myDTSettings.xzm (desktop settings)
myKBSettings.xzm (keyboard settings)
myKDEConnect.xzm (cellphone control)
myKingSoftSettings.xzm (office programs settings)
myKPatSettings.xzm (solitarie game settings)
myLocalTime.xzm (local time and zone settings)
myLoginSound.xzm (login sound setting)
myMCSettings.xm(midnight commander settings)
myPDFEditorSettings.xzm
myRcLocalSettings.xzm
myRVSettings.xzm (network access settings)
myWiFiSettings.xzm

It is not straight forward to build such modules. You must hack a little bit, but they load faster than the changes or the rootcopy folder. And ... I use porteus as root....

Geschmack Sache, sagte der Affe! (It is a matter of taste, said the monkey!)

Cheers!

container file system advice

Posted: 13 Jan 2018, 12:10
by brokenman
You can create an image file like so:

Code: Select all

dd if=/dev/zero of=/tmp/myimage.dat bs=1024 count=10000
mkfs.ext4 /tmp/myimage.dat
This will create a 10MB image.

container file system advice

Posted: 13 Jan 2018, 19:03
by tome
Some advices to create quickly large file, maybe on NTFS also: https://stackoverflow.com/questions/257 ... nux-system