Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 1.66 KB

README.md

File metadata and controls

63 lines (42 loc) · 1.66 KB

FUSE

Demonstrate some examples of using FUSE.

FUSE (Filesystem in Userspace) is a simple interface for userspace programs to export a virtual filesystem to the Linux kernel. FUSE also aims to provide a secure method for non privileged users to create and mount their own filesystem implementations.

Install

# show packages for fuse
apt search fuse

# check fuse
modprobe fuse  

Create an ISO

# download a filesystem we can put in an iso
mkdir -p ./download

curl -o ./download/alpine-minirootfs-3.17.3-x86_64.tar.gz https://dl-cdn.alpinelinux.org/alpine/v3.17/releases/x86_64/alpine-minirootfs-3.17.3-x86_64.tar.gz

tar --strip-components=1 --directory=./download/ -xzvf ./download/alpine-minirootfs-3.17.3-x86_64.tar.gz

sudo apt install mkisofs  
mkisofs -o test.iso ./download

fuseiso

# install
sudo apt install fuseiso  

man fuseiso        

# mount
mkdir -p ./mountediso   
fuseiso ./test.iso ./mountediso   

ls mountediso   

mount

# cleanup
fusermount3 -u ./mountediso       

ls mountediso   

mount

Resources

  • Filesystem in Userspace here
  • fuse - configuration and mount options for FUSE file systems here
  • FUSE here
  • koding/awesome-fuse-fs repo here
  • Write a filesystem with FUSE here
  • libfuse/libfuse here
  • Alpine Linux downloads here