Giter Site home page Giter Site logo

can't recover file after mount about albumfs HOT 2 OPEN

mgeitz avatar mgeitz commented on July 30, 2024
can't recover file after mount

from albumfs.

Comments (2)

mgeitz avatar mgeitz commented on July 30, 2024

Hey @fact0real - thanks for submitting an issue 🎉

Could you provide a few steps to reproduce?

Are you using more than one .png image in your filesystem?

from albumfs.

fact0real avatar fact0real commented on July 30, 2024

Hey
first of all update the git repo:

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux testing (buster)
Release:	testing
Codename:	buster
$ git pull
Already up to date.
$ make
gcc -Wall -D_FILE_OFFSET_BITS=8 -c afspng.c -o afspng.o
gcc afspng.o albumfs.c -Wall -D_FILE_OFFSET_BITS=8 `pkg-config fuse --cflags --libs` -lpng -lm -lssl -lcrypto -o albumfs
<command-line>:0:0: warning: "_FILE_OFFSET_BITS" redefined
<command-line>:0:0: note: this is the location of the previous definition
rm afspng.o
$ sudo make install
cp albumfs /usr/bin
gzip < albumfs.1 > albumfs.1.gz
mkdir -p /usr/local/share/man/man1
mv albumfs.1.gz /usr/local/share/man/man1/albumfs.1.gz

Then I have provided three png image and use -format option:

$ ls image
./  ../  800px-Dyson_Bubble.png  Auto_Racing_Chequered.png  sample_6.png
$ albumfs -format image/sample_6.png 
Enter drive name:
test
Enter encryption key for test.afs:
1234test


#### New Filesystem ####
Name       : test.afs
PNG Count  : 2
Capacity   : 0.36 MB
Consumed   : 0.00 MB

test.afs mounted.
AlbumFS will continue to run in the foreground.
Use Ctrl+C to safely unmount the filesystem.

In the another tab, create sample small text file and:

$ echo -n 'this is just for test' > test.afs/test.txt
$ md5sum test.afs/test.txt 
f8b57f2ff96a87c2a375f808dc2fc965  test.afs/test.txt

and the return to the previous tab and hit Ctrl + C.

^C
Safely unmounted test.afs, goodbye!

Now when I want to mount the file system:

$ albumfs -mount image/sample_6.png 
Enter drive name:
test
Enter encryption key for test.afs:
1234test

Found filesystem test.afs [19.00/360000.00] 1 files in 2 images

test.afs mounted.
AlbumFS will continue to run in the foreground.
Use Ctrl+C to safely unmount the filesystem.

But the mounted file system have wrong test.txt file, coz:

$ md5sum test.afs/test.txt 
4c71ffba0dc127dec6da13f657a54698  test.afs/test.txt

this is my problem.

from albumfs.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.