LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-16-2010, 03:19 AM   #1
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Rep: Reputation: 36
Question 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 ?

Last edited by sulekha; 11-16-2010 at 03:20 AM.
 
Old 11-16-2010, 03:22 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
Use "parted -l ..."
 
1 members found this post helpful.
Old 11-17-2010, 11:52 PM   #3
sulekha
Member
 
Registered: Dec 2004
Location: India
Distribution: ubuntu 10.04 , centos 5.5 , Debian lenny, Freenas
Posts: 324

Original Poster
Rep: Reputation: 36
Thumbs up

Quote:
Originally Posted by syg00 View Post
Use "parted -l ..."

Thanks
 
Old 02-03-2012, 01:12 PM   #4
eggea
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
Thumbs up

cfdisk
 
Old 02-03-2012, 01:48 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
blkid also works.
 
  


Reply

Tags
partition, type id


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what command will identify which dev file my device was assigned kevmcool Linux - Newbie 3 02-02-2010 06:54 AM
What type of file system can windows xp and linux both write to? The reason why is b sent17inel Linux - Hardware 7 02-13-2007 07:58 AM
System Command To Output CPU Type and RAM stranger_6_7 Linux - General 5 02-07-2007 03:08 AM
Identify file system MikeyCarter Linux - Software 1 12-03-2006 03:19 PM
fdisk and mount dont agree on file system type (fat32 vs. ntfs) schneidz Linux - Software 4 07-20-2006 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration