LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Discover what filesystem(s) are on a disk/partition? (https://www.linuxquestions.org/questions/linux-general-1/discover-what-filesystem-s-are-on-a-disk-partition-618193/)

humbletech99 02-02-2008 11:55 AM

Discover what filesystem(s) are on a disk/partition?
 
Is there any really good linux program to definitively tell you what filesystem(s) are on a disk/partitions?

When you do mount /dev/sda1, for example, the mount program detects the filesystem type and then mounts the partition as that filesystem so you can use it. I am looking for a program to just run the check of what filesystem it is without mounting the filesystem. I suspect that "mount" does this detection by looking for signatures in the first by bytes of the partition in order to identify it, so there should be some other program that can do this too, right?

EDIT: as I was typing this, I realized that fdisk and parted must be able to do this and they seem to, although I haven't tried them on any random disks yet. If anyone knows of any other good programs for file system detection, could you pls post them here?

Nylex 02-02-2008 11:58 AM

What's wrong with (c)fdisk?

tamoneya 02-02-2008 01:11 PM

if you are looking for a gui you could use qtparted or gparted.

humbletech99 02-02-2008 01:20 PM

I already mentioned fdisk and parted, gparted and qtparted are just front ends for parted...

unSpawn 02-02-2008 01:32 PM

I use disk_stat a lot.
it's on any Live CD that comes with the Sleuth Kit, like HELIX.


All times are GMT -5. The time now is 11:27 AM.