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

Bug#249041: marked as done (Please support disk labels (LABEL=))



Your message dated Fri, 13 Aug 2004 11:37:31 +0300
with message-id <20040813083731.GA15022@logic.fmi.uni-sofia.bg>
and subject line Bug#249041: Please support disk labels (LABEL=)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 14 May 2004 15:59:51 +0000
>From tbm@cyrius.com Fri May 14 08:59:51 2004
Return-path: <tbm@cyrius.com>
Received: from sorrow.cyrius.com [65.19.161.204] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BOf6F-0004T1-00; Fri, 14 May 2004 08:59:51 -0700
Received: by sorrow.cyrius.com (Postfix, from userid 10)
	id 5E92E64D3B; Fri, 14 May 2004 15:59:51 +0000 (UTC)
Received: by deprecation.cyrius.com (Postfix, from userid 1000)
	id 48F90FF52; Fri, 14 May 2004 16:58:56 +0100 (BST)
Date: Fri, 14 May 2004 16:58:56 +0100
From: Martin Michlmayr <tbm@cyrius.com>
To: submit@bugs.debian.org
Subject: Please support disk labels (LABEL=)
Message-ID: <20040514155856.GA20414@deprecation.cyrius.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.6i
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 
X-CrossAssassin-Score: 1

Package: partman
Severity: wishlist

Please add an option to specify a disk label (max 16 characters), and
use that in fstab if it's available.


----- Forwarded message from Andrew Pollock <apollock@debian.org> -----

From: Andrew Pollock <apollock@debian.org>
Subject: Re: Bug#248902: installation-report debian-installer beta4, arch i386
Date: Fri, 14 May 2004 11:39:06 +1000
To: Martin Michlmayr <tbm@cyrius.com>
Cc: debian-boot@lists.debian.org
User-Agent: Mutt/1.5.4i

On Thu, May 13, 2004 at 11:13:01PM +0100, Martin Michlmayr wrote:
> * tbm <tbm@cyrius.com> [2004-05-13 21:02]:
> > * Nico Dietrich <nicodietrich@web.de> [2004-05-13 20:22]:
> > > LABEL=/                 /                   ext3    defaults        1 1
> > > LABEL=/home             /home               ext3    defaults        1 2
> > 
> > How did you get those LABELs?  Did you do that by hand after d-i?
> 
> Someone suggested a while ago to use LABEL= in d-i.  Can someone who
> uses this feature explain exactly how it works?  If I put LABEL=/home
> in a /etc/fstab, how does Linux know which partition is associated
> with this label?

Basically, at filesystem creation time (or afterwards) labels are added to
the filesystems. AFAIK, this is an ext2/3 and xfs feature, I'm not aware of
other filesystems that have it, someone may correct me.

This can be done with the mke2fs/tune2fs/mkfs.xfs -L option, or the
e2label/xfs_admin programs.

>From fstab(5):

Instead of giving the device explicitly, one may indicate the (ext2 or xfs)
filesystem that is to be mounted by its UUID or volume label (cf.
e2label(8) or  xfs_admin(8)),  writing  LABEL=<label>  or UUID=<uuid>, e.g.,
`LABEL=Boot'   or `UUID=3e6be9de-8139-11d1-9106-a43f08d823a6'.  This will
make the system more robust: adding or removing a  SCSI disk changes the
disk device name but not the filesystem volume label.

So, it would actually be probably more desirable to mount using the UUID
than the label (however the label is more memorable), as most filesystems
have a UUID, whereas only a few support a label.

I would suggest that in the case of ext2/3 and XFS, when a filesystem is
created, it automatically gets labelled with a name relevant to what the
filesystem mount point should be, but perhaps in all cases the /etc/fstab
entry uses the filesystem's UUID.

The administrator can, if need be in a recovery situation, mount /usr by
going "mount LABEL=/usr /usr", but the system would normally mount /usr by
it's UUID.

Hope this helps.

Andrew



----- End forwarded message -----
----- Forwarded message from Colin Watson <cjwatson@debian.org> -----

From: Colin Watson <cjwatson@debian.org>
Subject: Re: Bug#248902: installation-report debian-installer beta4, arch i386
Date: Fri, 14 May 2004 03:24:47 +0100
To: debian-boot@lists.debian.org
Cc: Martin Michlmayr <tbm@cyrius.com>
User-Agent: Mutt/1.3.28i

On Fri, May 14, 2004 at 11:39:06AM +1000, Andrew Pollock wrote:
> On Thu, May 13, 2004 at 11:13:01PM +0100, Martin Michlmayr wrote:
> > Someone suggested a while ago to use LABEL= in d-i.  Can someone who
> > uses this feature explain exactly how it works?  If I put LABEL=/home
> > in a /etc/fstab, how does Linux know which partition is associated
> > with this label?
> 
> Basically, at filesystem creation time (or afterwards) labels are added to
> the filesystems. AFAIK, this is an ext2/3 and xfs feature, I'm not aware of
> other filesystems that have it, someone may correct me.

JFS does, according to mkfs.jfs(8); although mount(8) doesn't mention it
so maybe it wouldn't work for this purpose, I'm not sure.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]


-- 
To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

----- End forwarded message -----
----- Forwarded message from Martin Michlmayr <tbm@cyrius.com> -----

From: Martin Michlmayr <tbm@cyrius.com>
Subject: Re: Bug#248902: installation-report debian-installer beta4, arch i386
Date: Fri, 14 May 2004 16:51:23 +0100
To: debian-boot@lists.debian.org
User-Agent: Mutt/1.5.6i

* Colin Watson <cjwatson@debian.org> [2004-05-14 03:24]:
> JFS does, according to mkfs.jfs(8); although mount(8) doesn't mention it
> so maybe it wouldn't work for this purpose, I'm not sure.

reiserfs supports labels too, but I cannot currently test this at all
(ext3 doesn't work either).

deprecation:/home/tbm/tmp# mount -L swap /mnt
Segmentation fault

(yeah, I formated my unused swap partition as ext3/reiserfs)
-- 
Martin Michlmayr
tbm@cyrius.com


-- 
To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

----- End forwarded message -----

-- 
Martin Michlmayr
tbm@cyrius.com

---------------------------------------
Received: (at 249041-done) by bugs.debian.org; 13 Aug 2004 08:34:15 +0000
>From zinoviev@fmi.uni-sofia.bg Fri Aug 13 01:34:15 2004
Return-path: <zinoviev@fmi.uni-sofia.bg>
Received: from lio.fmi.uni-sofia.bg (smtp.fmi.uni-sofia.bg) [62.44.101.7] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1BvXVv-00015g-00; Fri, 13 Aug 2004 01:34:15 -0700
Received: from logic.fmi.uni-sofia.bg ([62.44.100.59])
	by smtp.fmi.uni-sofia.bg;
	Fri, 13 Aug 2004 11:31:01 +0300
Received: from zinoviev by logic.fmi.uni-sofia.bg with local (Exim 3.35 #1 (Debian))
	id 1BvXZ5-0003uk-00; Fri, 13 Aug 2004 11:37:31 +0300
Date: Fri, 13 Aug 2004 11:37:31 +0300
From: Anton Zinoviev <anton@lml.bas.bg>
To: Martin Michlmayr <tbm@cyrius.com>, 249041-done@bugs.debian.org
Subject: Re: Bug#249041: Please support disk labels (LABEL=)
Message-ID: <20040813083731.GA15022@logic.fmi.uni-sofia.bg>
References: <20040514155856.GA20414@deprecation.cyrius.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20040514155856.GA20414@deprecation.cyrius.com>
User-Agent: Mutt/1.3.28i
Sender: Anton Zinoviev <zinoviev@fmi.uni-sofia.bg>
Delivered-To: 249041-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level: 

On Fri, May 14, 2004 at 04:58:56PM +0100, Martin Michlmayr wrote:
> 
> Please add an option to specify a disk label (max 16 characters), and
> use that in fstab if it's available.

Partman already allows users to specify disk labels but it doesn't use
them in /etc/fstab.  I consider this dangerous and confusing for the
users.

Anton Zinoviev



Reply to: