How do I find out what filesystem FUSE is using?

when I run mount, I can see my hard drive mount as fuseblk.

/dev/sdb1 on /media/ecarroll/hd type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)

However, fuseblk doesn’t tell me what filesystem is on my device. I found it using gparted but I want to know how to find the fs using the command line utilities.

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

I found the answer provided by in the comments by Don Crissti to be the best

lsblk -no name,fstype

This shows me exactly what I want and I don’t have to unmount the device,

mmcblk0     
└─mmcblk0p1 exfat

See also,

Method 2

In general, it is not possible to go from a FUSE mount point to the process implementing it.

If you know something about how that filesystem works, then it might be possible. You have to track the device side, not the mount point. For example, in your case, the FUSE filesystem is exposing a filesystem on a block device, so you can look for processes that have the blockd device open: lsof /dev/sdb1 or fuser /dev/sdb1. Similarly, with SSHFS, you can use lsof or netstat to look for a process that has a connection to the right server, etc. This gives you a process ID, and ps can then tell you what program that process is running.

Method 3

You can find the fs of /dev/sdb1 through :

fsck command:

fsck -N /dev/sdb1

mount command:

mount | grep /dev/sdb1

file command:

file -sL /dev/sdb1

df command:

df -T | grep /dev/sdb1

Method 4

A generic way to query backing filesystem for any given file is to do

lsblk -no name,fstype,mountpoint "$(findmnt --target "$FILE" -no SOURCE)"

The output will look something like

sdd1 exfat  /media/USER/CARD-A123

where sdd1 is the device name, exfat is the underlying filesystem type (e.g. mount will show just fuseblk for both NFTS and exFat and this will show the real filesystem) and the rest of the output is the mount point for this filesystem.

If you get error such as

lsblk: : not a block device

the $FILE didn’t point to readable file or directory.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x