Giter Club home page Giter Club logo

Comments (3)

kb100 avatar kb100 commented on June 9, 2024

@stef204 I am the author and maintainer of the usb script. I've never worked with encfs before so would you please post the output of the following commands to help me assess whether this would be easy to add support.

Run each command with usb device plugged but encfs partition not mounted, and then again with encfs partition mounted:

lsblk -spnd
udevadm info --query=property --name=/dev/sdd
udevadm info --query=property --name=/dev/sdd1

where /dev/sdd should be replaced by the usb device containing the encfs partition, and /dev/sdd1 is an encfs partition on said device. Feel free to redact any information you do not wish to share. Currently the script mostly relies on lsblk being able to list the device and classify its type (disk/part/rom/crypt/etc.) and the ID_FS_TYPE attribute in the udev info.

from i3blocks-contrib.

stef204 avatar stef204 commented on June 9, 2024

I was making reference to showing whatever directory is mounted using encfs, just as the script shows mounted partitions e.g. /mnt/shared (/dev/sdaX) on my box is a fat32 partition. Being able to see mounted encfs directories would be an enhancement.

Encfs is different so not sure it can be integrated; as it "is a userspace stackable cryptographic file-system similar to eCryptfs and uses FUSE to mount an encrypted directory onto another directory specified by the user. It does not use a loopback system like some other comparable systems such as TrueCrypt and dm-crypt".

https://github.com/vgough/encfs

I tried to run each commands you suggested, modified to reflect proper parameters but nothing shows up since the directories are mounted using fuse (they are not really partitions so could be outside the scope of "usb script". There might be a way to make these show up in the block though, (They do show up using command df since they are either mounted or not.)

Let me know what other steps you can suggest to help out. Tx.

from i3blocks-contrib.

kb100 avatar kb100 commented on June 9, 2024

I'm closing this issue as out of scope of the usb script. However, what you suggest does seem like it could be a useful script in its own right. You may want to fork my usb script and re-purpose it.

from i3blocks-contrib.

Related Issues (20)

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.