LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   fdisk reports odd "Start "and "End" sectors on single partition (https://www.linuxquestions.org/questions/linux-software-2/fdisk-reports-odd-start-and-end-sectors-on-single-partition-588621/)

eponymous 10-01-2007 09:16 AM

fdisk reports odd "Start "and "End" sectors on single partition
 
Hello,

I have a Western Digital 120 GB hard disk which I have put a single parition on using fdisk.

However, when I do a:

Code:

fdisk -u /dev/hdd
I get the following output:

Code:

Disk /dev/hdd: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hdd1              63  234436544  117218241  83  Linux

Why doesn't the hard disk start at sector 0 and end at sector 234441648 (or 234441647 if it counts from 0).

What is all the other space being used for?

Is there any way I can view what is in this extra space?


Thanks in advance.


----------------------------------
Supplemental:

My other hard disk in this system (the one with all the boot, root and swap crap on it) reports the same thing:

Code:

Disk /dev/hdc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hdc1  *          63      80324      40131  83  Linux
/dev/hdc2          80325    1092419      506047+  82  Linux swap / Solaris
/dev/hdc3        1092420  234436544  116672062+  83  Linux

----------------------------------

teckk 10-01-2007 09:49 AM

I believe that the first 63, 0 - 62 is the MBR and fdisk is not counting that on the partition.
http://linuxcommand.org/man_pages/fdisk8.html

eponymous 10-01-2007 11:02 AM

Thanks.


Does anyone have any ideas as to why the "End" of /dev/hdc3 is not at 234441648?

There seems to be 5104 sectors un-accounted for :S

eponymous 10-01-2007 03:41 PM

Supplemental:

It appears that if I run fdisk /dev/hdd (a drive with only one parition on it called /dev/hdd1), I cannot make another partition as fdisk complains about there being no free sectors.

However, using fdisk -u /dev/hdd will allow me to make a small parition that fills up the rest of the drive.

What the hell is going on here?! the "-u" option simply states you want the partition sizes displayed as sectors rather than cylinders!


All times are GMT -5. The time now is 10:46 PM.