I followed your steps and they worked! Thanks :).
Side question: while reading the man page for e2fsresize and it
mentioned a -D option, for optimizing the directories. This sounded good
(I always like speed :P), but I didn't know if it was safe... does
anybody know about this?
Bob Miller wrote:
Martin Kelly wrote:
I've been having a weird problem with my hard drive disk space. I have
an 80GB SATA drive and it is partitioned as one partition, all
containing Debian. Gparted and programs like that agree with this.
However, when I run df, it claims I have a 45GB partition, rather than
80GB.
It looks like the partition size is right, but the filesystem
size is wrong.
It is possible to use resize2fs to resize your disk correctly, if
you're using an ext2 or ext3 filesystem. Be very very careful since
doing this wrong will destroy all your data.
0. Ensure your hardware is working well and not flaky.
(I can't tell you how to do this step. (-: )
1. Back up the disk if possible.
1. Boot a Live CD. (e.g., Knoppix or Ubuntu)
Do not mount the /dev/sda1 filesystem.
2. fsck your filesystem.
# fsck /dev/sda1
If fsck finds problems, boot the hard drive and see if df's
output is correct yet. Then go back to the Live CD.
3. Resize the filesystem to fill the partition.
# ext2resize /dev/sda1
4. Boot the hard drive. Verify that all is well.
5. Yell at me if you lost all your data. No, seriously. Please back
it up first.
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug