[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix printing of large device sizes
From: |
Szakacsits Szabolcs |
Subject: |
Re: [PATCH] Fix printing of large device sizes |
Date: |
Wed, 13 Oct 2004 12:29:39 +0200 (MEST) |
> > If you have a partition of over a terabyte, parted doesn't print the
> > size correctly.
Parted basically never printed any sizes correctly. E.g. start of
partitions in bytes:
% parted /dev/sda print | awk '/^[[:digit:]]/{printf("%16.3f\n",$2*1048576)}'
32505.856 <--- 32505 bytes and 6.848 bits :-))
3150281965.568
8398010580.992
29372474982.400
29372507488.256
31469953089.536
% sfdisk -d /dev/sda | awk '/start/{printf("%16.3f\n",$4*512)}'
32256.000
3150282240.000
8398010880.000
29372474880.000
29372507136.000
31469953536.000
Parted values are sometimes more, sometimes less than the real values.
Balazs Scheidler sent a patch over a year ago to make parted work with
geometries specified in sectors,
http://lists.gnu.org/archive/html/bug-parted/2003-05/msg00046.html
Szaka