Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Harddisk full and not knowing how to clean it up
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Hendry
n00b
n00b


Joined: 29 Oct 2003
Posts: 28
Location: Apeldoorn, The Netherlands

PostPosted: Sat Nov 01, 2003 10:29 am    Post subject: Harddisk full and not knowing how to clean it up Reply with quote

Hello everybody,

Here my first problem with Gentoo and allready a big one!!. At the moment my partition table is as follow:

hda1: windows XP with 11 GB allocated
hda2: boot partition of 32 MB
hda3: swap partition of 512 MB
hda 4: root partition of +/- 3 GB

I also have 3 GB not allocated. Here's my problem now:

My Gentoo installation has no more space to emerge programm's to and I'm just working for one week with Gentoo so I don't know where to find files I can delete so there will be room again on the root partition. What to do? Even my X doesn't want to start anymore and I'm thinking to reinstall again but there has to be an other way?

Then the 2nd question: is it possible to ad the 3 GB of not allocated space to the root partition? Then I would have a sollution also to boot again. My Gentoo cost me 3 days to install so please reply with all solutions you can imagion

Thanx a lot!

Hendry
Back to top
View user's profile Send private message
CTU-Butler
n00b
n00b


Joined: 30 Oct 2003
Posts: 23
Location: Watford, England

PostPosted: Sat Nov 01, 2003 10:41 am    Post subject: Reply with quote

As a temporary solution clear out /var/tmp/portage and /usr/portage/distfiles. This will free up the space used by files you have downloaded in order to emerge packages and that used by packages while emerging IIRC.

You'll probably need to make your gentoo partition bigger in the long run though, mine's round about 6GB and gets full from time to time. You'll need a repartitioning program like PartitionMagic or something similar if you want to do it without losing data.
_________________
"There are things in this world that are just out of our control...sometimes we blame ourselves to try and make some kind of sense out of them."
Back to top
View user's profile Send private message
Hendry
n00b
n00b


Joined: 29 Oct 2003
Posts: 28
Location: Apeldoorn, The Netherlands

PostPosted: Sat Nov 01, 2003 11:07 am    Post subject: Reply with quote

WOW!! That was a quick response and also it worked!! I'm able to start my Gentoo install again..

I tried adding the 3 GB to the Root partition, but Partition Magic 8 was not able to do so.. can this be because of the fact that my root is a reiserfs partition?
Back to top
View user's profile Send private message
jonas_nilsson
n00b
n00b


Joined: 21 Aug 2003
Posts: 57
Location: Stockholm, Switzerland

PostPosted: Sat Nov 01, 2003 12:30 pm    Post subject: Reply with quote

I am by no means an expert, but I think it is possible to let an reiserfs expand into unused space "after" it, and I think there are linux-apps for this purpose.
_________________
Physics is like sex: sure, it may give some practical results, but that's not why we do it.
--Richard Feynman
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Sat Nov 01, 2003 1:43 pm    Post subject: Reply with quote

The easiest way would be to make a new partition on the unallocated space and mount it at /wherever . Then do 'mkdir /wherever/tmp && mkdir /wherever/tmp/portage'.

Now set it in /etc/make.conf:
Code:

PORTAGE_TMPDIR=/wherever/tmp

Some ebuilds can use gobs of space in this directory (~2GB for openoffice).
Back to top
View user's profile Send private message
Hendry
n00b
n00b


Joined: 29 Oct 2003
Posts: 28
Location: Apeldoorn, The Netherlands

PostPosted: Sat Nov 01, 2003 5:51 pm    Post subject: Reply with quote

ronmon wrote:
The easiest way would be to make a new partition on the unallocated space and mount it at /wherever . Then do 'mkdir /wherever/tmp && mkdir /wherever/tmp/portage'.
.


Hmm.. how to do that when I already have 4 primary partitions? I cannot add an extra extended partition now :roll:
Back to top
View user's profile Send private message
strophy
n00b
n00b


Joined: 27 Aug 2003
Posts: 12

PostPosted: Sat Nov 01, 2003 6:02 pm    Post subject: Reply with quote

No, if you already have 4 primary partitions, adding an extended partition is no longer an option, so you have to resize. I don't think Partition Magic is able to resize Reiserfs partitions, but you are in luck, because there is a open source program which can: GNU Parted

http://www.gnu.org/software/parted/parted.html

Reiserfs support is enabled if you install libreiserfs, available at http://reiserfs.osdn.org.ua.

Good Luck!
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Sun Nov 02, 2003 12:17 am    Post subject: Reply with quote

Oh, I didn't realize they were all primary partitions. That would rule out my plan :(

I've used parted before and it works great. If you want something even snazzier, from a UI standpoint, check out QtParted. It looks like it would be really easy to use.
Back to top
View user's profile Send private message
ronmon
Veteran
Veteran


Joined: 15 Apr 2002
Posts: 1043
Location: Key West, FL

PostPosted: Sun Nov 02, 2003 4:10 pm    Post subject: Reply with quote

Just two days ago I added a 120GB USB 2.0 external drive to my system to handle bulk stuff like music, backups, etc. Up until then a pair of 18GB U160 HDD's was the total of my internal fixed disc storage, so I've been shuffling things around a bit to make efficient use of the freed space. All of my partitions are reiserfs.

I ended up with an unused primary partition (sda3) adjacent to my / partition (sda2) and decided to 'merge' them by deleting the unused partition and resizing / . Considering the importance of the partition I was tinkering with, I was careful to make good backups first ;-) Then I grabbed the Recovery Is Possible image, burned it and booted from it. Having read some documentation from the GNU parted site, I was able to do it with absolutely no problem. Since all the remaining partitions were logical (sda5,6,7,8), their partition numbers did not change and it was not necessary to edit my fstab.

All in all, pretty painless I would say.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum