PDA

View Full Version : Life Virtual Disk Image



sea
21st February 2013, 05:48 PM
Ever wanted a local storage container which wont be listed using a partition tool?
Have some files which you dont want to be found too easy by a root account?

I had written a script, as part of script tools, to create a file which holds its own filesystem, and can be mounted as needed.
As long it fits on your partitions/disks, it can have any size you want.

If you feel funny and lucky, you might try to use it to partition the disk,
but i dont suggest doing so, as you could loose all your data!

To run the script properly, you will need to install script-tools.
Or do the modifications on the shared script on your own.

How it works
To prepare a file container, one can simply use dd like:

dd if=/dev/random of=/path/to/file bs=1M count=$SIZE_wanted

To make it a file system:

mkfs.ext4 /path/to/file

Then all you have to do, is mount it:

mount /path/to/file /path/to/mountpoint

Thats all :)

The script does not much more than this, it looks a bit nicer, and creates a scriptfile in ~/bin to mount it.

Additionaly, i share the 'handler' script for the created file: mySafe [on|off]
All you need to do is to edit mySafe to apply the data from the ~/bin/mnt-$fstype-$size script.

Hope this helps



See the script in action:
www.youtube.com/watch?v=F8yI6Igb6tY

Install script-tools:
http://sea.hostingsociety.com/?p=Script-Tools&stc=Installation#repo
http://sea.hostingsociety.com/?p=Scripts&stc=install-script-tools

Ihatewindows
21st February 2013, 06:01 PM
You can also do that with some disk images and archives manually via Caja/Nautilus.