Results 1 to 5 of 5

Thread: labeling for diskpartitions

  1. #1
    Join Date
    May 2007
    Location
    Netherlands
    Beans
    639
    Distro
    Ubuntu 10.04 Lucid Lynx

    labeling for diskpartitions

    Hi all,
    In windows, you can give your HD partition a descriptive name.
    Is that also possible in linux. You know, so it isn't always refered to HDa0 or sda?
    Although I know what it means, if you have many HD's it becomes difficult to remember if the partition where you had all those unique files was the sda1 or the sda0
    Approach life & cooking with reckless abandon.

  2. #2
    Join Date
    Aug 2005
    Beans
    462

    Re: labeling for diskpartitions

    i think you can use LABEL= in your fstab.

    NOTE: there's a reason i mainly post in the Community Cafe and that's because i can run linux fine on my boxes, but i'm useless at any kind of support lol
    Thanks to the forums staff for your dedication and hard work
    (the admins changed my sig to that lol )

  3. #3
    Join Date
    Sep 2008
    Location
    Kirkland, Wa, USA
    Beans
    170
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: labeling for diskpartitions

    Yes - gparted can label your partitions (if they are not mounted). One way to do that is from either the "Live CD" or the "Gparted CD" (also bootable). Seems to me there are a couple of other utilities, but that is what I have used. You can also use the UUID of the disk (but if you think the "serial number" of a drive in windows is goofy, wait till you see what the UUID of a drive looks like.

    # sudo blkid

    will return a list of your partitions, their label (if present) and their UUID

    mikey
    You can never have too many gadgets or too much disk space
    The instructions said Windows NT or better, so I installed Ubuntu Linux !!

    mikey (aka mr.gadget2)

  4. #4
    Join Date
    Oct 2008
    Beans
    314

    Re: labeling for diskpartitions

    Quote Originally Posted by gpsmikey View Post
    Yes - gparted can label your partitions (if they are not mounted). One way to do that is from either the "Live CD" or the "Gparted CD" (also bootable). Seems to me there are a couple of other utilities, but that is what I have used. You can also use the UUID of the disk (but if you think the "serial number" of a drive in windows is goofy, wait till you see what the UUID of a drive looks like.

    # sudo blkid

    will return a list of your partitions, their label (if present) and their UUID

    mikey
    Never unmount your root or home partitions!

  5. #5
    Join Date
    Sep 2008
    Location
    Kirkland, Wa, USA
    Beans
    170
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: labeling for diskpartitions

    Well, yes, that is true - that was why I suggested booting from either the live cd or the gparted CD - that way, the / and /home partitions have not been mounted. But you are right- don't try it from within the OS by unmounting those partitions - you will discover powder burns on your foot most likely

    Here are a couple of links that you may find helpful (note that the one person said that while it was for USB drives, it applied to internal drives as well)

    https://help.ubuntu.com/community/RenameUSBDrive
    http://ubuntuforums.org/showthread.php?t=207389

    mikey
    Last edited by gpsmikey; November 29th, 2008 at 01:49 AM.
    You can never have too many gadgets or too much disk space
    The instructions said Windows NT or better, so I installed Ubuntu Linux !!

    mikey (aka mr.gadget2)

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
  •