Announcement

Collapse
No announcement yet.

[SOLVED] e2label - why didn't it work?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] e2label - why didn't it work?

    I have two external USB HDs. Neither are identified in /etc/fstab by choice. I access them via Dolphin when needed. Neither had a label.

    I decided to set labels for both using e2label from the console, but it failed with:
    e2label: Bad magic number in super-block while trying to open /dev/sdx
    Couldn't find valid filesystem superblock.
    whether I use /dev/sdx or /dev/sdx1. I had to boot into GParted and set the labels there.

    Why wouldn't e2label work?
    Using Kubuntu Linux since March 23, 2007
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    #2
    Re: e2label - why didn't it work?

    In the words of Homer Simpson: "Doh!" :P

    Ubuntu Documentation > Community Documentation > RenameUSBDrive

    Unmount the Partition

    Partitions generally need to be unmounted before you can fiddle with them, so unmount the partition of the device you want to change the label for
    Yup. Unmounted, both of my USB HDs can be labeled using e2label.

    "The only thing wrong with the Operating System is the nut attached to the keyboard."
    Using Kubuntu Linux since March 23, 2007
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: [SOLVED] e2label - why didn't it work?

      A typical case of Pebkac (Problem exists between keyboard and chair)
      Shinda Sekai Sensen<br /><br />Kubuntu Maverick RC x64 w/ Kde 4.5.2 (main)<br />Kubuntu 10.04 x64 w/ Kde 4.5.1 to be wiped, no point in keeping it any longer

      Comment


        #4
        Re: [SOLVED] e2label - why didn't it work?

        A layer 8 issue?

        Now I know why I could enter a label for my partitions, I didn't mount them before!
        Multibooting: Kubuntu Noble 24.04
        Before: Jammy 22.04, Focal 20.04, Precise 12.04 Xenial 16.04 and Bionic 18.04
        Win XP, 7 & 10 sadly
        Using Linux since June, 2008

        Comment

        Working...
        X