Re: Changing the LABEL of an iso9660 file system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/19/18 5:31 AM, Kevin Wilson wrote:
> Hello,
> I have a USB stick on which I had in the past an Ubunutu installatilon.
> When I run "e2label /dev/sdb" I get:
> 
> e2label /dev/sdb
> e2label: Bad magic number in super-block while trying to open /dev/sdb
> /dev/sdb contains a iso9660 file system labelled 'Ubuntu-Server 17.04 amd64'
> 
> Now, I did not need this installation anymore, so I created a single
> Linux partition on the USB stick (/dev/sdb1)
> with fdisk, and labeled it as sandiskUSB.
> When I run:
> e2label /dev/sdb1
> I get
> sandiskUSB
> 
> Is there a way to change also the lablel of /dev/sdb to be sandiskUSB ?
> 
> Tying
> e2label /dev/sdb sandiskUSB
> does not work, it gives:
> e2label: Bad magic number in super-block while trying to open /dev/sdb
> /dev/sdb contains a iso9660 file system labelled 'Ubuntu-Server 17.04 amd64'

You can only use e2label on ext2/3/4 filesystems, not on entire block
devices. Had you formatted /dev/sdb ENTIRELY as an ext2/3/4 filesystem,
you could label it. This is born out by you creating a filesystem
partition via fdisk and being able to label that partition.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-     If Bill Gates got a dime for every time Windows crashes...     -
-              ...oh, wait.  He does.  THAT explains it!             -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux