Re: 2.3.99pre9 shows wrong partition size?

From: Andries Brouwer (aeb@veritas.com)
Date: Fri Jun 02 2000 - 17:16:50 EDT

  • Next message: Rask Ingemann Lambertsen: "Re: [PATCH] eepro100 device name <-> pci bus/slot/func mapping"

    On Fri, Jun 02, 2000 at 09:24:56PM +0200, Felix von Leitner wrote:

    > I just bought two 60 Gig Maxtor drives and plugged them into my system.
    > I ran fdisk on them and created one large partition on each.
    > I created a reiserfs on one of them and df showed, to my dismay:
    >
    > Filesystem 1k-blocks Used Available Use% Mounted on
    > /dev/hdc1 26576588 20 25226556 0% /mnt
    > /dev/hdd1 26999428 2603008 24396420 10% /fat
    >
    > Am I misreading this or is the partition not even half the size of the
    > partition?
    >
    > $ fdisk -s /dev/hdd
    > 60030432
    > $
    >
    > Mhhhhh. Any ideas?
    > hdc1 is ext2, hdd1 is reiserfs, so this is clearly not a file system
    > issue.

    Read "14.3 Nonproblem: fdisk sees much more room than df?"
    in the Large Disk HOWTO
      http://www.win.tue.nl/~aeb/linux/Large-Disk-14.html#ss14.3
    and see whether you are satisfied afterwards.
    Otherwise check fdisk -l and/or fdisk -s /dev/hdc1 output.

    Below a 35 GB example.
    # df
    ...
    /dev/hde4 822216 685020 95428 88% /b1
    /dev/hde5 27707420 22096088 4181148 84% /b2
    # fdisk -s /dev/hde
    35673120
    # fdisk -s /dev/hde5
    28603701
    # tune2fs -l /dev/hde5 | grep size:
    Block size: 4096
    ...
    # tune2fs -l /dev/hde5 | grep count:
    Inode count: 7155168
    Block count: 7150925
    Reserved block count: 357546
    ...

    With ext2, make sure you use sparse superblocks and blocksize 4096.

    Andries

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Fri Jun 02 2000 - 19:22:53 EDT