In an effort to trick archivemount into losing data, I created an archive in a format that libarchive has only read support for. The operations failed immediately with a “Read-only filesystem” message. I mounted a tar.gz archive to which I had only read access and attempted to create new files and write to existing ones. Things are not quite as grim as they sound though. The archivemount documentation warns that if there is an error writing changes to an archive during unmount then archivemount cannot be blamed for a loss of data. This can lead to a situation where the FUSE filesystem might run into an error in some processing but not have a good place to report that error. When you unmount a FUSE filesystem, the unmount command can return before the FUSE filesystem has fully exited. rw-rw-r- ben/ben 29 21:12 archivetest/new-file1 rw-r-r- root/root 29 21:04 archivetest/subA/foobar rw-r-r- root/root 29 21:04 archivetest/datefile1ĭrwxr-xr-x root/root 0 21:04 archivetest/subA/ rw-r-r- root/root 29 21:04 archivetest/datefile2 Setup is shown below:ĭrwxr-xr-x root/root 0 21:04 archivetest/ It makes sense to have the archivemount command owned by this group as a reminder to users that they require that permission in order to use the tool. A common setup on Linux distributions is to have a fuse group that a user must be a member of in order to mount a FUSE filesystem. To install archivemount, copy its binary into /usr/local/bin and set permissions appropriately. With libarchive installed, either from source or from packages, simply invoke make to build archivemount itself. configure make sudo make install process. Once you have uudecode, you can build libarchive using the standard. To compile libarchive you need to have uudecode installed my version came with the sharutils package on Fedora 8. Packages of libarchive exist for Ubuntu Gutsy and openSUSE for not for Fedora. Its distribution includes a single source file and a Makefile.Īrchivemount depends on libarchive for the heavy lifting. I couldn’t find any packages that let you easily install archivemount for mainstream distributions. Going one step further, because archivemount also supports write access for some archive formats, you can edit a text file directly from inside an archive too. This lets you use your favourite text editor, image viewer, or music player on files that are still inside an archive file. Because FUSE exposes its filesystems through the Linux kernel, you can use any application to load and save files directly into such mounted archives. The archivemount FUSE filesystem lets you mount a possibly compressed tarball as a filesystem.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |