container file system advice

Technical issues/questions of an intermediate or advanced nature.
Post Reply
rych
Black ninja
Black ninja
Posts: 96
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 2.1 32-bit
Location: NZ

container file system advice

Post#1 by rych » 10 Jan 2018, 00:16

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".

User avatar
Ed_P
Contributor
Contributor
Posts: 3822
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

container file system advice

Post#2 by Ed_P » 10 Jan 2018, 00:48

Why? :%) I save files I download and backup directly to my NTFS file systems.
Ed

rych
Black ninja
Black ninja
Posts: 96
Joined: 04 Jan 2014, 04:27
Distribution: Porteus 2.1 32-bit
Location: NZ

container file system advice

Post#3 by rych » 10 Jan 2018, 06:05

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.

User avatar
Ed_P
Contributor
Contributor
Posts: 3822
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

container file system advice

Post#4 by Ed_P » 10 Jan 2018, 06:14

Oh. Ok. :happy62:
Ed

User avatar
wread
Module Guard
Module Guard
Posts: 1152
Joined: 09 Jan 2011, 18:48
Distribution: Porteus v4.0-kde-64 bits
Location: Santo Domingo
Contact:

container file system advice

Post#5 by wread » 10 Jan 2018, 22:39

@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!
Porteus is proud of the FASTEST KDE ever made.....(take akonadi, nepomuk and soprano out and you will have a decent OS).
The Porteus Community never sleeps!

User avatar
brokenman
Site Admin
Site Admin
Posts: 5815
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

container file system advice

Post#6 by brokenman » 13 Jan 2018, 12:10

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.
How do i become super user?
Wear your underpants on the outside and put on a cape.

tome
Contributor
Contributor
Posts: 588
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

container file system advice

Post#7 by tome » 13 Jan 2018, 19:03

Some advices to create quickly large file, maybe on NTFS also: https://stackoverflow.com/questions/257 ... nux-system

Post Reply