1

Topic: Strange usage values from gparted!

Hi people.

This is not really gparted's fault, but because gparted is reporting
incorrect values, I still think this is of value. Also, I hope some of
the knowledgeable people here can help me out:

A 5GB disk started failing and before (I hoped) disaster, I did a 'dd'
of each partition to a new (larger) disk. It went fairly well, but after
doing it I find strange results:

1)  df reports the original sizes:

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1              2270080   1857408    295496  87% /
/dev/hda3              2365300    352328   1890880  16% /usr/local

2.27 + 2.36 + a swap partition is the original 5 GB drive. On this
one, there is 10 GB available, and the first partition is 4 GB (not 2.27).

2) fdisk reports correctly:

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         479     3846260   83  Linux
/dev/hda2             488         498       88357+  82  Linux swap
/dev/hda3             499        1245     6000277+  83  Linux

3) parted also reports correctly:

Minor    Start       End     Type      Filesystem  Flags
1          0.031   3756.144  primary   ext3        boot
2       3820.144   3906.430  primary   linux-swap
3       3906.431   9766.076  primary   ext3

4) gparted reports the above (parted's) partitions, but seems to
_scale_ the usage of 'df' and reports:

3.27 GB used of 3.67 GB on hda1
3.80 GB used of 5.72 GB on hda3

This simple can't be - 3.27 + 3.80 is larger than the original disk
where I copied from!

What did I do wrong, and can I fix this? and why is gparted reporting
these values?

Thanks in advance!

Johncc

2

Re: Strange usage values from gparted!

could you please speciy the GParted version you are using ? Is it the last stable version ?

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

3

Re: Strange usage values from gparted!

It's the last version I found a Slackware package for:

GNU Parted 1.6.21

I'm now compiling 1.8.2.

4

Re: Strange usage values from gparted!

Ok... Just installed 1.8.2. Strangely, it missed the libparted libraries it installed itself.
After a ldconfig it _did_ start (should the make install do that?)

Anything I do, I now get:

(parted) print /dev/hda1                                                 
Error: Unable to open /dev/hda - unrecognised disk label.

John

5

Re: Strange usage values from gparted!

John, you tell me about parted verison, but i ask you the GParted version.
GParted uses parted, ext2fs, ntfsprogs, and some other softs ...
What i need is the version of GParted.
After you launch GParted go to 'help' menu, and then see the version number.

thx smile

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

6

Re: Strange usage values from gparted!

Sorry.
GParted reports version 0.2.5. It seems to be linked to the 1.7.1 libs, as it still reports 1.7.1
after installing 1.8.2.

John

7

Re: Strange usage values from gparted!

Ok. so i hade better use the last official version, which is 0.3.3, with many bugs fixed ! ....

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

8

Re: Strange usage values from gparted!

Thanks LarryT.

Trying to resolve the dependencies and compile the new version.

Apart from the problems with gparted - do you have any idea how I can resolve the sizing problem
itself? (The fact that by 'dd'-ing the system thinks that the partition is smaller than its actual
reserved size)

John

9

Re: Strange usage values from gparted!

So far i know (but i must admit i know very few things), dd can be used with identical drives. So you problem may come from this point.

Larry
GParted-project Admin
Former GParted-LiveCD maintainer (2007)

10

Re: Strange usage values from gparted!

I think this may be a problem with parted or the kernel-- I use parted (not with the gparted front end) from the command line, and I have the same problem after resizing. In this case, /dev/hdc5 is the issue.

A bunch of tools (see below), including e2fsck, show 8 GB on hdc5. However, df reports hdc5 only has 5GB, and linux tells me hdc5 is out of space after I use up 136552 Kbytes.

Here are examples of the outputs giving the sizes.

fdisk -l shows:
# fdisk -l /dev/hdc

Disk /dev/hdc: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1         892     7164958+   c  W95 FAT32 (LBA)
/dev/hdc3             893        3738    22860495    f  W95 Ext'd (LBA)
/dev/hdc5             893        1912     8193118+  83  Linux
/dev/hdc6            1913        3738    14667313+  83  Linux

df shows the ORIGINAL size of about 5GB, not the new 8GB size.
# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hdc5              5233940   4831516    136552  98% /
tmpfs                   128016         0    128016   0% /dev/shm
/dev/hdc6             13409184   3764784   8963248  30% /home

parted shows
# parted /dev/hdc print
Disk geometry for /dev/hdc: 0.000-29325.515 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031   6997.060  primary   fat32       boot, lba
3       6997.061  29321.762  extended              lba
5       6997.091  14998.183  logical   ext3       
6      14998.214  29321.762  logical   ext3       
Information: Don't forget to update /etc/fstab, if necessary.             


Versions:
# parted --version
GNU Parted 1.6.21 with HFS shrink patch 16
falcon:~# df --version
df (coreutils) 5.2.1
Written by Torbjorn Granlund, David MacKenzie, and Paul Eggert.

Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

# uname -a
Linux falcon 2.4.27-2-386 #1 Wed Aug 17 09:33:35 UTC 2005 i686 GNU/Linux

(That's Debian Sarge).