Author Topic: Used + Available 1k Blocks Don't Equal Total  (Read 3445 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Used + Available 1k Blocks Don't Equal Total
« on: July 16, 2007, 03:15:27 pm »
I've just noticed this. When I run df, the number of Used and Available 1k blocks doesn't equal the Total number reported for ext3 formatted CF cards. For vfat cards it matches exactly. For ext3 cards the difference exceeds 400 meg for an 8 gig card - huge difference.

I've split the card into three partitions, one ext3, one swap, and one non-mkfs-ed. Does this have any effect?

And why the difference? Is this normal?
« Last Edit: July 16, 2007, 03:16:27 pm by ShiroiKuma »
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Used + Available 1k Blocks Don't Equal Total
« Reply #1 on: July 16, 2007, 05:17:39 pm »
Ext filesystems reserve blocks for the super user (5% by default), so that may account for the blocks. Also, there are a few other blocks that are backup blocks or something.

I may have something wrong, but I'm sure somebody will come along and elaborate/correct.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Used + Available 1k Blocks Don't Equal Total
« Reply #2 on: July 16, 2007, 06:57:42 pm »
You can use the command:
mke2fs -m 0 /dev/hda1
to format a CF card to ext2 without creating the reserve blocks.

Maybe something like:
mke3fs -m 0 /dev/hda1
would work that way for ext3, I don't know.
« Last Edit: July 16, 2007, 06:59:47 pm by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

the_oak

  • Sr. Member
  • ****
  • Posts: 426
    • View Profile
    • http://
Used + Available 1k Blocks Don't Equal Total
« Reply #3 on: July 17, 2007, 10:38:40 pm »
I have always heard that ext3 file system is hard on CF cards due to journaling putting excess writes to disk. Maybe whoever posted this info before can elaborate on newest opinion concerning use of ext3?
« Last Edit: July 17, 2007, 11:36:00 pm by the_oak »
SL-6000L running Sharp 1.12 rom, (SOLD)
Fujitsu U820 with Windows 7
White Intel MacBook

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Used + Available 1k Blocks Don't Equal Total
« Reply #4 on: July 18, 2007, 05:18:14 pm »
I heard the same thing, that using EXT2 on flash is better for it, eg causes less wear.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo