Re: LABEL only 1 device

2012-02-29 Thread Duncan
Karel Zak posted on Tue, 28 Feb 2012 23:35:57 +0100 as excerpted: > On Sun, Feb 26, 2012 at 06:07:31PM +, Duncan wrote: >> Unfortunately, since gpt is reasonably new in terms of filesystem and >> partitioning tools, there isn't really anything (mount, etc) that makes >> /use/ of that label yet

Re: LABEL only 1 device

2012-02-28 Thread Karel Zak
On Sun, Feb 26, 2012 at 06:07:31PM +, Duncan wrote: > Unfortunately, since gpt is reasonably new in terms of filesystem and > partitioning tools, there isn't really anything (mount, etc) that makes > /use/ of that label yet, udev exports GPT labels and uuids by symlinks, see ls /dev/disk/

Re: LABEL only 1 device

2012-02-27 Thread Helmut Hullen
Hallo, Hugo, Du meintest am 27.02.12: >> But there's a small difference: >> >> mke2fs -L MyLabel /dev/sdn4 >> >> only sets/changes the label (ok - it tests the type of the partition >> and refuses labeling if the type doesn't fit). >OK, I have just tried this out. It does set the fil

Re: LABEL only 1 device

2012-02-27 Thread Hugo Mills
On Mon, Feb 27, 2012 at 10:15:00PM +0100, Helmut Hullen wrote: > Du meintest am 27.02.12: > > >>>I've said this several times: Your expectations are wrong. You > >>> don't label partitions. > > >> Yes - now I know. > >> But I'm afraid other people also expect wrong - when I use > >> mkfs.ext[

Re: LABEL only 1 device

2012-02-27 Thread Felix Blanke
Hi Helmut, are you sure that 'mkfs.ext2/3/4 -L "label" /dev/xxx' doesn't create a new fs? Afaik to change a label of a given (ext2/3/4) filesystem you should use tune2fs. I don't have a linux system available right now but this is what I would expect and what would make a lot more sense th

Re: LABEL only 1 device

2012-02-27 Thread Hugo Mills
On Mon, Feb 27, 2012 at 10:15:00PM +0100, Helmut Hullen wrote: > Du meintest am 27.02.12: > > >>>I've said this several times: Your expectations are wrong. You > >>> don't label partitions. > > >> Yes - now I know. > >> But I'm afraid other people also expect wrong - when I use > >> mkfs.ext[

Re: LABEL only 1 device

2012-02-27 Thread Helmut Hullen
Hallo, Duncan, Du meintest am 27.02.12: >>>I've said this several times: Your expectations are wrong. You >>> don't label partitions. >> Yes - now I know. >> But I'm afraid other people also expect wrong - when I use >> mkfs.ext[234] then this option works (in another way than with >> "mkfs.

Re: LABEL only 1 device

2012-02-27 Thread Duncan
Helmut Hullen posted on Mon, 27 Feb 2012 11:27:00 +0100 as excerpted: > Du meintest am 27.02.12: > mkfs.btrfs creates a new filesystem. The -L option sets the label for the newly-created FS. >>> The safest way may be deleting this option ... it seems to work as >>> expected only whe

Re: LABEL only 1 device

2012-02-27 Thread Helmut Hullen
Hallo, David, Du meintest am 27.02.12: [deleting btrfs partition] >>OK, the real problem you're seeing is that when btrfs removes a >> device from the filesystem, that device is not modified in any way. >> This means that the old superblock is left behind on it, containing >> the FS label in

Re: LABEL only 1 device

2012-02-27 Thread David Sterba
On Sun, Feb 26, 2012 at 04:44:00PM +, Hugo Mills wrote: >OK, the real problem you're seeing is that when btrfs removes a > device from the filesystem, that device is not modified in any way. > This means that the old superblock is left behind on it, containing > the FS label information. Wh

Re: LABEL only 1 device

2012-02-27 Thread Helmut Hullen
Hallo, Hugo, Du meintest am 27.02.12: >>>mkfs.btrfs creates a new filesystem. The -L option sets the >>>label >>> for the newly-created FS. It *cannot* be used to change the label >>> of an existing FS. >> The safest way may be deleting this option ... it seems to work as >> expected onl

Re: LABEL only 1 device

2012-02-27 Thread Hugo Mills
On Mon, Feb 27, 2012 at 07:44:00AM +0100, Helmut Hullen wrote: > Hallo, Hugo, > > Du meintest am 26.02.12: > > >mkfs.btrfs creates a new filesystem. The -L option sets the label > > for the newly-created FS. It *cannot* be used to change the label of > > an existing FS. > > The safest way ma

Re: LABEL only 1 device

2012-02-26 Thread Helmut Hullen
Hallo, Hugo, Du meintest am 26.02.12: >mkfs.btrfs creates a new filesystem. The -L option sets the label > for the newly-created FS. It *cannot* be used to change the label of > an existing FS. The safest way may be deleting this option ... it seems to work as expected only when I create a

Re: LABEL only 1 device

2012-02-26 Thread Helmut Hullen
Hallo, Hugo, Du meintest am 26.02.12: >>> What you need to do is, immediately after >>> removing a device from the FS, zero the first part of the partition >>> with dd and /dev/zero. >> >> Ok - I'll try again (not today ...). >> If I remember correct in early times deleting only the first block

Re: LABEL only 1 device

2012-02-26 Thread Duncan
Hugo Mills posted on Sun, 26 Feb 2012 16:44:00 + as excerpted: >> I prefer LABELling the devices/partitions, and then I'd seen that the >> option "-L" makes problems when I use it for more than 1 device/ >> partition. > >As far as I know, you can't label partitions or devices. Labels are

Re: LABEL only 1 device

2012-02-26 Thread Hugo Mills
On Sun, Feb 26, 2012 at 05:57:00PM +0100, Helmut Hullen wrote: > Hallo, Hugo, > > Du meintest am 26.02.12: > > >> My (planned) usual work (once a year or so): > >> > >> btrfs device add > >> btrfs filesystem balance > >> btrfs device delete > > >OK, the real prob

Re: LABEL only 1 device

2012-02-26 Thread Helmut Hullen
Hallo, Hugo, Du meintest am 26.02.12: >> My (planned) usual work (once a year or so): >> >> btrfs device add >> btrfs filesystem balance >> btrfs device delete >OK, the real problem you're seeing is that when btrfs removes a > device from the filesystem, that dev

Re: LABEL only 1 device

2012-02-26 Thread Hugo Mills
On Sun, Feb 26, 2012 at 05:12:00PM +0100, Helmut Hullen wrote: > Hallo, Hugo, > > Du meintest am 26.02.12: > > >> Mounting seems to be no problem, but (p.e.) "delete" doesn't kill > >> the btrfs informations shown with (p.e.) "blkid /dev/sdy1", > >> especially it doesn't delete the label. > > >

Re: LABEL only 1 device

2012-02-26 Thread Helmut Hullen
Hallo, Hugo, Du meintest am 26.02.12: >> Mounting seems to be no problem, but (p.e.) "delete" doesn't kill >> the btrfs informations shown with (p.e.) "blkid /dev/sdy1", >> especially it doesn't delete the label. >What do you mean by "delete" here? btrfs device delete >The label i

Re: LABEL only 1 device

2012-02-26 Thread Hugo Mills
On Sun, Feb 26, 2012 at 04:23:00PM +0100, Helmut Hullen wrote: > Hallo, linux-btrfs, > > maybe it's a big error using the commmand > > mkfs.btrfs -L xyz /dev/sdx1 /dev/sdy1 /dev/sdz1 > > (and so labelling many partitions) because each device/partition gets > the same label. > > Mounting see

LABEL only 1 device

2012-02-26 Thread Helmut Hullen
Hallo, linux-btrfs, maybe it's a big error using the commmand mkfs.btrfs -L xyz /dev/sdx1 /dev/sdy1 /dev/sdz1 (and so labelling many partitions) because each device/partition gets the same label. Mounting seems to be no problem, but (p.e.) "delete" doesn't kill the btrfs informations show