Give hdd space to ubuntu partition
i installed a fresh ubuntu 18.04LTS yesterday for the first time. I gave 12.7GB to root and 8.8GB to home from a dual boot ssd with 128gb only that is shared with windows 10. I tought i could just redirect what i install to HDD afterwards but i don't think is that simples. Is there a way to give like 100GB from my 1TB HDD to store my installations in ubuntu?
dual-boot partitioning disk-usage
New contributor
|
show 2 more comments
i installed a fresh ubuntu 18.04LTS yesterday for the first time. I gave 12.7GB to root and 8.8GB to home from a dual boot ssd with 128gb only that is shared with windows 10. I tought i could just redirect what i install to HDD afterwards but i don't think is that simples. Is there a way to give like 100GB from my 1TB HDD to store my installations in ubuntu?
dual-boot partitioning disk-usage
New contributor
Yes but not without cost. You can make any directory mount on any drive, and migrate any directory to another drive/device. When you install using dpkg/apt tools they install on specific directories; which is one way to achieve it (by having directories on different drives). This added complexity (changes to/etc/fstab
) has costs (maintenance & problem solving should things go wrong), so if you're not sure how to do that, it's probably not a good idea for you.
– guiverc
yesterday
Hum ok...so what's my best option? Delete ubuntu partitions from w10, and install again with root in ssd and home on the hdd?
– askubuntu
yesterday
@user535733 How to resize partitions? is in my opinion an inferior way to answer this question. Clearly it's a duplicate question, but if it gets closed it will be closed for the wrong reason because a better way of solving this specific problem exists. It's hard to be objective and egotistical at the same time without being labeled as opinion-based, but objectivity is my goal for this question.
– karel
yesterday
Another option is linking folders back into /home. askubuntu.com/questions/1013677/… & askubuntu.com/questions/1058756/… Probably better to then have /home as folder inside / instead of separate partition as then /home itself only has hidden files & folders for user settings, not all your data.
– oldfred
yesterday
@CharlesGreen How to resize partitions? is in my opinion an inferior way to answer this question. Clearly it's some kind of a duplicate question, but the duplicate question is a blunt instrument that doesn't do a very good job of answering the specific question that askubuntu asked. For this reason I don't think it's an urgent necessity that this question be closed.
– karel
21 hours ago
|
show 2 more comments
i installed a fresh ubuntu 18.04LTS yesterday for the first time. I gave 12.7GB to root and 8.8GB to home from a dual boot ssd with 128gb only that is shared with windows 10. I tought i could just redirect what i install to HDD afterwards but i don't think is that simples. Is there a way to give like 100GB from my 1TB HDD to store my installations in ubuntu?
dual-boot partitioning disk-usage
New contributor
i installed a fresh ubuntu 18.04LTS yesterday for the first time. I gave 12.7GB to root and 8.8GB to home from a dual boot ssd with 128gb only that is shared with windows 10. I tought i could just redirect what i install to HDD afterwards but i don't think is that simples. Is there a way to give like 100GB from my 1TB HDD to store my installations in ubuntu?
dual-boot partitioning disk-usage
dual-boot partitioning disk-usage
New contributor
New contributor
New contributor
asked yesterday
askubuntuaskubuntu
1
1
New contributor
New contributor
Yes but not without cost. You can make any directory mount on any drive, and migrate any directory to another drive/device. When you install using dpkg/apt tools they install on specific directories; which is one way to achieve it (by having directories on different drives). This added complexity (changes to/etc/fstab
) has costs (maintenance & problem solving should things go wrong), so if you're not sure how to do that, it's probably not a good idea for you.
– guiverc
yesterday
Hum ok...so what's my best option? Delete ubuntu partitions from w10, and install again with root in ssd and home on the hdd?
– askubuntu
yesterday
@user535733 How to resize partitions? is in my opinion an inferior way to answer this question. Clearly it's a duplicate question, but if it gets closed it will be closed for the wrong reason because a better way of solving this specific problem exists. It's hard to be objective and egotistical at the same time without being labeled as opinion-based, but objectivity is my goal for this question.
– karel
yesterday
Another option is linking folders back into /home. askubuntu.com/questions/1013677/… & askubuntu.com/questions/1058756/… Probably better to then have /home as folder inside / instead of separate partition as then /home itself only has hidden files & folders for user settings, not all your data.
– oldfred
yesterday
@CharlesGreen How to resize partitions? is in my opinion an inferior way to answer this question. Clearly it's some kind of a duplicate question, but the duplicate question is a blunt instrument that doesn't do a very good job of answering the specific question that askubuntu asked. For this reason I don't think it's an urgent necessity that this question be closed.
– karel
21 hours ago
|
show 2 more comments
Yes but not without cost. You can make any directory mount on any drive, and migrate any directory to another drive/device. When you install using dpkg/apt tools they install on specific directories; which is one way to achieve it (by having directories on different drives). This added complexity (changes to/etc/fstab
) has costs (maintenance & problem solving should things go wrong), so if you're not sure how to do that, it's probably not a good idea for you.
– guiverc
yesterday
Hum ok...so what's my best option? Delete ubuntu partitions from w10, and install again with root in ssd and home on the hdd?
– askubuntu
yesterday
@user535733 How to resize partitions? is in my opinion an inferior way to answer this question. Clearly it's a duplicate question, but if it gets closed it will be closed for the wrong reason because a better way of solving this specific problem exists. It's hard to be objective and egotistical at the same time without being labeled as opinion-based, but objectivity is my goal for this question.
– karel
yesterday
Another option is linking folders back into /home. askubuntu.com/questions/1013677/… & askubuntu.com/questions/1058756/… Probably better to then have /home as folder inside / instead of separate partition as then /home itself only has hidden files & folders for user settings, not all your data.
– oldfred
yesterday
@CharlesGreen How to resize partitions? is in my opinion an inferior way to answer this question. Clearly it's some kind of a duplicate question, but the duplicate question is a blunt instrument that doesn't do a very good job of answering the specific question that askubuntu asked. For this reason I don't think it's an urgent necessity that this question be closed.
– karel
21 hours ago
Yes but not without cost. You can make any directory mount on any drive, and migrate any directory to another drive/device. When you install using dpkg/apt tools they install on specific directories; which is one way to achieve it (by having directories on different drives). This added complexity (changes to
/etc/fstab
) has costs (maintenance & problem solving should things go wrong), so if you're not sure how to do that, it's probably not a good idea for you.– guiverc
yesterday
Yes but not without cost. You can make any directory mount on any drive, and migrate any directory to another drive/device. When you install using dpkg/apt tools they install on specific directories; which is one way to achieve it (by having directories on different drives). This added complexity (changes to
/etc/fstab
) has costs (maintenance & problem solving should things go wrong), so if you're not sure how to do that, it's probably not a good idea for you.– guiverc
yesterday
Hum ok...so what's my best option? Delete ubuntu partitions from w10, and install again with root in ssd and home on the hdd?
– askubuntu
yesterday
Hum ok...so what's my best option? Delete ubuntu partitions from w10, and install again with root in ssd and home on the hdd?
– askubuntu
yesterday
@user535733 How to resize partitions? is in my opinion an inferior way to answer this question. Clearly it's a duplicate question, but if it gets closed it will be closed for the wrong reason because a better way of solving this specific problem exists. It's hard to be objective and egotistical at the same time without being labeled as opinion-based, but objectivity is my goal for this question.
– karel
yesterday
@user535733 How to resize partitions? is in my opinion an inferior way to answer this question. Clearly it's a duplicate question, but if it gets closed it will be closed for the wrong reason because a better way of solving this specific problem exists. It's hard to be objective and egotistical at the same time without being labeled as opinion-based, but objectivity is my goal for this question.
– karel
yesterday
Another option is linking folders back into /home. askubuntu.com/questions/1013677/… & askubuntu.com/questions/1058756/… Probably better to then have /home as folder inside / instead of separate partition as then /home itself only has hidden files & folders for user settings, not all your data.
– oldfred
yesterday
Another option is linking folders back into /home. askubuntu.com/questions/1013677/… & askubuntu.com/questions/1058756/… Probably better to then have /home as folder inside / instead of separate partition as then /home itself only has hidden files & folders for user settings, not all your data.
– oldfred
yesterday
@CharlesGreen How to resize partitions? is in my opinion an inferior way to answer this question. Clearly it's some kind of a duplicate question, but the duplicate question is a blunt instrument that doesn't do a very good job of answering the specific question that askubuntu asked. For this reason I don't think it's an urgent necessity that this question be closed.
– karel
21 hours ago
@CharlesGreen How to resize partitions? is in my opinion an inferior way to answer this question. Clearly it's some kind of a duplicate question, but the duplicate question is a blunt instrument that doesn't do a very good job of answering the specific question that askubuntu asked. For this reason I don't think it's an urgent necessity that this question be closed.
– karel
21 hours ago
|
show 2 more comments
1 Answer
1
active
oldest
votes
There is a way to redirect what you install to the HDD afterwards by using custom folders for folders in /home
in order to span your home directory across multiple hard disks. In your case the multiple hard disks are the 128GB SSD and the 1TB HDD.
Example (xdg-user-dirs-update
- Update XDG user dir configuration):
xdg-user-dirs-update --set DOWNLOAD /media/askubuntu/1TB-HDD/Downloads/
would switch from /home/$USER/Downloads/
to /media/askubuntu/1TB-HDD/Downloads/
and downloaded files would then download to the HDD and not to the SSD. The same applies for all the other directories.
Both the local
~/.config/user-dirs.dirs
and global
/etc/xdg/user-dirs.defaults
configuration files use the following
environmental variable format to point to user directories:
XDG_DIRNAME_DIR="$HOME/directory_name"
An example configuration file
looks like this (these are all the template directories):
Results of
cat ~/.config/user-dirs.dirs
:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_VIDEOS_DIR="$HOME/Videos"
As
xdg-user-dirs
will source the local configuration file to point
to the appropriate user directories, it is therefore possible to
specify custom folders. For example, if a custom folder for the
XDG_DOWNLOAD_DIR
variable has been named$HOME/Internet
in
~/.config/user-dirs.dirs
any application that uses this variable
will use this directory.
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
});
}
});
askubuntu is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1114929%2fgive-hdd-space-to-ubuntu-partition%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There is a way to redirect what you install to the HDD afterwards by using custom folders for folders in /home
in order to span your home directory across multiple hard disks. In your case the multiple hard disks are the 128GB SSD and the 1TB HDD.
Example (xdg-user-dirs-update
- Update XDG user dir configuration):
xdg-user-dirs-update --set DOWNLOAD /media/askubuntu/1TB-HDD/Downloads/
would switch from /home/$USER/Downloads/
to /media/askubuntu/1TB-HDD/Downloads/
and downloaded files would then download to the HDD and not to the SSD. The same applies for all the other directories.
Both the local
~/.config/user-dirs.dirs
and global
/etc/xdg/user-dirs.defaults
configuration files use the following
environmental variable format to point to user directories:
XDG_DIRNAME_DIR="$HOME/directory_name"
An example configuration file
looks like this (these are all the template directories):
Results of
cat ~/.config/user-dirs.dirs
:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_VIDEOS_DIR="$HOME/Videos"
As
xdg-user-dirs
will source the local configuration file to point
to the appropriate user directories, it is therefore possible to
specify custom folders. For example, if a custom folder for the
XDG_DOWNLOAD_DIR
variable has been named$HOME/Internet
in
~/.config/user-dirs.dirs
any application that uses this variable
will use this directory.
add a comment |
There is a way to redirect what you install to the HDD afterwards by using custom folders for folders in /home
in order to span your home directory across multiple hard disks. In your case the multiple hard disks are the 128GB SSD and the 1TB HDD.
Example (xdg-user-dirs-update
- Update XDG user dir configuration):
xdg-user-dirs-update --set DOWNLOAD /media/askubuntu/1TB-HDD/Downloads/
would switch from /home/$USER/Downloads/
to /media/askubuntu/1TB-HDD/Downloads/
and downloaded files would then download to the HDD and not to the SSD. The same applies for all the other directories.
Both the local
~/.config/user-dirs.dirs
and global
/etc/xdg/user-dirs.defaults
configuration files use the following
environmental variable format to point to user directories:
XDG_DIRNAME_DIR="$HOME/directory_name"
An example configuration file
looks like this (these are all the template directories):
Results of
cat ~/.config/user-dirs.dirs
:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_VIDEOS_DIR="$HOME/Videos"
As
xdg-user-dirs
will source the local configuration file to point
to the appropriate user directories, it is therefore possible to
specify custom folders. For example, if a custom folder for the
XDG_DOWNLOAD_DIR
variable has been named$HOME/Internet
in
~/.config/user-dirs.dirs
any application that uses this variable
will use this directory.
add a comment |
There is a way to redirect what you install to the HDD afterwards by using custom folders for folders in /home
in order to span your home directory across multiple hard disks. In your case the multiple hard disks are the 128GB SSD and the 1TB HDD.
Example (xdg-user-dirs-update
- Update XDG user dir configuration):
xdg-user-dirs-update --set DOWNLOAD /media/askubuntu/1TB-HDD/Downloads/
would switch from /home/$USER/Downloads/
to /media/askubuntu/1TB-HDD/Downloads/
and downloaded files would then download to the HDD and not to the SSD. The same applies for all the other directories.
Both the local
~/.config/user-dirs.dirs
and global
/etc/xdg/user-dirs.defaults
configuration files use the following
environmental variable format to point to user directories:
XDG_DIRNAME_DIR="$HOME/directory_name"
An example configuration file
looks like this (these are all the template directories):
Results of
cat ~/.config/user-dirs.dirs
:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_VIDEOS_DIR="$HOME/Videos"
As
xdg-user-dirs
will source the local configuration file to point
to the appropriate user directories, it is therefore possible to
specify custom folders. For example, if a custom folder for the
XDG_DOWNLOAD_DIR
variable has been named$HOME/Internet
in
~/.config/user-dirs.dirs
any application that uses this variable
will use this directory.
There is a way to redirect what you install to the HDD afterwards by using custom folders for folders in /home
in order to span your home directory across multiple hard disks. In your case the multiple hard disks are the 128GB SSD and the 1TB HDD.
Example (xdg-user-dirs-update
- Update XDG user dir configuration):
xdg-user-dirs-update --set DOWNLOAD /media/askubuntu/1TB-HDD/Downloads/
would switch from /home/$USER/Downloads/
to /media/askubuntu/1TB-HDD/Downloads/
and downloaded files would then download to the HDD and not to the SSD. The same applies for all the other directories.
Both the local
~/.config/user-dirs.dirs
and global
/etc/xdg/user-dirs.defaults
configuration files use the following
environmental variable format to point to user directories:
XDG_DIRNAME_DIR="$HOME/directory_name"
An example configuration file
looks like this (these are all the template directories):
Results of
cat ~/.config/user-dirs.dirs
:
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_VIDEOS_DIR="$HOME/Videos"
As
xdg-user-dirs
will source the local configuration file to point
to the appropriate user directories, it is therefore possible to
specify custom folders. For example, if a custom folder for the
XDG_DOWNLOAD_DIR
variable has been named$HOME/Internet
in
~/.config/user-dirs.dirs
any application that uses this variable
will use this directory.
edited yesterday
answered yesterday
karelkarel
58.9k13128148
58.9k13128148
add a comment |
add a comment |
askubuntu is a new contributor. Be nice, and check out our Code of Conduct.
askubuntu is a new contributor. Be nice, and check out our Code of Conduct.
askubuntu is a new contributor. Be nice, and check out our Code of Conduct.
askubuntu is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1114929%2fgive-hdd-space-to-ubuntu-partition%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
Yes but not without cost. You can make any directory mount on any drive, and migrate any directory to another drive/device. When you install using dpkg/apt tools they install on specific directories; which is one way to achieve it (by having directories on different drives). This added complexity (changes to
/etc/fstab
) has costs (maintenance & problem solving should things go wrong), so if you're not sure how to do that, it's probably not a good idea for you.– guiverc
yesterday
Hum ok...so what's my best option? Delete ubuntu partitions from w10, and install again with root in ssd and home on the hdd?
– askubuntu
yesterday
@user535733 How to resize partitions? is in my opinion an inferior way to answer this question. Clearly it's a duplicate question, but if it gets closed it will be closed for the wrong reason because a better way of solving this specific problem exists. It's hard to be objective and egotistical at the same time without being labeled as opinion-based, but objectivity is my goal for this question.
– karel
yesterday
Another option is linking folders back into /home. askubuntu.com/questions/1013677/… & askubuntu.com/questions/1058756/… Probably better to then have /home as folder inside / instead of separate partition as then /home itself only has hidden files & folders for user settings, not all your data.
– oldfred
yesterday
@CharlesGreen How to resize partitions? is in my opinion an inferior way to answer this question. Clearly it's some kind of a duplicate question, but the duplicate question is a blunt instrument that doesn't do a very good job of answering the specific question that askubuntu asked. For this reason I don't think it's an urgent necessity that this question be closed.
– karel
21 hours ago