Thread (21 messages) 21 messages, 6 authors, 2012-03-01

Re: LABEL only 1 device

From: Hugo Mills <hidden>
Date: 2012-02-27 21:23:10

On Mon, Feb 27, 2012 at 10:15:00PM +0100, Helmut Hullen wrote:
Du meintest am 27.02.12:
quoted
quoted
quoted
   I've said this several times: Your expectations are wrong. You
don't label partitions.
quoted
quoted
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.btrfs").
quoted
AFAIK, it works in the same way... that is, it labels the, in that
case, ext2/3/4 filesystem, in this case (mkfs.btrfs), btrfs
filesystem.
quoted
From the manpages:
quoted
mkfs.btrfs (aka mkbtrfs):
quoted
       -L, --label name
              Specify a label for the filesystem.
quoted
mkfs.ext2/3/4 (aka mke2fs):
quoted
       -L new-volume-label
              Set  the  volume  label  for the filesystem to
	      new-volume-label.  The maximum length of the
              volume label is 16 bytes.
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).
   That feels really weird. It wouldn't ever occur to me to look at a
mkfs tool to relabel a filesystem without destroying the data on it. I
view this behaviour as a bug.

   Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
       --- Great oxymorons of the world, no. 6: Mature Student ---       

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help