LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 10-22-2016, 03:21 AM   #1
next1
LQ Newbie
 
Registered: Jan 2016
Posts: 7

Rep: Reputation: Disabled
Question Deb installation path


I use Ubuntu 14.04LTS with the SoftwareManager.
However I have limited space on my SDD. Ubuntu with his partitions are on the SDD and this is good. But each time I install an app his installation and working data is also located on the SDD. I would like to have an option to change the install path.
I have in my system on extra disk which is ext4 formated and a bunch over others which are NTFS.
 
Old 10-22-2016, 07:41 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by next1 View Post
I use Ubuntu 14.04LTS with the SoftwareManager.
However I have limited space on my SDD. Ubuntu with his partitions are on the SDD and this is good. But each time I install an app his installation and working data is also located on the SDD. I would like to have an option to change the install path.
I have in my system on extra disk which is ext4 formatted and a bunch over others which are NTFS.
partitioning, move your directory that you are talking about over to that one then fstab changes are then made to your system.

I've never done this, other then my entire root / and /home being split, but in Linux/GNU theory it should work. it is just splitting your tree up and placing it on different drives. Then using fstab to mount them all accordingly.

Linux gives you the means to have each directory mounted on separate hard drives and mount them all through the fstab file. Even split them up into small groups of directories and do the same.

their maybe other ways too , soft links might also work.

I have my root on an ssd and my home on a larger separate drive. Then I use my "extra space" on that same ssd as a data partition and mount it in fstab.

Quote:
I have in my system an extra disk which is ext4 formatted and a bunch of others which are NTFS.
the methodology behind the theory is.

You could move that directory like one would if they where moving their /home . create a new directory by the same name on a different hard drive, move everything into it make changes to the fstab file, run mount -a to be sure it takes, then check it to be sure you didn't forget anything by trying to install something. a reboot too maybe needed to fully set the changes within the system. IMPORTANT: they have to be a formate for Linux. ext4 will work.

Last edited by BW-userx; 10-22-2016 at 08:07 AM.
 
Old 10-22-2016, 08:04 AM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by BW-userx View Post
partitioning, move your directory that you are talking about over to that one then fstab changes are then made to your system.

I've never done this, other then my entire root / and /home being split, but in Linux/GNU theory it should work. it is just splitting your tree up and placing it on different drives. Then using fstab to mount them all accordingly.

the in this theory is you can have each directory mounted on separate hard drives and mount them all through the fstab file. Even split them up into small groups of directories and do the same.

their maybe other ways too , soft links might also work.

I have my root on an ssd and my home on a larger separate drive. Then I use my "extra space" on that same ssd as a data partition and mount it in fstab.


the methodology behind the theory is.

You could move that directory like one would if they where moving their /home . create a new directory by the same name on a different hard drive, move everything into it make changes to the fstab file, run mount -a to be sure it takes, then check it to be sure you didn't forget anything by trying to install something. a reboot too maybe needed to fully set the changes within the system. IMPORTANT: they have to be a formate for Linux. ext4 will work.

this covers how to do this with the var directory in Debian but the steps are/should be the same, minus the home directory.

moving-var-home-to-separate-partition
 
Old 10-23-2016, 03:53 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
The debs get downloaded the /var/cache/apt/archives/ by default. But you might get more bang for your buck by moving things like /usr/share/doc/, /home/, /tmp/, and such to other mediums.
 
Old 10-25-2016, 11:58 AM   #5
next1
LQ Newbie
 
Registered: Jan 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
As I did the OS installation I choose in the setup process encryption.
I don`t know which exact option.
Could this a pitfall.
 
Old 10-25-2016, 12:37 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by next1 View Post
As I did the OS installation I choose in the setup process encryption.
I don`t know which exact option.
Could this a pitfall.
not knowing which exact option you chose could indeed be a pitfall.
 
Old 10-26-2016, 01:41 AM   #7
next1
LQ Newbie
 
Registered: Jan 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
I selected only "Encrypt the new Ubuntu installation for security"
http://www.itzgeek.com/wp-content/up...all-Ubuntu.png
 
Old 10-26-2016, 06:18 AM   #8
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by next1 View Post
I selected only "Encrypt the new Ubuntu installation for security"
http://www.itzgeek.com/wp-content/up...all-Ubuntu.png
What you keepin' on ur laptop Willis?

some top secret eyes only shit????

Last edited by BW-userx; 10-26-2016 at 06:19 AM.
 
Old 10-26-2016, 06:54 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,504

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
If you are installing from your system's repositories, most software will expect to be installed to a specific location and will often have dependencies and libraries it needs to access. If you install in a non-standard location, you will have to manually configure this. Best and simplest thing was suggested above. Have a separate partition for /home or /data on which to keep your personal data.
 
Old 10-26-2016, 11:29 AM   #10
next1
LQ Newbie
 
Registered: Jan 2016
Posts: 7

Original Poster
Rep: Reputation: Disabled
Sure in fact I need no encryption but it is a nice feature.
I will move the /home to a separate partition. However I don`t know in which way I have to handle this with the selected encryption.
 
Old 10-26-2016, 11:44 AM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
this will help you in ,...

link 1

link 2
 
Old 10-26-2016, 03:26 PM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
rereading your post, did you mean this:
- you already installed ubuntu with encryption, and it is working ok
- you have hardly any space left and need to move part of your install to a seperate partition

i would simply do the second part then.
not sure, but i think you have to edit fstab anyway, and that will also tell you about encryption (i am not good with encryption, sorry)?
 
  


Reply



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
Installation of python and dependencies in customized path instead of standard path srinietrx Linux - Software 2 06-01-2015 09:19 AM
Installation of python and dependencies in customized path instead of standard path srinietrx Linux - Software 1 05-31-2015 02:38 AM
.deb file installation problems realbaz Linux - Newbie 15 05-25-2009 09:38 AM
Building .deb with customized prefix path SamTim74 Debian 0 01-22-2008 07:08 PM

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

All times are GMT -5. The time now is 06:53 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