Re: large disk space problem?



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

Relevant Pages

  • Re: Problems with Ext2fs on a CF card.
    ... I use a Compact Flash card to hold an ext2 Linux File System ... to make the kind of file system you want on each partition e.g. ... If you can't fdisk it then something is up. ...
    (comp.os.linux.embedded)
  • Re: reformating and fdisking help
    ... Fdisk will delete any partition you ... >> tell it too no matter what file system is on that partition. ... technical details usually just confuses them. ...
    (microsoft.public.windowsxp.general)
  • Re: Problems with Ext2fs on a CF card.
    ... | I use a Compact Flash card to hold an ext2 Linux File System ... Have you rebooted since fdisk stored the partition table? ...
    (comp.os.linux.embedded)
  • Re: large disk space problem?
    ... whole drive as one partition), fdisk is one tool that you can use. ... looks like the partition was resized but the file system wasn't. ... I was never too good at figuring out fdisk block counts, ... 156288321 blocks times 512 byte blocks times two ...
    (Fedora)
  • Re: reformating and fdisking help
    ... >> The point was that the file system does matter using FDISK. ... > tell it too no matter what file system is on that partition. ...
    (microsoft.public.windowsxp.general)