Results 1 to 8 of 8

Thread: Rename External Hard Drive

  1. #1
    Join Date
    Jul 2007
    Location
    Fort Collins, CO
    Beans
    22
    Distro
    Ubuntu 8.04 Hardy Heron

    Rename External Hard Drive

    Hi. I recently bought a Western Digital 250 GB external hard drive. When mounted, the name appears as "My Passport," but I want to rename it, mostly to get rid of the space between "My" and "Passport."

    Right-click, rename doesn't work, nor does highlight, F2.
    Is there a terminal command?

    Thanks

  2. #2
    Join Date
    Oct 2006
    Location
    NL, EU
    Beans
    1,476
    Distro
    Ubuntu Development Release

    Re: Rename External Hard Drive

    Hmmm...
    afaik you can only rename partitions when unmounted. So what I would try is to unmount the drive, fire up GParted and rename the partition.
    But you could also connect it to a windows box and do it from there. But then you would need a windows box, and not everyone has that readily available...
    I'm thinking about it

  3. #3
    forestpixie Guest

    Re: Rename External Hard Drive

    This worked for me renaming ext3

  4. #4
    Join Date
    May 2007
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Rename External Hard Drive

    You can install the metapackage ntfsprogs then use ntfslabel to give a better label to the drive (say it's sdb1). Unmount it, then run
    Code:
    sudo apt-get install ntfsprogs
    sudo ntfslabel /dev/sdb1 usbdisk
    where usbdisk is the new label for the hard drive (don't use a name with spaces)

  5. #5
    Join Date
    Jul 2007
    Location
    Fort Collins, CO
    Beans
    22
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Rename External Hard Drive

    I tried mounting in Windows, still no luck. It told me I didn't have permission. I'll give Gparted a shot though. Thanks

  6. #6
    Join Date
    Jan 2012
    Beans
    88

    Re: Rename External Hard Drive

    i know this is old but I need to frankenstein it. i have the exact same issue i got a 1tb WD tonight named My Passport. I need no spaces, as the op said. I tried the suggestion to install ntfsprogs, unmount the device, and then ntfsprogs /dev/sdb1 usbdisk (or whatever you wanna name it too) but it said
    Code:
     The device /dev/sdb1 doesn't exist
    so then i tried to mount the external and try it and i got this
    Code:
     Cannot make changes to a mounted device
    has anoyne ever figured out how to change the name of an external such as this? or maybe anything i'm doing anything wrong in this situation

  7. #7
    Join Date
    Apr 2011
    Location
    3rd Rock from the Sun
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Rename External Hard Drive

    I don't think you can change the Device name that easily. It is written in the firmware. However you can label and change labels of the partition. If your Disk has only one partition then unmount the disk and run:

    Code:
    $ sudo dosfslabel /dev/sdb1 drivelabel
    (or whatever) if the drive is FAT
    
    $ sudo e2label /dev/sdb1 drivelabel
    if the drive is ext4.
    Next time start your own thread, no need to dig up the dead.
    Last edited by fantab; March 10th, 2013 at 06:46 AM.
    "Evolution is Nature's way of issuing upgrades."


  8. #8
    Join Date
    Apr 2007
    Beans
    2,578
    Distro
    Ubuntu

    Re: Rename External Hard Drive

    It is all there in stock Ubuntu nowadays, with the "Disks" utility. Select the drive in the left pane, unmount with a button in the right pane, then click the gear button to select the command "Edit filesystem label".

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •