[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: incorrect fs size
On Fri, 24 May 2002, Monton, Nick wrote:
>
> I have installed a 70gb SEAGATE ST173404LW drive ( /dev/sda )
> created a partition ( /dev/sda1 )
> made a file system ( xfs )
> and mounted the drive.
> the partition is about 69gb however I can only see 135mb.
>
> kernel: linux-2.4.17-xfs-smp
> platform: i386
> xfs patch: xfs-2.4.17-all-i386
And your xfsprogs is version 2.0+, right?
> if I create an ext2 file system however, I can see the full capacity.
>
> any suggestions?
Yes, get the cmd_rpms from the "for-pre-2.4.18" directory on oss,
i.e. versions < 2.0. BLKGETSIZE64 was broken in Linus' 2.4.17 (and previous)
kernels, and it would report the wrong device size.
if you need to stick with 2.4.17, it's a one-liner patch to fix
BLKGETSIZE64.
-Eric