LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how to identify Linux file system type from the output of fdisk command ? (https://www.linuxquestions.org/questions/linux-general-1/how-to-identify-linux-file-system-type-from-the-output-of-fdisk-command-844549/)

sulekha 11-16-2010 03:19 AM

how to identify Linux file system type from the output of fdisk command ?
 
Hi all,

The output of my fdisk command is as follows :-

zodiac@gml-admin:~$ sudo fdisk -l
[sudo] password for zodiac:

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe30ce30c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1958 15727603+ 7 HPFS/NTFS
/dev/sda2 1959 4752 22437838 f W95 Ext'd (LBA)
/dev/sda3 4752 12046 58593280 83 Linux
/dev/sda4 12046 19458 59531264 83 Linux
/dev/sda5 1959 3248 10361893+ 7 HPFS/NTFS
/dev/sda6 4570 4752 1464320 82 Linux swap / Solaris
/dev/sda7 3249 4569 10610901 83 Linux

Partition table entries are not in disk order

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
1 heads, 63 sectors/track, 9922896 cylinders



/dev/sda3 & /dev/sda4 partitions type id is 83, now we know that id 83 means a linux partition,my question is how to
identify the type of Linux partition (i.e ext2,ext3, ext4 etc)


I know about commands df -Th, mount , but these commands show only mounted locations only isn't it ? , so is there is way to find info about non mounted Linux partitions ?

syg00 11-16-2010 03:22 AM

Use "parted -l ..."

sulekha 11-17-2010 11:52 PM

Quote:

Originally Posted by syg00 (Post 4160430)
Use "parted -l ..."


Thanks

eggea 02-03-2012 01:12 PM

cfdisk

H_TeXMeX_H 02-03-2012 01:48 PM

blkid also works.


All times are GMT -5. The time now is 05:01 AM.