Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Root Partition Too Small, Need to Resize
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
discostu
Guru
Guru


Joined: 01 Nov 2002
Posts: 333

PostPosted: Sun Jun 29, 2003 12:30 am    Post subject: Root Partition Too Small, Need to Resize Reply with quote

I made my root partition too small:
Code:
Filesystem             Size   Used  Avail Use% Mounted on
/dev/hda6             502MB  382MB   95MB  81% /
tmpfs                 502MB  382MB   95MB  81% /var/lib/init.d
/dev/hda7              11GB  3.1GB  6.7GB  32% /usr
/dev/hda8              48GB   13GB   35GB  27% /home
tmpfs                 264MB      0  264MB   0% /dev/shm
/dev/hda1              63GB  5.3GB   58GB   9% /mnt/winxp


I want to resize, but if all possible I don't want to lose anything. I wouldn't mind moving space from my Win XP partition or /home. I really have anything on my XP partition except for a couple programs, but I don't really want to have to reinstall XP since I heard you need to install XP first and then linux after. I don't want to lose files in usr, home, or etc. Please help!

Thanks! :)
_________________
"Disco Stu doesn't advertise."
Back to top
View user's profile Send private message
pygoscelis
Guru
Guru


Joined: 07 Jun 2003
Posts: 402

PostPosted: Sun Jun 29, 2003 12:58 am    Post subject: Reply with quote

You can try a partition resizer that comes with Mandrake. If it doesn't work and you need to reinstall Windows, don't worry, it's easy to restore status quo by just installing GRUB or LILO from a CD/floppy.
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Sun Jun 29, 2003 2:22 am    Post subject: Reply with quote

Check out parted if you have fat32. If its NTFS you could use partition magic to reduce the size of your XP install and then use parted to increase the size of you linux partition into the free space. Or indeed you can partition magic to make the linux partitions bigger. Be very careful. :-D
_________________
Where there's open source , there's a way.
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 Jun 29, 2003 1:03 pm    Post subject: Reply with quote

You might be able to get around this without any resizing. Since /var/tmp/portage often uses lots of space, you could try something like this:

Code:

mkdir /home/tmp
mkdir /home/tmp/portage
chmod -R 777 /home/tmp


Then edit your /etc/make.conf and set:
Code:

PORTAGE_TMPDIR=/home/tmp


The default setting requires a huge / partition and wastes space. Similarly, a separate /var or /var/tmp partition is inefficient (a java-sdk build can use up to 2GB). My /home directory is always my largest, so I just use it.

If that doesn't free up enough space, you might consider a separate partition for /opt. Mine has 314MB in it right now. You can check yours with:
Code:

du -hc /opt
Back to top
View user's profile Send private message
discostu
Guru
Guru


Joined: 01 Nov 2002
Posts: 333

PostPosted: Sun Jun 29, 2003 4:22 pm    Post subject: Reply with quote

That's a good idea, ronmon! :D The biggest problem seemed to be /opt since that is where blackdown lives and eclipse (as well as some other programs). I unmerged all the eclipse stuff so I could log into gnome. Would it be a good idea to move everything from /opt to say /home/opt then make a symlink from /opt to /home/opt?

Thanks! :)
_________________
"Disco Stu doesn't advertise."
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