LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2005, 12:01 PM   #1
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Rep: Reputation: 30
Low disk space problem


Hi there, i've installed linux on the same drive as my winXP and its running fine but the time has come for me to install the nvidia drivers for it ... these need me to install the kernel source rpms for it...... however theyre very large and it stops during the install telling me that it needs 65mb to install (which i presume is not available) on the "/" partition. i have another HD which is 20 gb large waiting to be used.... is there any way i can redirect the rpms to be installed onto this hardrive. i didnt initially install to the drive as lilo kept crashing linux was on anyother drive than the winXP.


any help would be greatly appreciated.

thanks
 
Old 07-30-2005, 12:37 PM   #2
Samsara
Member
 
Registered: May 2003
Distribution: Ubuntu, Mac OS X Tiger
Posts: 481

Rep: Reputation: 32
You probably want to relocate your /var and /usr to the extra drive. To do this, you'll need to make two partitions (usually ext3 or reiserfs formats, whichever your distro prefers) on the drive, mount them under /mnt (as will be done by default) and then copy the contents of your current /usr and /var to the respective new space.

If your distribution also has a large /opt directory - check by doing:
Code:
cd /opt
du -sh
you can similarly relocate that directory.

Then you'll need to change your /etc/fstab to mount the new partitions as /var and /usr at the next reboot (or you could remount everything without reboot, but a reboot is probably easiest).

Eventually, once you know everything is working, you'll want to umount /var and /usr briefly so you can delete the contents from the old space.

HTH,

Samsara
.

Last edited by Samsara; 07-30-2005 at 12:41 PM.
 
Old 07-30-2005, 01:30 PM   #3
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Original Poster
Rep: Reputation: 30
Samsara..... i tried exactly what you did and it worked..... theres also a program in the partitioner which does the same thing in mandrake.


Thanks again for your help.
 
Old 08-07-2005, 04:14 AM   #4
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Original Poster
Rep: Reputation: 30
K, this is a bit more serious, i've run out of space on home, i only allocated 2 Gigs to it and it's filled up..... i have temporarily moved a few large files and rpms over to my other driver called /stuff. But if i keep installing programs, doesnt it install it in /home under my user directory? Diskdrake wont let me create /home on another drive like it did with /var and /usr. Can anyone suggest a solution? Would it work if i init 3, unmount /home, then manually make /home on another drive, then copy, then change fstab?

If worse comes to worse i'm gonna have to delte all partitions and reinstall everything in the correct sizes now i know what i'm doing when the new 2006 version of mandriva comes out soon.

Last edited by Maverick1182; 08-07-2005 at 04:15 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
low disk space email warnings pyroman59 Linux - Software 3 10-19-2005 04:21 PM
Low disk space, problem deleting files gtzpower Linux - Software 1 05-24-2005 09:57 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM
E-mail notification of low disk space Hypocrite Linux - General 2 11-10-2004 02:27 PM
Low disk space??? kevinlyfellow Linux - General 6 11-12-2003 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration