Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-02-2007, 04:07 AM   #1
Registered: May 2007
Location: india
Distribution: ubuntu7
Posts: 73

Rep: Reputation: 15
installing software in different partition

my root partition is almost full and it happened to me many timed that i was not able to boot into my linux box due to less disk space
so is there a way to install softwares in different partition
for ex ...r there any parameters in apt-get command which install softwares in different partitions....

thanx in advance..
Old 09-02-2007, 04:51 AM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,845

Rep: Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006Reputation: 2006
I'm not sure if it's possible, but if there's a way to do it, you'll find it in the apt howto. I'm not sure this is a good idea though. It could quickly become confusing trying to keep track of which packages are installed where.

A better way to solve your problem would be to move your entire /usr directory onto a separate partition. Simply create a new partition, move all of the files in /usr into it (be sure to back it up first), then edit your /etc/fstab so that that partition mounts at /usr. If you do it correctly, the changeover should be transparent to your system.
Old 09-02-2007, 08:36 AM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740Reputation: 740
If you have the space to create other partitions, then you could simply re-size "/" to make it bigger.....
How full is the disk?
Old 09-02-2007, 02:34 PM   #4
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
Or make the extra partition space into e.g. /usr, copy everything
across, and then mount it as /usr. If all is well (all this in
init 1) unmount it again and delete the content of /usr on the
original ... in terms of the installation and apt it won't make
a difference - apt should be agnostic in regards to partitions.



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
Partition Software K_smolka Linux - Software 6 06-11-2004 07:12 PM
partition software zbrox Linux - Software 4 02-01-2004 01:12 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 09:45 AM
Question on installing software and starting software rootlinux Linux - Newbie 5 01-19-2002 11:40 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:19 PM.

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