where software is installed

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
bytefyre

where software is installed

Post by bytefyre »

Hello, I have installed Mint (8, gnome) with a very small root partition (unfortunately my bios can't see my new hard drive, which is where it is installed) so I only have 249 megabytes of space in root, (before I had around 31 megabytes but I removed open-office,org) my problem is that now I only have 249 MB of space to install programs, therefore I was wondering if there is a way to install all the applications in my home partition, which has plenty of space
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
piratesmack

Re: where software is installed

Post by piratesmack »

How is your hard drive partitioned?

It would probably be best to shrink your home partition and create a new partition for /usr (That's where software is usually installed)
User avatar
Midnighter
Level 6
Level 6
Posts: 1327
Joined: Tue May 22, 2007 1:52 pm
Location: Western Australia

Re: where software is installed

Post by Midnighter »

How big is your available drive, and how big are the partitions you created?
bytefyre

Re: where software is installed

Post by bytefyre »

my home partition is more than big enough, I've made another partition (40 GB) for /usr, but how do I make Linux install stuff in there?
piratesmack

Re: where software is installed

Post by piratesmack »

Alright, this requires a little work from the Terminal
You should do this from the live cd and NOT your running system.

I don't recommend trying this if you are new to Linux unless you don't care about losing data.

Mount your partitions:

Code: Select all

sudo mkdir -p /mnt/root
sudo mkdir -p /mnt/usr
sudo mount /dev/ROOT /mnt/root
sudo mount /dev/USR /mnt/usr
Of course, replace '/dev/ROOT' and '/dev/USR' with your partitions.
You should be able to figure this out by running 'fdisk -l'

Copy everything from /mnt/root/usr to your new partition:

Code: Select all

sudo cp -av /mnt/root/usr/* /mnt/usr
Once everything is copied to the new partition, you can delete the data on the old one:

Code: Select all

sudo rm -rf /mnt/root/usr/*
Note: I didn't remove the /usr folder, we still need that.

Now edit /etc/fstab:

Code: Select all

gksu gedit /mnt/root/etc/fstab
Add something like this:

Code: Select all

/dev/USR /usr ext4 defaults 1 2
Again, replace '/dev/USR' with your partition and also replace 'ext4' with the filesystem you use.

Now you can unmount your partitions and reboot:

Code: Select all

sudo umount /mnt/root
sudo umount /mnt/usr
Now your partition will be mounted on /usr and software will be installed there.
bytefyre

Re: where software is installed

Post by bytefyre »

thanks piratesmack, it worked :)
Locked

Return to “Software & Applications”