I just recently installed Xbox-Linux on my Xbox (version
0.0.6). I have an Xbox with the 10G version of the hard
drive, so I expected to use the 2G of space that is unused
by the Xbox. After installation, I ran `df` and `df -h` to
check available disk space, and I got surprising results:
----
xbox:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 738M 169M 532M 25% /
xbox:~# df
Filesystem 1k-blocks Used Available Use%
Mounted on
/dev/hda2 755920 172340 545180 25% /
----
For some odd reason, df returns only 738M. I decided to
investigate fdisk and find out what it displayed for the disk
space. Here's what I got:
----
xbox:~# fdisk /dev/hda
The number of cylinders for this disk is set to 19386.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/hda: 16 heads, 63 sectors, 19386 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Start End Blocks Id System
/dev/hda1 15534 15794 131072+ 82 Linux swap
/dev/hda2 * 15794 19386 1810479 83 Linux
/dev/hda3 4573 5589 512000 83 Linux
/dev/hda4 5589 15534 5012480 83 Linux
Partition table entries are not in disk order.
----
According to that, I should have about 1.7G of space
on /dev/hda2. I also ran cfdisk to verify it, and these are
the results I got:
----
cfdisk 2.11n
Disk Drive: /dev/hda
Size: 10005037056 bytes
Heads: 16 Sectors per Track: 63 Cylinders:
19386
Name Flags Part Type FS Type
[Label] Size (MB)
------------------------------------------------------------------------
------
Unusable
2359.83*
hda3 Primary Linux
524.29*
hda4 Primary Linux
5132.78*
Unusable
0.01*
hda1 Primary Linux swap
134.22*
hda2 Boot Primary Linux
1853.94*
----
I also ran `du -h` to compare the amount used from df to
du, and I obtained different results. While, df said I had
used 169M, du returned 215M. I'm not sure if this has
anything to do with xbox-linux itself, but I thought I would
bring it to your attention.
By the way, I also confirmed that it seems to use the df
results to determine when the disk is full, as I ran out of
disk space rather quickly after installing X, kde and a
handful of other programs.
Thanks.
Dannel Albert
dalbert@capitol-college.edu
Logged In: YES
user_id=314764
If this problem is still bugging you, please repost it to
the mailing list.