Results 1 to 8 of 8

Thread: Change partition label

  1. #1

    Default Change partition label

    How do I change the partition label of a drive in openSuse. I am using KDE.
    I have this howto: Editing FAT32 Partition Labels using mtools

    But its too long and requires to edit configuration files, when actually for removable media this is a very long cycle.

  2. #2
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,500
    Blog Entries
    48

    Smile Re: Change partition label

    I suggest you open up YaST and enter the root user password then goto:

    YaST / Software / Software Management

    Search first for dosfstools & then for ntfsprogs and make sure both applications are installed and install them if not installed. To change a FAT partition disk label, use the terminal command:

    Code:
      sudo /sbin/dosfslabel DEVICE [LABEL]
    To change a NTFS partition Label use the following terminal command:

    Code:
    sudo /usr/sbin/ntfslabel [options] device [new-label]
    To get a complete run down on your options, use the terminal commands man dosfslabel & man ntfslabel. If you look at the file listing tab for dosfstools & ntfsprogs in Software Management, you will see many other commands (in bold) associated with these two packages.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  3. #3
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,693

    Default Re: Change partition label

    xolve wrote:

    >
    > How do I change the partition label of a drive in openSuse. I am using
    > KDE.
    > I have this howto: 'Editing FAT32 Partition Labels using mtools '
    > (http://tinyurl.com/2v2h5f8)
    >
    > But its too long and requires to edit configuration files, when
    > actually for removable media this is a very long cycle.
    >

    For removable media you can use (be careful this is an example from my
    machine, your removable media is for sure not /dev/sdb1!!!!)
    DO NOT COPY AND PASTE (check your device name first)
    Code:
    sudo mlabel -i /dev/sdb1 ::"usbstick"
    which renames my stick to usbstick. No need to do anything with
    configuration files?

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.4 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.4 | nVidia
    ION | 3GB Ram

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    16,040

    Default Re: Change partition label

    Quote Originally Posted by xolve View Post
    How do I change the partition label of a drive in openSuse. I am using KDE.
    I have this howto: Editing FAT32 Partition Labels using mtools

    But its too long and requires to edit configuration files, when actually for removable media this is a very long cycle.
    Those labels are not in fact labels of the partition. They are labels of the file system. Thus all the anwsers above are file stem type dependent.

    You do not realy specify the type of file system on that partition. Only the fact that you mention some documentation about FAT32 point in a certain direction, but on the other hand it may be misleading.
    Thus be sure you know what type the file system is before you decide for one of the methods mentioned above.

    (For ext2/3/4 it is tune2fs -L <volume-label)
    Henk van Velden

  5. #5
    Join Date
    Jun 2008
    Location
    Berlin
    Posts
    2,108

    Default Re: Change partition label

    (For ext2/3/4 it is tune2fs -L <volume-label)
    Don't forget the device. :-)

    Code:
    tune2fs -L some_label /dev/sdxn
    As hcvv mentioned, before proceeding we need to know the exact filesystem. An easy way to find out is simply mounting the respective device, open a console and check the output of

    Code:
    mount

  6. #6

    Default Re: Change partition label

    Thanks all. All your replies are very helpful.

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    16,040

    Default Re: Change partition label

    Quote Originally Posted by gropiuskalle View Post
    Don't forget the device. :-)
    Code:
    tune2fs -L some_label /dev/sdxn
    I did not give a complete statement (else I would have put it between CODE tags, I gave a hint to look at te tool tune2fs and thus of course to it'a man page.
    Henk van Velden

  8. #8
    Join Date
    Jun 2008
    Location
    Berlin
    Posts
    2,108

    Default Re: Change partition label

    Ooookay. Sorry for that.

Tags for this Thread

Posting Permissions

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