Re: Option LABEL

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

 



Hallo, Chris,

Du meintest am 03.01.13:

>>> MBR has no mechanism for labeling the disk itself or the
>>> partitions. So /dev/sda cannot have a label or a name.

>> Sure?

> Yes. MBR itself has no place holder to encode a disk name or
> partition name. http://en.wikipedia.org/wiki/Master_boot_record

I've just played a bit ...

   btrfs-show

tells

**
** WARNING: this program is considered deprecated
** Please consider to switch to the btrfs utility
**
Label: USBmm  uuid: 43ad1782-5d1c-4211-9333-506bcfdbc3a5
	Total devices 1 FS bytes used 28.00KB
	devid    1 size 3.78GB used 423.50MB path /dev/sdb

Label: mylabel  uuid: e9716633-49f1-44a0-a3b4-90ba9736a540
	Total devices 3 FS bytes used 28.00KB
	devid    2 size 1.00GB used 110.38MB path /dev/sdb2
	devid    1 size 1.00GB used 275.94MB path /dev/sdb1
	devid    3 size 1.00GB used 263.94MB path /dev/sdb3

Btrfs Btrfs v0.19

# ----------------------------------------

The "USBmm" entry remains from

   mkfs.btrfs -d raid0 -m raid1 -L USBmm /dev/sdb

Then I run "fdisk /dev/sdb" and created 4 partitions on "/dev/sdb"  
without previous overwriting it with zeros.

And then

   mkfs.btrfs -d raid0 -m raid1 -L mylabel /dev/sdb1 /dev/sdb2 /dev/sdb3

Inspecting the first sectors of "/dev/sdb" shows the string "USBmm" at  
the beginning of the second 64-kByte block (0x10120 ... 0x1012f).

The "mylabel" entries are somewhere after the first 128 kByte.

Viele Gruesse!
Helmut
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux