Rudmer van Dijk wrote:
> On Tue, October 19, 2004 8:14, Andrew Lowe said:
>
>>Greetings people,
>> I've got a small machine that is a bit limited on disk space that I'm
>>using as a firewall thingy. I've gone to update it, "emerge --sync" and
>>get an rsync error about the partition being full. I ran df and it said
>>the partition, /usr, was full. I emptied out a few dir's and then redid
>>"df" on the disk and it says that the /usr partition has a size of 788M,
>>is using 560M and has 188M free, 75% used. I then run "du -h
>>--max-depth=2" on /usr and it says that there are 371M of files. Why is
>>there the difference between the two commands?
>
>
> df displays the actual disksize in use
> du displays the total filesize
>
> total filesize != disksize in use
> because a file of say 10 bytes will use a whole block of blocksize (eg.
> 4kB) on disk (except when you use reiserfs)
>
>
> Rudmer
So if I want to reorganise my disk to give the /usr partition a bit
more space, I should:
1) Boot off the Gentoo CD
2) Mount my small disk
3) Move the contents of the current /usr and the "donor" partition
somewhere safe
4) Blow away the existing /usr and donor with an fdisk type of thing
5) Recreate /usr and donor with new sizes
6) Copy the stuff from 2) back into place
7) Reboot
Or is there a freebie thing like Partition Magic that would make this
easier?
Having not looked at this machine for nearly two years, I see that I
have /usr on a partition of about 800M and /usr/local & /usr/scr sharing
a partition of about 1500M. For the life of me I can't remember why I've
done this. Should I just place all of the /usr stuff, /usr, /usr/share
and /usr/scr, back under the one resized 2.3G partition?
Any thoughts greatly appreciated
Andrew
--
gentoo-user@gentoo.org mailing list
> On Tue, October 19, 2004 8:14, Andrew Lowe said:
>
>>Greetings people,
>> I've got a small machine that is a bit limited on disk space that I'm
>>using as a firewall thingy. I've gone to update it, "emerge --sync" and
>>get an rsync error about the partition being full. I ran df and it said
>>the partition, /usr, was full. I emptied out a few dir's and then redid
>>"df" on the disk and it says that the /usr partition has a size of 788M,
>>is using 560M and has 188M free, 75% used. I then run "du -h
>>--max-depth=2" on /usr and it says that there are 371M of files. Why is
>>there the difference between the two commands?
>
>
> df displays the actual disksize in use
> du displays the total filesize
>
> total filesize != disksize in use
> because a file of say 10 bytes will use a whole block of blocksize (eg.
> 4kB) on disk (except when you use reiserfs)
>
>
> Rudmer
So if I want to reorganise my disk to give the /usr partition a bit
more space, I should:
1) Boot off the Gentoo CD
2) Mount my small disk
3) Move the contents of the current /usr and the "donor" partition
somewhere safe
4) Blow away the existing /usr and donor with an fdisk type of thing
5) Recreate /usr and donor with new sizes
6) Copy the stuff from 2) back into place
7) Reboot
Or is there a freebie thing like Partition Magic that would make this
easier?
Having not looked at this machine for nearly two years, I see that I
have /usr on a partition of about 800M and /usr/local & /usr/scr sharing
a partition of about 1500M. For the life of me I can't remember why I've
done this. Should I just place all of the /usr stuff, /usr, /usr/share
and /usr/scr, back under the one resized 2.3G partition?
Any thoughts greatly appreciated
Andrew
--
gentoo-user@gentoo.org mailing list