View previous topic :: View next topic |
Author |
Message |
discostu Guru
Joined: 01 Nov 2002 Posts: 333
|
Posted: Sun Jun 29, 2003 12:30 am Post subject: Root Partition Too Small, Need to Resize |
|
|
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 |
|
|
pygoscelis Guru
Joined: 07 Jun 2003 Posts: 402
|
Posted: Sun Jun 29, 2003 12:58 am Post subject: |
|
|
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 |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Sun Jun 29, 2003 2:22 am Post subject: |
|
|
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. _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
ronmon Veteran
Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
Posted: Sun Jun 29, 2003 1:03 pm Post subject: |
|
|
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:
|
|
Back to top |
|
|
discostu Guru
Joined: 01 Nov 2002 Posts: 333
|
Posted: Sun Jun 29, 2003 4:22 pm Post subject: |
|
|
That's a good idea, ronmon! 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 |
|
|
|