how to rename your drive?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
3
down vote

favorite












I want to rename my drive located at /media/Lenovo Drive to /media/LenovoDrive so that ndk white space problem can be resolved ...please give me your suggestion....I am using ubuntu







share|improve this question




















  • Did you create your own folder in /media for that mount? If you did, all you should have to do is to unmount it first, rename the folder, then update /etc/fstab to the new folder name then remount the drive by using mount -a or sudo mount -a.
    – Terrance
    May 9 at 4:17














up vote
3
down vote

favorite












I want to rename my drive located at /media/Lenovo Drive to /media/LenovoDrive so that ndk white space problem can be resolved ...please give me your suggestion....I am using ubuntu







share|improve this question




















  • Did you create your own folder in /media for that mount? If you did, all you should have to do is to unmount it first, rename the folder, then update /etc/fstab to the new folder name then remount the drive by using mount -a or sudo mount -a.
    – Terrance
    May 9 at 4:17












up vote
3
down vote

favorite









up vote
3
down vote

favorite











I want to rename my drive located at /media/Lenovo Drive to /media/LenovoDrive so that ndk white space problem can be resolved ...please give me your suggestion....I am using ubuntu







share|improve this question












I want to rename my drive located at /media/Lenovo Drive to /media/LenovoDrive so that ndk white space problem can be resolved ...please give me your suggestion....I am using ubuntu









share|improve this question











share|improve this question




share|improve this question










asked May 9 at 1:52









mmm

162




162











  • Did you create your own folder in /media for that mount? If you did, all you should have to do is to unmount it first, rename the folder, then update /etc/fstab to the new folder name then remount the drive by using mount -a or sudo mount -a.
    – Terrance
    May 9 at 4:17
















  • Did you create your own folder in /media for that mount? If you did, all you should have to do is to unmount it first, rename the folder, then update /etc/fstab to the new folder name then remount the drive by using mount -a or sudo mount -a.
    – Terrance
    May 9 at 4:17















Did you create your own folder in /media for that mount? If you did, all you should have to do is to unmount it first, rename the folder, then update /etc/fstab to the new folder name then remount the drive by using mount -a or sudo mount -a.
– Terrance
May 9 at 4:17




Did you create your own folder in /media for that mount? If you did, all you should have to do is to unmount it first, rename the folder, then update /etc/fstab to the new folder name then remount the drive by using mount -a or sudo mount -a.
– Terrance
May 9 at 4:17










2 Answers
2






active

oldest

votes

















up vote
3
down vote













Use tune2fs to change your volume label (suppose the volume is sdb1)



sudo tune2fs -L LenovoDrive /dev/sdb1


Note that current Ubuntus actually mount at /media/username/xxx, so
you must be running an old copy. Consider updating, 18.04 has just been released.






share|improve this answer




















  • This works for partitions with ext2, ext3 and ext4 file systems. But you need another tool for FAT32 and yet other tools for other file systems. gparted can do it for several file systems (if you have a graphical desktop environment).
    – sudodus
    May 9 at 11:11

















up vote
2
down vote













GUI ways



You can use the following GUI tools to change filesystem label.



GNOME Disks (gnome-disk-utility)



  1. Open it (in MATE - Applications -> Accessories -> Disks).

  2. Select partition and unmount umount (it is tooltip is Unmount selected partition)

  3. Click on gears icon gears icon (it is tooltip is Additional partition options)


  4. Then select Edit Filesystem drop-down menu



    Edit Filesystem menu




  5. Set filesystem label in opened window and click Change:



    Filesystem Label



Gparted (gparted-pkexec)



  1. Open it (in MATE - System -> Administration -> GParted).


  2. Select proper disk in top right drop-down menu:



    disk selection




  3. Select partition in list below



    select partition




  4. In Partition menu click Label File System, change Label



    label FS



  5. Click OK


  6. Confirm operation by clicking on enter image description here (tooltip is Apply All Operations).





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',
    convertImagesToLinks: true,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    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%2f1033824%2fhow-to-rename-your-drive%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    Use tune2fs to change your volume label (suppose the volume is sdb1)



    sudo tune2fs -L LenovoDrive /dev/sdb1


    Note that current Ubuntus actually mount at /media/username/xxx, so
    you must be running an old copy. Consider updating, 18.04 has just been released.






    share|improve this answer




















    • This works for partitions with ext2, ext3 and ext4 file systems. But you need another tool for FAT32 and yet other tools for other file systems. gparted can do it for several file systems (if you have a graphical desktop environment).
      – sudodus
      May 9 at 11:11














    up vote
    3
    down vote













    Use tune2fs to change your volume label (suppose the volume is sdb1)



    sudo tune2fs -L LenovoDrive /dev/sdb1


    Note that current Ubuntus actually mount at /media/username/xxx, so
    you must be running an old copy. Consider updating, 18.04 has just been released.






    share|improve this answer




















    • This works for partitions with ext2, ext3 and ext4 file systems. But you need another tool for FAT32 and yet other tools for other file systems. gparted can do it for several file systems (if you have a graphical desktop environment).
      – sudodus
      May 9 at 11:11












    up vote
    3
    down vote










    up vote
    3
    down vote









    Use tune2fs to change your volume label (suppose the volume is sdb1)



    sudo tune2fs -L LenovoDrive /dev/sdb1


    Note that current Ubuntus actually mount at /media/username/xxx, so
    you must be running an old copy. Consider updating, 18.04 has just been released.






    share|improve this answer












    Use tune2fs to change your volume label (suppose the volume is sdb1)



    sudo tune2fs -L LenovoDrive /dev/sdb1


    Note that current Ubuntus actually mount at /media/username/xxx, so
    you must be running an old copy. Consider updating, 18.04 has just been released.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered May 9 at 3:26









    ubfan1

    8,60631527




    8,60631527











    • This works for partitions with ext2, ext3 and ext4 file systems. But you need another tool for FAT32 and yet other tools for other file systems. gparted can do it for several file systems (if you have a graphical desktop environment).
      – sudodus
      May 9 at 11:11
















    • This works for partitions with ext2, ext3 and ext4 file systems. But you need another tool for FAT32 and yet other tools for other file systems. gparted can do it for several file systems (if you have a graphical desktop environment).
      – sudodus
      May 9 at 11:11















    This works for partitions with ext2, ext3 and ext4 file systems. But you need another tool for FAT32 and yet other tools for other file systems. gparted can do it for several file systems (if you have a graphical desktop environment).
    – sudodus
    May 9 at 11:11




    This works for partitions with ext2, ext3 and ext4 file systems. But you need another tool for FAT32 and yet other tools for other file systems. gparted can do it for several file systems (if you have a graphical desktop environment).
    – sudodus
    May 9 at 11:11












    up vote
    2
    down vote













    GUI ways



    You can use the following GUI tools to change filesystem label.



    GNOME Disks (gnome-disk-utility)



    1. Open it (in MATE - Applications -> Accessories -> Disks).

    2. Select partition and unmount umount (it is tooltip is Unmount selected partition)

    3. Click on gears icon gears icon (it is tooltip is Additional partition options)


    4. Then select Edit Filesystem drop-down menu



      Edit Filesystem menu




    5. Set filesystem label in opened window and click Change:



      Filesystem Label



    Gparted (gparted-pkexec)



    1. Open it (in MATE - System -> Administration -> GParted).


    2. Select proper disk in top right drop-down menu:



      disk selection




    3. Select partition in list below



      select partition




    4. In Partition menu click Label File System, change Label



      label FS



    5. Click OK


    6. Confirm operation by clicking on enter image description here (tooltip is Apply All Operations).





    share|improve this answer
























      up vote
      2
      down vote













      GUI ways



      You can use the following GUI tools to change filesystem label.



      GNOME Disks (gnome-disk-utility)



      1. Open it (in MATE - Applications -> Accessories -> Disks).

      2. Select partition and unmount umount (it is tooltip is Unmount selected partition)

      3. Click on gears icon gears icon (it is tooltip is Additional partition options)


      4. Then select Edit Filesystem drop-down menu



        Edit Filesystem menu




      5. Set filesystem label in opened window and click Change:



        Filesystem Label



      Gparted (gparted-pkexec)



      1. Open it (in MATE - System -> Administration -> GParted).


      2. Select proper disk in top right drop-down menu:



        disk selection




      3. Select partition in list below



        select partition




      4. In Partition menu click Label File System, change Label



        label FS



      5. Click OK


      6. Confirm operation by clicking on enter image description here (tooltip is Apply All Operations).





      share|improve this answer






















        up vote
        2
        down vote










        up vote
        2
        down vote









        GUI ways



        You can use the following GUI tools to change filesystem label.



        GNOME Disks (gnome-disk-utility)



        1. Open it (in MATE - Applications -> Accessories -> Disks).

        2. Select partition and unmount umount (it is tooltip is Unmount selected partition)

        3. Click on gears icon gears icon (it is tooltip is Additional partition options)


        4. Then select Edit Filesystem drop-down menu



          Edit Filesystem menu




        5. Set filesystem label in opened window and click Change:



          Filesystem Label



        Gparted (gparted-pkexec)



        1. Open it (in MATE - System -> Administration -> GParted).


        2. Select proper disk in top right drop-down menu:



          disk selection




        3. Select partition in list below



          select partition




        4. In Partition menu click Label File System, change Label



          label FS



        5. Click OK


        6. Confirm operation by clicking on enter image description here (tooltip is Apply All Operations).





        share|improve this answer












        GUI ways



        You can use the following GUI tools to change filesystem label.



        GNOME Disks (gnome-disk-utility)



        1. Open it (in MATE - Applications -> Accessories -> Disks).

        2. Select partition and unmount umount (it is tooltip is Unmount selected partition)

        3. Click on gears icon gears icon (it is tooltip is Additional partition options)


        4. Then select Edit Filesystem drop-down menu



          Edit Filesystem menu




        5. Set filesystem label in opened window and click Change:



          Filesystem Label



        Gparted (gparted-pkexec)



        1. Open it (in MATE - System -> Administration -> GParted).


        2. Select proper disk in top right drop-down menu:



          disk selection




        3. Select partition in list below



          select partition




        4. In Partition menu click Label File System, change Label



          label FS



        5. Click OK


        6. Confirm operation by clicking on enter image description here (tooltip is Apply All Operations).






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 9 at 9:42









        N0rbert

        15k33069




        15k33069






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1033824%2fhow-to-rename-your-drive%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            pylint3 and pip3 broken

            Missing snmpget and snmpwalk

            How to enroll fingerprints to Ubuntu 17.10 with VFS491