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

Re: Where is the disk label stored?

On Sat, 05 Mar 2011 19:04:29 +0100, Hans-J. Ullrich wrote:

> I am searching for an entry, where a disk label is stored.
> Problem: Some time ago I formatted a sd-card and labelled it with the
> name "Debian Inst". In the meantime, I formatted this sd-card several
> times and deleted the label. But whenever I put the card in, it is seen
> as "Debian Inst" in KDE4 (I mean the hardware manager in the task bar).
> I tried also mlabel to make sure, the label is no more stored on the
> device, but it did not work. See:
> root@protheus7:~# mlabel -s /dev/sdb1 
> Mtools version 4.0.12, dated
> November 3rd, 2009 Usage: mlabel [-vscVn] [-N serial] drive:
> root@protheus7:~#

Hum... Google provides some hints:

# check the current label
mlabel -i /dev/sdb1 -s ::

It seems that mlabel man page lacks for some options, like explaining "-
v" (verbose) argument and also that "-i" which seems valid but neither 
present :-?
> Maybe it is a bug? So I checked with gparted, and there is sure no label
> existent.
> I also tried the following command:
> echo -n "           "|dd bs=1 seek=71 count=11 of=/dev/sdb1;echo -n
> "$NAME"|dd bs=1 seek=71 count=11 of=/dev/sdb1
> But I got no success, too. IMO the label is stored somewhere else and
> maybe bound to the hardware, i.e. the UUID or something.
> I hope, someone might know more, I will be happy if so.

It's weird. Have you tried by expressly changing (not deleting nor 
blanking) the label with another new one?



Reply to: