How can I give space on another drive to my Ubuntu partition?












3















I installed a fresh Ubuntu 18.04 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 thought I could just redirect what I install to HDD afterwards but I don't think it's that simple.



Is there a way to give like 100GB from my 1TB HDD to store my installations in Ubuntu?










share|improve this question

























  • 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
    Feb 2 at 8:36











  • 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
    Feb 2 at 9:52











  • @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
    Feb 2 at 12:16













  • 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
    Feb 2 at 14:48











  • @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
    Feb 3 at 10:03


















3















I installed a fresh Ubuntu 18.04 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 thought I could just redirect what I install to HDD afterwards but I don't think it's that simple.



Is there a way to give like 100GB from my 1TB HDD to store my installations in Ubuntu?










share|improve this question

























  • 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
    Feb 2 at 8:36











  • 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
    Feb 2 at 9:52











  • @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
    Feb 2 at 12:16













  • 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
    Feb 2 at 14:48











  • @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
    Feb 3 at 10:03
















3












3








3


0






I installed a fresh Ubuntu 18.04 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 thought I could just redirect what I install to HDD afterwards but I don't think it's that simple.



Is there a way to give like 100GB from my 1TB HDD to store my installations in Ubuntu?










share|improve this question
















I installed a fresh Ubuntu 18.04 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 thought I could just redirect what I install to HDD afterwards but I don't think it's that simple.



Is there a way to give like 100GB from my 1TB HDD to store my installations in Ubuntu?







dual-boot partitioning disk-usage






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 6 at 19:10









Zanna

51.1k13138242




51.1k13138242










asked Feb 2 at 8:11









askubuntuaskubuntu

261




261













  • 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
    Feb 2 at 8:36











  • 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
    Feb 2 at 9:52











  • @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
    Feb 2 at 12:16













  • 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
    Feb 2 at 14:48











  • @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
    Feb 3 at 10:03





















  • 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
    Feb 2 at 8:36











  • 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
    Feb 2 at 9:52











  • @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
    Feb 2 at 12:16













  • 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
    Feb 2 at 14:48











  • @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
    Feb 3 at 10:03



















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
Feb 2 at 8:36





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
Feb 2 at 8:36













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
Feb 2 at 9:52





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
Feb 2 at 9:52













@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
Feb 2 at 12:16







@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
Feb 2 at 12:16















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
Feb 2 at 14:48





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
Feb 2 at 14:48













@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
Feb 3 at 10:03







@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
Feb 3 at 10:03












1 Answer
1






active

oldest

votes


















4














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.







share|improve this answer

























    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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114929%2fhow-can-i-give-space-on-another-drive-to-my-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









    4














    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.







    share|improve this answer






























      4














      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.







      share|improve this answer




























        4












        4








        4







        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.







        share|improve this answer















        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.








        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Feb 2 at 12:35

























        answered Feb 2 at 11:53









        karelkarel

        60.6k13131155




        60.6k13131155






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1114929%2fhow-can-i-give-space-on-another-drive-to-my-ubuntu-partition%23new-answer', 'question_page');
            }
            );

            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







            Popular posts from this blog

            Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

            ComboBox Display Member on multiple fields

            Is it possible to collect Nectar points via Trainline?