bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Incorrect partition size reported for all but first partition


From: Shriramana Sharma
Subject: Incorrect partition size reported for all but first partition
Date: Thu, 24 May 2007 09:49:15 +0530
User-agent: Thunderbird 1.5.0.10 (X11/20070306)

Sent 2007-March-17 but received no reply so resending:

I attach two parted session transcripts. Please observe the sizes of the
partitions and how they are related to the start cylinder and end
cylinder numbers.

In all entries but the first entry, the size is correctly depicted as:

size = (end cylinder number) - (start cylinder number) + 1

but for the first entry (partition) alone the size is shown as:

size = (end cylinder number) - (start cylinder number)

This is a bug, right? If yes, please fix it. If no, please explain it.

Shriramana Sharma.
(parted) select /dev/sda
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit cyl
(parted) print

Disk /dev/sda: 9729cyl
Sector size (logical/physical): 512B/512B
BIOS cylinder,head,sector geometry: 9729,255,63.  Each cylinder is 8225kB.
Partition Table: msdos

Number  Start    End      Size     Type      File system  Flags
 1      0cyl     130cyl   130cyl   primary   linux-swap
 2      131cyl   6204cyl  6074cyl  primary   ext3
 3      6205cyl  7509cyl  1305cyl  primary   ext3
 4      7510cyl  9728cyl  2219cyl  extended
 5      7510cyl  8162cyl  652cyl   logical   ext3
 6      8163cyl  8684cyl  521cyl   logical   ext3
 7      8685cyl  9206cyl  521cyl   logical   ext3
 8      9207cyl  9728cyl  521cyl   logical   ext3

GNU Parted 1.8.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit cyl
(parted) print
Model: ATA ST3250823AS (scsi)
Disk /dev/sda: 30401cyl
Sector size (logical/physical): 512B/512B
BIOS cylinder,head,sector geometry: 30401,255,63.  Each cylinder is 8225kB.
Partition Table: msdos

Number  Start     End       Size      Type      File system  Flags
 1      0cyl      2609cyl   2609cyl   primary   fat32        boot, lba
 2      2610cyl   23882cyl  21273cyl  extended               lba
 5      2610cyl   3914cyl   1304cyl   logical   ext3
 6      3915cyl   4175cyl   260cyl    logical   linux-swap
 7      4176cyl   8221cyl   4045cyl   logical   ext3
 8      8222cyl   9526cyl   1304cyl   logical   ext3
 9      9527cyl   14747cyl  5220cyl   logical   ext3
10      14748cyl  16052cyl  1304cyl   logical   ext3
11      16053cyl  18662cyl  2609cyl   logical   ext3
12      18663cyl  19967cyl  1304cyl   logical   ext3         boot
13      19968cyl  22577cyl  2609cyl   logical   ext3
14      22578cyl  23882cyl  1304cyl   logical   ext3         boot
 3      23883cyl  26686cyl  2804cyl   primary   ext3
 4      26687cyl  30400cyl  3714cyl   primary   fat32        lba


reply via email to

[Prev in Thread] Current Thread [Next in Thread]