3

How can I tell what file system an external hard drive has using Debian?

I have opened it via the GUI, but there is nothing listed for 'filesystem type'

no filesystem

2
  • 2
    Use gparted. Commented Nov 23, 2018 at 19:29
  • You can use mount command Commented Nov 23, 2018 at 19:37

3 Answers 3

3

The best option I have seen is lsblk's file system option:

lsblk -f 

This will print out all block devices (mounted or not) and their file system's.

0

findmnt -o source,fstype

cat /proc/mounts

blkid

1
  • What is the difference between cat /proc/mounts and mount command? Commented Nov 23, 2018 at 20:12
0

Unsure why I am being downvoted, but I was able to find the information using:

fdisk -l, which returns:

Device Boot Start End Sectors Size Id Type /dev/sdb1 2048 1953521663 1953519616 931.5G 7 HPFS/NTFS/exFAT 
1
  • 1
    This command shows the partition type, not the filesystem on it. Commented Nov 24, 2018 at 17:15

You must log in to answer this question.