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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux