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