09 March 2013

Identify File System of your Linux Machine

1 comment

There are four hot way through which you can identify the File system of your Linux Machine. Lets go through them one by one.

Note: My Linux Machine is Mounted on /dev/sda5

1. Using fsck command

$ sudo fsck -N /dev/sda5
fsck from util-linux 2.20.1
[/sbin/fsck.ext4 (1) -- /] fsck.ext4 /dev/sda5

2. Using file Command

$ sudo file -sL /dev/sda5
/dev/sda5: Linux rev 1.0 ext4 filesystem data, UUID=04c34a8e-1daa-415a-8df4-c5bbf1ae9648 (needs journal recovery) (extents) (large files) (huge files)

3. Using mount command

$ sudo mount | grep -i "^/dev"
/dev/sda5 on / type ext4 (rw,errors=remount-ro)

Note: Above command shows only those line which are starting from /dev.

4. By checking /etc/fstab file

$ sudo tail -4 /etc/fstab
# / was on /dev/sda5 during installation
UUID=04c34a8e-1daa-415a-8df4-c5bbf1ae9648 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=b81848da-b542-42f8-a638-b125dfcb2dbd none swap sw 0 0

Hope you enjoyed the article, if you know different way to identify the file system let me know through your valuable comments :)

If You Liked This Post Please Take a Time To Share This Post

You May Also Like...

1 comment:

  1. Different and helpful blog.Here the author is providing the good information for the people.I like the way of writing.Many resources like internet and best essay writing service are giving the good guidelines for the readers.I will share this link.