Can I rename a partition of my external hard drive without damaging the files on the other partition? If so,...





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I am using Ubuntu 16.04 (it's a dual boot to windows 10 if that matters)
I could also do the renaming process on my mac. Also note that Ubuntu is on my computer hard drive, not the external.



I have an external hard drive with two partitions. One of them contains a large amount of important data (it would be difficult for me find a place to save this data while I do the partition). The other is empty.



I need to rename one of them (it can be the empty one) because they both have spaces in the name and this is interfering with some software and scripts I need to use.



Essentially, I want to know if it possible to rename the partition safely without backing up my files and, if so, how?










share|improve this question























  • Please remember to accept my answer if it was helpful. Thanks!

    – heynnema
    Feb 20 at 14:17


















0















I am using Ubuntu 16.04 (it's a dual boot to windows 10 if that matters)
I could also do the renaming process on my mac. Also note that Ubuntu is on my computer hard drive, not the external.



I have an external hard drive with two partitions. One of them contains a large amount of important data (it would be difficult for me find a place to save this data while I do the partition). The other is empty.



I need to rename one of them (it can be the empty one) because they both have spaces in the name and this is interfering with some software and scripts I need to use.



Essentially, I want to know if it possible to rename the partition safely without backing up my files and, if so, how?










share|improve this question























  • Please remember to accept my answer if it was helpful. Thanks!

    – heynnema
    Feb 20 at 14:17














0












0








0








I am using Ubuntu 16.04 (it's a dual boot to windows 10 if that matters)
I could also do the renaming process on my mac. Also note that Ubuntu is on my computer hard drive, not the external.



I have an external hard drive with two partitions. One of them contains a large amount of important data (it would be difficult for me find a place to save this data while I do the partition). The other is empty.



I need to rename one of them (it can be the empty one) because they both have spaces in the name and this is interfering with some software and scripts I need to use.



Essentially, I want to know if it possible to rename the partition safely without backing up my files and, if so, how?










share|improve this question














I am using Ubuntu 16.04 (it's a dual boot to windows 10 if that matters)
I could also do the renaming process on my mac. Also note that Ubuntu is on my computer hard drive, not the external.



I have an external hard drive with two partitions. One of them contains a large amount of important data (it would be difficult for me find a place to save this data while I do the partition). The other is empty.



I need to rename one of them (it can be the empty one) because they both have spaces in the name and this is interfering with some software and scripts I need to use.



Essentially, I want to know if it possible to rename the partition safely without backing up my files and, if so, how?







16.04 partitioning hard-drive external-hdd






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 15 at 21:44









Madeleine ThereseMadeleine Therese

1




1













  • Please remember to accept my answer if it was helpful. Thanks!

    – heynnema
    Feb 20 at 14:17



















  • Please remember to accept my answer if it was helpful. Thanks!

    – heynnema
    Feb 20 at 14:17

















Please remember to accept my answer if it was helpful. Thanks!

– heynnema
Feb 20 at 14:17





Please remember to accept my answer if it was helpful. Thanks!

– heynnema
Feb 20 at 14:17










2 Answers
2






active

oldest

votes


















0














As far as I know, renaming a partition, even if not empty, should not effect the data on it. Just be careful to rename, not repartition or reformat.



Look here for how to rename from either a GUI or terminal






share|improve this answer































    0














    There are a number of ways to re-label a partition. To cure your problem, remove the spaces in the label name, and replace them with "_" (underscores). ie: New_Label



    Note: Keep in mind that changing labels may cause problems in scripts, mount points, /etc/fstab, or commands that require path names.



    Note: File/disk backups are always a good idea.



    In the terminal...



    sudo tune2fs -L new_label /dev/sdaX # change the sdaX to the proper partition number



    In gparted...



    right-click on a partition and choose "Label File System"



    In Disks...



    from a pull-down menu and choose "Edit Filesystem Label"






    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%2f1118629%2fcan-i-rename-a-partition-of-my-external-hard-drive-without-damaging-the-files-on%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









      0














      As far as I know, renaming a partition, even if not empty, should not effect the data on it. Just be careful to rename, not repartition or reformat.



      Look here for how to rename from either a GUI or terminal






      share|improve this answer




























        0














        As far as I know, renaming a partition, even if not empty, should not effect the data on it. Just be careful to rename, not repartition or reformat.



        Look here for how to rename from either a GUI or terminal






        share|improve this answer


























          0












          0








          0







          As far as I know, renaming a partition, even if not empty, should not effect the data on it. Just be careful to rename, not repartition or reformat.



          Look here for how to rename from either a GUI or terminal






          share|improve this answer













          As far as I know, renaming a partition, even if not empty, should not effect the data on it. Just be careful to rename, not repartition or reformat.



          Look here for how to rename from either a GUI or terminal







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 15 at 22:04









          colbycdevcolbycdev

          14310




          14310

























              0














              There are a number of ways to re-label a partition. To cure your problem, remove the spaces in the label name, and replace them with "_" (underscores). ie: New_Label



              Note: Keep in mind that changing labels may cause problems in scripts, mount points, /etc/fstab, or commands that require path names.



              Note: File/disk backups are always a good idea.



              In the terminal...



              sudo tune2fs -L new_label /dev/sdaX # change the sdaX to the proper partition number



              In gparted...



              right-click on a partition and choose "Label File System"



              In Disks...



              from a pull-down menu and choose "Edit Filesystem Label"






              share|improve this answer






























                0














                There are a number of ways to re-label a partition. To cure your problem, remove the spaces in the label name, and replace them with "_" (underscores). ie: New_Label



                Note: Keep in mind that changing labels may cause problems in scripts, mount points, /etc/fstab, or commands that require path names.



                Note: File/disk backups are always a good idea.



                In the terminal...



                sudo tune2fs -L new_label /dev/sdaX # change the sdaX to the proper partition number



                In gparted...



                right-click on a partition and choose "Label File System"



                In Disks...



                from a pull-down menu and choose "Edit Filesystem Label"






                share|improve this answer




























                  0












                  0








                  0







                  There are a number of ways to re-label a partition. To cure your problem, remove the spaces in the label name, and replace them with "_" (underscores). ie: New_Label



                  Note: Keep in mind that changing labels may cause problems in scripts, mount points, /etc/fstab, or commands that require path names.



                  Note: File/disk backups are always a good idea.



                  In the terminal...



                  sudo tune2fs -L new_label /dev/sdaX # change the sdaX to the proper partition number



                  In gparted...



                  right-click on a partition and choose "Label File System"



                  In Disks...



                  from a pull-down menu and choose "Edit Filesystem Label"






                  share|improve this answer















                  There are a number of ways to re-label a partition. To cure your problem, remove the spaces in the label name, and replace them with "_" (underscores). ie: New_Label



                  Note: Keep in mind that changing labels may cause problems in scripts, mount points, /etc/fstab, or commands that require path names.



                  Note: File/disk backups are always a good idea.



                  In the terminal...



                  sudo tune2fs -L new_label /dev/sdaX # change the sdaX to the proper partition number



                  In gparted...



                  right-click on a partition and choose "Label File System"



                  In Disks...



                  from a pull-down menu and choose "Edit Filesystem Label"







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Feb 16 at 0:08

























                  answered Feb 16 at 0:00









                  heynnemaheynnema

                  21.8k32361




                  21.8k32361






























                      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%2f1118629%2fcan-i-rename-a-partition-of-my-external-hard-drive-without-damaging-the-files-on%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

                      Human spaceflight

                      Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                      File:DeusFollowingSea.jpg