Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I am trying to troubleshoot why Ubuntu won't save my settings. Is there a way to find out what filesystem my partitions are using?

share|improve this question
Try sudo blkid -o list > ~/myFileSytems on a terminal to found out. Then open the file myFileSystems with a text editor (the file should be in your home folder). But I consider that is not your main issue, you might want to provide more info in your question. –  edwin Jun 17 '13 at 1:44
I'm curious why on earth a filesystem would affect the persistence of your settings. –  mlissner Nov 7 '14 at 1:43

5 Answers 5

There are a number of ways to do this, from the command line (Ctrl+Alt+t),

The command df -T will print your filesystem types, as below:

~$ df -T
Filesystem     Type      1K-blocks       Used Available Use% Mounted on
/dev/sda1      ext4      190230236  102672812  77894244  57% /
udev           devtmpfs    1021128         12   1021116   1% /dev
tmpfs          tmpfs        412884        816    412068   1% /run
none           tmpfs          5120          0      5120   0% /run/lock
none           tmpfs       1032208       2584   1029624   1% /run/shm
cgroup         tmpfs       1032208          0   1032208   0% /sys/fs/cgroup
/dev/sdb1      fuseblk  1953480700 1141530424 811950276  59% /home/maggotbrain/storage

This article sums up nicely several other methods of obtaining this information.

Here are a couple of other examples that I use occasionally:

~$ mount | grep "^/dev"
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
/dev/sdb1 on /home/maggotbrain/storage type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

~$ sudo file -sL /dev/sda1
/dev/sda1: Linux rev 1.0 ext4 filesystem data, UUID=b53ecdf7-5247-4d65-91a6-be9264c84dea (extents) (large files) (huge files)
share|improve this answer
only works for mounted drives –  Sanjay Manohar Sep 5 '14 at 13:24
Note that with $ df -T filesystem called fuseblk means NTFS but $ sudo lsblk -f actually shows ntfs. –  Mike Jul 24 at 15:30
The last one (sudo file -sL /dev/sda1) is exactly what I needed - you should put that one first. –  AJMansfield 13 hours ago

You can also use the lsblk command like this:

$ sudo lsblk -f

├─sda1      ntfs   OS         
├─sda2      ntfs   Data       
├─sda5      ext4              /
└─sda6      swap              [SWAP]
share|improve this answer

A simple and good command

sudo blkid

It will list something like this:

/dev/sda1: LABEL="Windows" UUID="FA50DCB150DC763B" TYPE="ntfs" 
/dev/sda5: LABEL="40GBTWO" UUID="00A0CE7EA0CE7A24" TYPE="ntfs" 
/dev/sda6: UUID="7550252c-3da7-4cd9-8da3-71e9ba38e74a" TYPE="ext4" 
/dev/sda7: UUID="088fd084-a011-4896-aa93-c0caaad60620" TYPE="swap"

Where /dev/sda1 is the partition, LABEL is the given name to the partition, UUID is the Unique ID of the partiton which is quite useful to mount the hardisk using /etc/fstab, and TYPE is the file system.

I often use this command to get almost all the information about my hard drive and removal drive. Hope you too like it. :)

share|improve this answer
+1, good solution. Note that blkid does not need to be run as root. Also, you can give a specific partition as an argument to blkid and get info for just that partition, a la blkid /dev/sda1. –  AJMansfield 13 hours ago

In the Dash type Disk and open the disk utility application, which is called either Disk Utility in Ubuntu 12.04 and Ubuntu 12.10, or in Ubuntu 13.04, 13.10, 14.04 and onward it is called Disks.

In the picture below you see the Disk Utility window with the 120 GB Hard Disk selected to display information about that disk. In the center pane in the Volumes section you can see that the first partition on that hard disk has been selected to display information about that partition. In the Volumes section you can also see the description Type: Ext4 which means that the partition is formatted as Ext4 which is the default Ubuntu filesystem format.

enter image description here

share|improve this answer
+0 Nice that there is a GUI way of doing this, but anyone who really cares what filesystem they are using (or even knows what a "filesystem" is) is probably looking for a command line solution. –  AJMansfield 13 hours ago

Try this in terminal:

sudo fdisk -l

Simply copy & paste the command into your terminal.

If I understand you correctly, this should show your drives.

share|improve this answer
fdisk -l doesn't show the filesystem –  Gerald Schneider Jun 17 '13 at 7:19
My fdisk (2.20.1 on Ubuntu 14.04) shows the FS, albeit not very specifically. "Linux" instead of ext4, etc. –  Matthew Read Jun 12 at 14:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.