FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 09-11-2010, 09:59 PM
Robert Holtzman
 
Default device label

Tried to change the label on a thumb drive using

e2label /dev/sdb1 disk

and got "e2label: Bad magic number in super-block while trying to open
/dev/sdb
Couldn't find valid filesystem superblock."

fdisk -lu shows

Device Boot Start End Blocks Id System
/dev/sdb1 * 128 3915775 1957824 b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(242, 254, 63) logical=(243, 190, 11)

A search on the error message and on the output of disk turned up
several hits but they had to do with the inability to mount.

Also tried to use gparted but the label option was greyed out.

All this on a fully updated Lucid.

Any ideas?

--
Bob Holtzman
Key ID: 8D549279
"If you think you're getting free lunch,
check the price of the beer"
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-11-2010, 11:28 PM
Rashkae
 
Default device label

Robert Holtzman wrote:
> Tried to change the label on a thumb drive using
>
> e2label /dev/sdb1 disk
>
> and got "e2label: Bad magic number in super-block while trying to open
> /dev/sdb
> Couldn't find valid filesystem superblock."
>
> fdisk -lu shows
>
> Device Boot Start End Blocks Id System
> /dev/sdb1 * 128 3915775 1957824 b W95 FAT32
> Partition 1 has different physical/logical endings:
> phys=(242, 254, 63) logical=(243, 190, 11)
>
> A search on the error message and on the output of disk turned up
> several hits but they had to do with the inability to mount.
>
> Also tried to use gparted but the label option was greyed out.
>
> All this on a fully updated Lucid.
>
> Any ideas?
>
>

e2label is for ext2/3/4 filesystems. This is a Fat32 file system (aka:
ms-dos filesystem), so you need mtools.

Here's a good step by step: (although, it's a bit dated, so I don't know
if there's an easier way to do this now)

http://embraceubuntu.com/2006/03/01/editing-fat32-partition-labels-using-mtools/



--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-11-2010, 11:36 PM
Tom H
 
Default device label

On Sat, Sep 11, 2010 at 5:59 PM, Robert Holtzman <holtzm@cox.net> wrote:
> Tried to change the label on a thumb drive using
>
> e2label /dev/sdb1 disk
>
> and got "e2label: Bad magic number in super-block while trying to open
> /dev/sdb
> Couldn't find valid filesystem superblock."
>
> fdisk -lu shows
>
> * Device Boot * * *Start * * * * End * * *Blocks * Id *System
> /dev/sdb1 * * * * * * 128 * * 3915775 * * 1957824 * *b *W95 FAT32
> Partition 1 has different physical/logical endings:
> * * phys=(242, 254, 63) logical=(243, 190, 11)
>
> A search on the error message and on the output of disk turned up
> several hits but they had to do with the inability to mount.

e2label is for extX filesystems and fat32 filesystems don't have a superblock.

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-11-2010, 11:45 PM
Karl Auer
 
Default device label

On Sat, 2010-09-11 at 19:36 -0400, Tom H wrote:
> On Sat, Sep 11, 2010 at 5:59 PM, Robert Holtzman <holtzm@cox.net> wrote:
> > Tried to change the label on a thumb drive using
> > e2label /dev/sdb1 disk
> [...]
> > /dev/sdb1 * 128 3915775 1957824 b W95 FAT32


Try this:

sudo mlabel -i /dev/sdb1 -s ::your_new_label

Regards, K.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer@biplane.com.au) +61-2-64957160 (h)
http://www.biplane.com.au/kauer/ +61-428-957160 (mob)

GPG fingerprint: B386 7819 B227 2961 8301 C5A9 2EBC 754B CD97 0156
Old fingerprint: 07F3 1DF9 9D45 8BCD 7DD5 00CE 4A44 6A03 F43A 7DEF
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-12-2010, 06:06 AM
Robert Holtzman
 
Default device label

On Sat, Sep 11, 2010 at 07:28:12PM -0400, Rashkae wrote:
>
> e2label is for ext2/3/4 filesystems. This is a Fat32 file system (aka:
> ms-dos filesystem), so you need mtools.

You know, one of these days I'm going to sit down and actually *read* a
man page instead of just skimming it.


>
> Here's a good step by step: (although, it's a bit dated, so I don't know
> if there's an easier way to do this now)
>
> http://embraceubuntu.com/2006/03/01/editing-fat32-partition-labels-using-mtools/
>

I'll try it tomorrow.

--
Bob Holtzman
Key ID: 8D549279
"If you think you're getting free lunch,
check the price of the beer"
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 09-13-2010, 02:09 AM
Tom H
 
Default device label

You're welcome, although all that I did was point out that you
couldn't do it the way that you wanted. Two others pointed you to
mlabel...

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 09:39 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org