LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 10-31-2009, 03:24 AM   #1
kaushalsingh
LQ Newbie
 
Registered: Oct 2009
Posts: 14
Thanked: 0
what all means in fdisk -l


[Log in to get rid of this advertisement]
hi everyone
i'm presently researching on command "fdisk".
and i'm not able to understand that
what does "Units = cylinders of 16065 * 512 = 8225280 bytes" means
i searched a lot on google but didn't got any result.
please help for the given difficulties under
first "Units = cylinders of 16065 * 512 = 8225280 bytes".
second "Disk identifier: 0xecd5ecd5"
third "how to calculate the number of blocks"
finally "why in blocks + is given.. for example 51199123+ why this + sign is given"

please help the command is given under

[root@localhost singh]# fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xecd5ecd5

Device Boot Start End Blocks Id System
/dev/sda1 * 1 6374 51199123+ 7 HPFS/NTFS
/dev/sda2 6375 38912 261361485 f W95 Ext'd (LBA)
/dev/sda5 6375 16573 81923436 7 HPFS/NTFS
/dev/sda6 16574 26772 81923436 7 HPFS/NTFS
/dev/sda7 26773 36971 81923436 7 HPFS/NTFS
/dev/sda8 36972 38912 15591051 83 Linux

Last edited by kaushalsingh; 10-31-2009 at 03:36 AM..
linuxfedora kaushalsingh is offline     Reply With Quote
Old 10-31-2009, 04:37 AM   #2
vijay_babu1981
Member
 
Registered: Nov 2004
Location: india
Distribution: fedora 10
Posts: 59
Thanked: 5
Go through this link http://en.wikipedia.org/wiki/Cylinder-head-sector
to know about physical addressing of hard disk.

Disk identifier is a number assigned to hard disk, like a mac address of your LAN.
windows_xp_2003 vijay_babu1981 is offline     Reply With Quote
Old 10-31-2009, 06:52 AM   #3
kaushalsingh
LQ Newbie
 
Registered: Oct 2009
Posts: 14
Thanked: 0

Original Poster
thanx for replying so soon

i understood "disk identifier" and "how to calculate number of blocks"
but "Units = cylinders of 16065 * 512 = 8225280 bytes" means
and "why in blocks + is given.. for example 51199123+ why this + sign is given"

thanx in advance
please reply soon
windows_xp_2003 kaushalsingh is offline  
Tag This Post
Reply With Quote
Old 10-31-2009, 01:18 PM   #4
pixellany
Moderator
 
Registered: Nov 2005
Location: Pasadena, CA
Distribution: Arch
Posts: 13,165
Thanked: 285
Quote:
Originally Posted by kaushalsingh View Post
please reply soon
As I stated in your other thread: Don't do that. Here at LQ, patience works wonders.....

Have you looked up the definitions of cylinders, blocks, sectors, etc.?

In the default listing format (what you have), the partition boundaries are expressed in cylinders, and size is in 1024K blocks.

"+" means that the partition is larger than the number of block stated. If you work out the number of sectors, then it should become clear.
linux pixellany is offline     Reply With Quote
Old 11-01-2009, 02:08 PM   #5
kaushalsingh
LQ Newbie
 
Registered: Oct 2009
Posts: 14
Thanked: 0

Original Poster
i understood all my answers except one
"Units = cylinders of 16065 * 512 = 8225280 bytes"
what does 16065 in "cylinder of 16065" means
windows_xp_2003 kaushalsingh is offline     Reply With Quote
Old 11-01-2009, 05:47 PM   #6
soleil24
Member
 
Registered: Aug 2005
Location: Wellington NZ
Distribution: SuSE 11.1, Fedora 11
Posts: 38
Thanked: 2
16065 - it's a number, 1 more than 16064, 16063 more than 2

or do you not understand what "cylinders" are? in which case see pixellany's answer
windows_xp_2003 soleil24 is offline     Reply With Quote
Old 11-01-2009, 08:38 PM   #7
pixellany
Moderator
 
Registered: Nov 2005
Location: Pasadena, CA
Distribution: Arch
Posts: 13,165
Thanked: 285
Your fdisk output says you have cylinders defined as 16065 sectors at 512 bytes/sector = 8225280 bytes/cylinder.

Did you look up the definitions as I suggested?
linux pixellany is offline     Reply With Quote
Old 11-02-2009, 08:51 AM   #8
Fred Caro
Member
 
Registered: May 2007
Posts: 274
Thanked: 6
cyl

It means it is the last one. There are two ways of recording your fdisk imprint, either by size or cylinder id. The plus sign generally means it is an extended partition.

Fred.
linuxubuntu Fred Caro is offline     Reply With Quote
Old 11-02-2009, 09:03 AM   #9
pixellany
Moderator
 
Registered: Nov 2005
Location: Pasadena, CA
Distribution: Arch
Posts: 13,165
Thanked: 285
Quote:
Originally Posted by Fred Caro View Post
It means it is the last one. There are two ways of recording your fdisk imprint, either by size or cylinder id. The plus sign generally means it is an extended partition.

Fred.
It means WHAT is the last one?---I can't tell what you are referring to.

I believe my answer on the + sign was correct, but it certainly does not mean an extended partition.
linux pixellany is offline     Reply With Quote
Old 11-02-2009, 03:38 PM   #10
kaushalsingh
LQ Newbie
 
Registered: Oct 2009
Posts: 14
Thanked: 0

Original Poster
Quote:
Originally Posted by pixellany View Post
It means WHAT is the last one?---I can't tell what you are referring to.

I believe my answer on the + sign was correct, but it certainly does not mean an extended partition.
In my laptop i installed Fedora 11 and by pressing the command "fdisk -l" i see that the "+" sign is present in front of extended partition and also in "primary partition"..

I'm not able to understand please make it more clear..
I just need a proper reply.

And in "unit =cylinders of 16065 * 512" , why 16065 is given ..I saw it don't depend on the size of hard disk . In 40gb hard disk also the number 16065 is given. So i want to exactly know why 16065 number is given and how it is calculated . I calculated all the other quantities only this quantity is left so please help .

thank you.
windows_xp_2003 kaushalsingh is offline     Reply With Quote
Old 11-02-2009, 04:17 PM   #11
w1k0
Member
 
Registered: May 2008
Posts: 588
Thanked: 57
Assuming you understand the terms: cylinders, heads, sectors, tracks and blocks that disk:

Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
has:

19457 * 255 * 63 * 512 = 160039272960 bytes

The number 16065 represents 255 heads * 63 sectors per track.

Tip: single cylinder is a set of tracks that lie one above other (the number of such tracks is equal to the number of heads).

If you don't understand the terms mentioned in the first sentence it is high time to read this.
linuxslackware w1k0 is offline     Reply With Quote
Old 11-02-2009, 04:49 PM   #12
pixellany
Moderator
 
Registered: Nov 2005
Location: Pasadena, CA
Distribution: Arch
Posts: 13,165
Thanked: 285
Here is my fdisk -l:
Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8a258a25

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          64      514048+  83  Linux
/dev/sda2              65        1976    15358140   83  Linux
/dev/sda3            1977        2486     4096575   82  Linux swap / Solaris
/dev/sda4            2487       19457   136319557+   5  Extended
/dev/sda5            2487        3761    10241406   83  Linux
/dev/sda6            3762        4977     9767488+  83  Linux
/dev/sda7            4978       19457   116310568+  83  Linux
You'll note that there are 4 partition with a "+"

Start with the second one: 1912 cylinders * 8225280 / 1024 = 15358140 blocks.

To rationalize the first one, we need to recognize that there are 63 sectors (32256 bytes) that are not used for partitions.
So (64 cylinders * 8225280 )-32256)/1024 = 514048.5 (there's the reason for the first "+" sign)

To reconcile the logical partitions note that each one has a 63 sector dead space at the front--just as the whole disk does.

As for the 16065, I think you will find that this can be changed. Look at the references already given and at the man page for fdisk.
linux pixellany is offline     Reply With Quote
Old 11-02-2009, 04:56 PM   #13
pixellany
Moderator
 
Registered: Nov 2005
Location: Pasadena, CA
Distribution: Arch
Posts: 13,165
Thanked: 285
PS: some of this is historical legacy and you may never get a totally satisfying answer.
linux pixellany is offline     Reply With Quote
Thanked by:
Old 11-03-2009, 02:20 AM   #14
kaushalsingh
LQ Newbie
 
Registered: Oct 2009
Posts: 14
Thanked: 0

Original Poster
Wink

Quote:
Originally Posted by pixellany View Post
PS: some of this is historical legacy and you may never get a totally satisfying answer.
thanx
for the reply this reply was really effective . Now all my doughts of the command "fdisk -l" is clear.

thanx again
windows_xp_2003 kaushalsingh is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacing fdisk with gnu fdisk in busybox? Alkisx Slackware 5 10-23-2009 12:51 PM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
Do know what this means? as400 Solaris / OpenSolaris 1 04-04-2007 03:57 PM
Anybody know what this means ?? raffigee Linux - Newbie 9 02-18-2006 12:33 AM
Can someone please tell me what this means... :) xbill311x Linux - Newbie 7 05-11-2005 07:37 AM


All times are GMT -5. The time now is 07:06 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration