The correct way to split hard drives with Ubuntu
I am using 2 hard drives: 100 Gb SSD (1) and 1Tb SATA (2). 70 Gb of (1) are taken for other purposes.
I have installed Ubuntu on the rest of 30 Gb of (1) and soon faced a problem: all the apps I need are much more than 30 Gb. Also I understood that apt-get is not going to install my programs to the other drives (for example, to (2)).
What is the correct way to solve the problem? I see here two ways:
1) Use some hint to make the second disk visible to apt-get. I am not quite sure, if it is possible. Maybe symlink can work, but I am a bit inexperienced in Ubuntu to think of a good way to do it.
2) Install Ubuntu to larger drive. What I am concerned about is that it is less fast.
To sum up, the question is whether there is a good, true way to make first idea work or reasons why I should abandon it and choose second option.
partitioning hard-drive
add a comment |
I am using 2 hard drives: 100 Gb SSD (1) and 1Tb SATA (2). 70 Gb of (1) are taken for other purposes.
I have installed Ubuntu on the rest of 30 Gb of (1) and soon faced a problem: all the apps I need are much more than 30 Gb. Also I understood that apt-get is not going to install my programs to the other drives (for example, to (2)).
What is the correct way to solve the problem? I see here two ways:
1) Use some hint to make the second disk visible to apt-get. I am not quite sure, if it is possible. Maybe symlink can work, but I am a bit inexperienced in Ubuntu to think of a good way to do it.
2) Install Ubuntu to larger drive. What I am concerned about is that it is less fast.
To sum up, the question is whether there is a good, true way to make first idea work or reasons why I should abandon it and choose second option.
partitioning hard-drive
Perhaps the method suggested in this answer
– Charles Green
Feb 3 at 21:30
#1 is possible, but not for beginners: You must understand the filesystem, learn how to use themount
command, and learn how to edit /etc/fstab. Go ahead and try it and learn. #2 is simpler if you need more space today, or if you are unwilling to learn. Beyond that, it's a matter of preference.
– user535733
Feb 4 at 1:17
add a comment |
I am using 2 hard drives: 100 Gb SSD (1) and 1Tb SATA (2). 70 Gb of (1) are taken for other purposes.
I have installed Ubuntu on the rest of 30 Gb of (1) and soon faced a problem: all the apps I need are much more than 30 Gb. Also I understood that apt-get is not going to install my programs to the other drives (for example, to (2)).
What is the correct way to solve the problem? I see here two ways:
1) Use some hint to make the second disk visible to apt-get. I am not quite sure, if it is possible. Maybe symlink can work, but I am a bit inexperienced in Ubuntu to think of a good way to do it.
2) Install Ubuntu to larger drive. What I am concerned about is that it is less fast.
To sum up, the question is whether there is a good, true way to make first idea work or reasons why I should abandon it and choose second option.
partitioning hard-drive
I am using 2 hard drives: 100 Gb SSD (1) and 1Tb SATA (2). 70 Gb of (1) are taken for other purposes.
I have installed Ubuntu on the rest of 30 Gb of (1) and soon faced a problem: all the apps I need are much more than 30 Gb. Also I understood that apt-get is not going to install my programs to the other drives (for example, to (2)).
What is the correct way to solve the problem? I see here two ways:
1) Use some hint to make the second disk visible to apt-get. I am not quite sure, if it is possible. Maybe symlink can work, but I am a bit inexperienced in Ubuntu to think of a good way to do it.
2) Install Ubuntu to larger drive. What I am concerned about is that it is less fast.
To sum up, the question is whether there is a good, true way to make first idea work or reasons why I should abandon it and choose second option.
partitioning hard-drive
partitioning hard-drive
asked Feb 3 at 21:17
sooobussooobus
1011
1011
Perhaps the method suggested in this answer
– Charles Green
Feb 3 at 21:30
#1 is possible, but not for beginners: You must understand the filesystem, learn how to use themount
command, and learn how to edit /etc/fstab. Go ahead and try it and learn. #2 is simpler if you need more space today, or if you are unwilling to learn. Beyond that, it's a matter of preference.
– user535733
Feb 4 at 1:17
add a comment |
Perhaps the method suggested in this answer
– Charles Green
Feb 3 at 21:30
#1 is possible, but not for beginners: You must understand the filesystem, learn how to use themount
command, and learn how to edit /etc/fstab. Go ahead and try it and learn. #2 is simpler if you need more space today, or if you are unwilling to learn. Beyond that, it's a matter of preference.
– user535733
Feb 4 at 1:17
Perhaps the method suggested in this answer
– Charles Green
Feb 3 at 21:30
Perhaps the method suggested in this answer
– Charles Green
Feb 3 at 21:30
#1 is possible, but not for beginners: You must understand the filesystem, learn how to use the
mount
command, and learn how to edit /etc/fstab. Go ahead and try it and learn. #2 is simpler if you need more space today, or if you are unwilling to learn. Beyond that, it's a matter of preference.– user535733
Feb 4 at 1:17
#1 is possible, but not for beginners: You must understand the filesystem, learn how to use the
mount
command, and learn how to edit /etc/fstab. Go ahead and try it and learn. #2 is simpler if you need more space today, or if you are unwilling to learn. Beyond that, it's a matter of preference.– user535733
Feb 4 at 1:17
add a comment |
2 Answers
2
active
oldest
votes
There are many ways to partition drives for limited space.
Manual partitioning:
Look in the root partition ( / ) and you will find several directories that can be put on separate partitions for the exact problems you are having (as well as for other reasons).
My new ubuntu install (Bionic) currently uses about 6 GB of space. On my newest laptop, when looking at the output of du I find that /var uses about (at present) 30% of the 6 GB total.
The users home directory tree ( /home ) often uses a considerable amount of space as well. Om my main computer I have 3 TB allocated to /home and am using more than half.
Both /var and /home can be quite volatile in space demands and when the primary installation partition is limited those two can (and probably should) be placed on another partition to distribute space requirements.
In the early days when disk drives were expensive and space was at a premium it was found necessary (for servers) to place /var on its own partition because mail, software cache, files being served, etc would fill up the space and cause a system crash if no space was remaining for the OS partition. Malicious individuals would deliberately shut down ISPs and others if they were not prepared for such an attack.
LVM:
If you are using LVM to manage your disks, changes can be quite painless.
If you are doing it manually some careful planning and partitioning in advance can easily distribute the data to manage disk space as well. Changes without LVM are painful.
Having both drives (or at least the used 30 GB of drive 1 and all of drive 2 ) as part of an LVM will allow seamless usage of the second drive as space demands.
As a side note:
You did not state what you are using the original 70 GB of the ssd for. If I correctly assume that it is a install of another os then it is probably not movable. If it is purely data then it could easily be relocated.
Good luck!
BTW,
Some things are accessed frequently and speed becomes a factor. Others are read by the system once or very infrequently and for those speed is really immaterial.
add a comment |
Placement of swap on SSD is a key element of efficiently working system.
While it will not help much for boot time and first run of programs, having swap on SSD may make work as painless as everything is on SSD.
Placement of other system parts is secondary problem.
Edit: I just understand, how green are you to ask such question. So, in such case, answer is: No. No, on Linux you cannot install stuff anywhere you want, like on Windows. Everything has a fixed place. Apt-get cannot put some things "elsewhere".
Install everything on bigger disk.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115363%2fthe-correct-way-to-split-hard-drives-with-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are many ways to partition drives for limited space.
Manual partitioning:
Look in the root partition ( / ) and you will find several directories that can be put on separate partitions for the exact problems you are having (as well as for other reasons).
My new ubuntu install (Bionic) currently uses about 6 GB of space. On my newest laptop, when looking at the output of du I find that /var uses about (at present) 30% of the 6 GB total.
The users home directory tree ( /home ) often uses a considerable amount of space as well. Om my main computer I have 3 TB allocated to /home and am using more than half.
Both /var and /home can be quite volatile in space demands and when the primary installation partition is limited those two can (and probably should) be placed on another partition to distribute space requirements.
In the early days when disk drives were expensive and space was at a premium it was found necessary (for servers) to place /var on its own partition because mail, software cache, files being served, etc would fill up the space and cause a system crash if no space was remaining for the OS partition. Malicious individuals would deliberately shut down ISPs and others if they were not prepared for such an attack.
LVM:
If you are using LVM to manage your disks, changes can be quite painless.
If you are doing it manually some careful planning and partitioning in advance can easily distribute the data to manage disk space as well. Changes without LVM are painful.
Having both drives (or at least the used 30 GB of drive 1 and all of drive 2 ) as part of an LVM will allow seamless usage of the second drive as space demands.
As a side note:
You did not state what you are using the original 70 GB of the ssd for. If I correctly assume that it is a install of another os then it is probably not movable. If it is purely data then it could easily be relocated.
Good luck!
BTW,
Some things are accessed frequently and speed becomes a factor. Others are read by the system once or very infrequently and for those speed is really immaterial.
add a comment |
There are many ways to partition drives for limited space.
Manual partitioning:
Look in the root partition ( / ) and you will find several directories that can be put on separate partitions for the exact problems you are having (as well as for other reasons).
My new ubuntu install (Bionic) currently uses about 6 GB of space. On my newest laptop, when looking at the output of du I find that /var uses about (at present) 30% of the 6 GB total.
The users home directory tree ( /home ) often uses a considerable amount of space as well. Om my main computer I have 3 TB allocated to /home and am using more than half.
Both /var and /home can be quite volatile in space demands and when the primary installation partition is limited those two can (and probably should) be placed on another partition to distribute space requirements.
In the early days when disk drives were expensive and space was at a premium it was found necessary (for servers) to place /var on its own partition because mail, software cache, files being served, etc would fill up the space and cause a system crash if no space was remaining for the OS partition. Malicious individuals would deliberately shut down ISPs and others if they were not prepared for such an attack.
LVM:
If you are using LVM to manage your disks, changes can be quite painless.
If you are doing it manually some careful planning and partitioning in advance can easily distribute the data to manage disk space as well. Changes without LVM are painful.
Having both drives (or at least the used 30 GB of drive 1 and all of drive 2 ) as part of an LVM will allow seamless usage of the second drive as space demands.
As a side note:
You did not state what you are using the original 70 GB of the ssd for. If I correctly assume that it is a install of another os then it is probably not movable. If it is purely data then it could easily be relocated.
Good luck!
BTW,
Some things are accessed frequently and speed becomes a factor. Others are read by the system once or very infrequently and for those speed is really immaterial.
add a comment |
There are many ways to partition drives for limited space.
Manual partitioning:
Look in the root partition ( / ) and you will find several directories that can be put on separate partitions for the exact problems you are having (as well as for other reasons).
My new ubuntu install (Bionic) currently uses about 6 GB of space. On my newest laptop, when looking at the output of du I find that /var uses about (at present) 30% of the 6 GB total.
The users home directory tree ( /home ) often uses a considerable amount of space as well. Om my main computer I have 3 TB allocated to /home and am using more than half.
Both /var and /home can be quite volatile in space demands and when the primary installation partition is limited those two can (and probably should) be placed on another partition to distribute space requirements.
In the early days when disk drives were expensive and space was at a premium it was found necessary (for servers) to place /var on its own partition because mail, software cache, files being served, etc would fill up the space and cause a system crash if no space was remaining for the OS partition. Malicious individuals would deliberately shut down ISPs and others if they were not prepared for such an attack.
LVM:
If you are using LVM to manage your disks, changes can be quite painless.
If you are doing it manually some careful planning and partitioning in advance can easily distribute the data to manage disk space as well. Changes without LVM are painful.
Having both drives (or at least the used 30 GB of drive 1 and all of drive 2 ) as part of an LVM will allow seamless usage of the second drive as space demands.
As a side note:
You did not state what you are using the original 70 GB of the ssd for. If I correctly assume that it is a install of another os then it is probably not movable. If it is purely data then it could easily be relocated.
Good luck!
BTW,
Some things are accessed frequently and speed becomes a factor. Others are read by the system once or very infrequently and for those speed is really immaterial.
There are many ways to partition drives for limited space.
Manual partitioning:
Look in the root partition ( / ) and you will find several directories that can be put on separate partitions for the exact problems you are having (as well as for other reasons).
My new ubuntu install (Bionic) currently uses about 6 GB of space. On my newest laptop, when looking at the output of du I find that /var uses about (at present) 30% of the 6 GB total.
The users home directory tree ( /home ) often uses a considerable amount of space as well. Om my main computer I have 3 TB allocated to /home and am using more than half.
Both /var and /home can be quite volatile in space demands and when the primary installation partition is limited those two can (and probably should) be placed on another partition to distribute space requirements.
In the early days when disk drives were expensive and space was at a premium it was found necessary (for servers) to place /var on its own partition because mail, software cache, files being served, etc would fill up the space and cause a system crash if no space was remaining for the OS partition. Malicious individuals would deliberately shut down ISPs and others if they were not prepared for such an attack.
LVM:
If you are using LVM to manage your disks, changes can be quite painless.
If you are doing it manually some careful planning and partitioning in advance can easily distribute the data to manage disk space as well. Changes without LVM are painful.
Having both drives (or at least the used 30 GB of drive 1 and all of drive 2 ) as part of an LVM will allow seamless usage of the second drive as space demands.
As a side note:
You did not state what you are using the original 70 GB of the ssd for. If I correctly assume that it is a install of another os then it is probably not movable. If it is purely data then it could easily be relocated.
Good luck!
BTW,
Some things are accessed frequently and speed becomes a factor. Others are read by the system once or very infrequently and for those speed is really immaterial.
answered Feb 3 at 22:37
Computer SavvyComputer Savvy
263
263
add a comment |
add a comment |
Placement of swap on SSD is a key element of efficiently working system.
While it will not help much for boot time and first run of programs, having swap on SSD may make work as painless as everything is on SSD.
Placement of other system parts is secondary problem.
Edit: I just understand, how green are you to ask such question. So, in such case, answer is: No. No, on Linux you cannot install stuff anywhere you want, like on Windows. Everything has a fixed place. Apt-get cannot put some things "elsewhere".
Install everything on bigger disk.
add a comment |
Placement of swap on SSD is a key element of efficiently working system.
While it will not help much for boot time and first run of programs, having swap on SSD may make work as painless as everything is on SSD.
Placement of other system parts is secondary problem.
Edit: I just understand, how green are you to ask such question. So, in such case, answer is: No. No, on Linux you cannot install stuff anywhere you want, like on Windows. Everything has a fixed place. Apt-get cannot put some things "elsewhere".
Install everything on bigger disk.
add a comment |
Placement of swap on SSD is a key element of efficiently working system.
While it will not help much for boot time and first run of programs, having swap on SSD may make work as painless as everything is on SSD.
Placement of other system parts is secondary problem.
Edit: I just understand, how green are you to ask such question. So, in such case, answer is: No. No, on Linux you cannot install stuff anywhere you want, like on Windows. Everything has a fixed place. Apt-get cannot put some things "elsewhere".
Install everything on bigger disk.
Placement of swap on SSD is a key element of efficiently working system.
While it will not help much for boot time and first run of programs, having swap on SSD may make work as painless as everything is on SSD.
Placement of other system parts is secondary problem.
Edit: I just understand, how green are you to ask such question. So, in such case, answer is: No. No, on Linux you cannot install stuff anywhere you want, like on Windows. Everything has a fixed place. Apt-get cannot put some things "elsewhere".
Install everything on bigger disk.
edited Feb 4 at 1:25
answered Feb 4 at 1:04
Maciej PolańskiMaciej Polański
12
12
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115363%2fthe-correct-way-to-split-hard-drives-with-ubuntu%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Perhaps the method suggested in this answer
– Charles Green
Feb 3 at 21:30
#1 is possible, but not for beginners: You must understand the filesystem, learn how to use the
mount
command, and learn how to edit /etc/fstab. Go ahead and try it and learn. #2 is simpler if you need more space today, or if you are unwilling to learn. Beyond that, it's a matter of preference.– user535733
Feb 4 at 1:17