Re: large disk space problem?

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

 



Tim wrote:
> zhu blue:
>>>> Disk /dev/sdb: 160.0 GB, 160041885696 bytes
>>>> 255 heads, 63 sectors/track, 19457 cylinders
>>>> Units = cylinders of 16065 * 512 = 8225280 bytes
>>>> Disk identifier: 0xe2c5e2d5
>>>>
>>>>    Device Boot      Start         End      Blocks   Id  System
>>>> /dev/sdb1               1       19457   156288321   83  Linux
> 
> Tim:
>>> To make use of a drive, you partition it (even if that means using the
>>> whole drive as one partition), fdisk is one tool that you can use.  A
>>> quick glance at the above looks like you've done that okay.
> 
> Mikkel L. Ellertson:
>> It looks like the drive is already one big partition with an ext3
>> file system on it, but it is only shown as being 9.2G. It almost
>> looks like the partition was resized but the file system wasn't. If
>> it didn't already have 5.3G of data on it, it would be tempting to
>> delete and recreate the file system.
> 
> I was never too good at figuring out fdisk block counts, but I thought:
> 
> 156288321 blocks times 512 byte blocks times two (to make it kilobytes)
                                         divided by 2
> gave 160,039,240,704 kilobytes (approx 160 GB).
> 
> How is it supposed to be worked out?
> 
You are assuming a block size of 512. You would get a better size
estimate by taking the number of cylinders (end + 1 - start) times
the bytes/cylinder. Then again, the fdisk man page says it does not
work well with large disks, and recommends using parted instead.

The partition is approx 160 GB, but from the output of df, the file
system is only 9.2 GB. So the file system is only a fraction of the
size of the partition. Unless there is a bug in df so that it is
mis-reporting the size of the file system, then the file system does
not fill the partition.

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux