cannot e2label NTFS partition on external HDD

Nils Kassube kassube at gmx.net
Wed Jun 18 06:11:03 UTC 2008


SYNass IT Ubuntu / Linux wrote:
> To identify these partitions exactly i tried to label as following:
>
> sna at WS222:~$ sudo e2label /dev/sdb1 LD149ext3
> [sudo] password for sna:
>
> Seems OK !
>
> But I am unable to create new folder/s !?

Did you try that as root? This should work:

sudo mount /dev/sdb1 /mnt
sudo mkdir /mnt/$USER
sudo chown $USER: /mnt/$USER

This will mount the disk at "/mnt" (replace with another mount point, if 
necessary). After that you should have the directory /mnt/$USER writeable 
for you as normal user.

> Labeling the second (ntfs) partition gives following error message:
>
> sna at WS222:~$ sudo e2label /dev/sdb2 LD149ntfs
> e2label: Bad magic number in super-block while trying to open /dev/sdb2
> Couldn't find valid filesystem superblock.

From "man e2label":

| e2label - Change the label on an ext2/ext3 filesystem

NTFS isn't ext2/ext3.

But I can't tell you how to label an NTFS partition other than using 
Windows.


Nils




More information about the ubuntu-users mailing list