where software is installed
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
where software is installed
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: where software is installed
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)
It would probably be best to shrink your home partition and create a new partition for /usr (That's where software is usually installed)
- Midnighter
- Level 6
- Posts: 1327
- Joined: Tue May 22, 2007 1:52 pm
- Location: Western Australia
Re: where software is installed
How big is your available drive, and how big are the partitions you created?
Re: where software is installed
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?
Re: where software is installed
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:
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:
Once everything is copied to the new partition, you can delete the data on the old one:
Note: I didn't remove the /usr folder, we still need that.
Now edit /etc/fstab:
Add something like this:
Again, replace '/dev/USR' with your partition and also replace 'ext4' with the filesystem you use.
Now you can unmount your partitions and reboot:
Now your partition will be mounted on /usr and software will be installed there.
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
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
Code: Select all
sudo rm -rf /mnt/root/usr/*
Now edit /etc/fstab:
Code: Select all
gksu gedit /mnt/root/etc/fstab
Code: Select all
/dev/USR /usr ext4 defaults 1 2
Now you can unmount your partitions and reboot:
Code: Select all
sudo umount /mnt/root
sudo umount /mnt/usr