From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from <gentoo-user+bounces-131198-garchives=archives.gentoo.org@lists.gentoo.org>) id 1RQvS2-0004ll-5w for garchives@archives.gentoo.org; Thu, 17 Nov 2011 06:27:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 96E8321C139; Thu, 17 Nov 2011 06:27:44 +0000 (UTC) Received: from mail-yw0-f53.google.com (mail-yw0-f53.google.com [209.85.213.53]) by pigeon.gentoo.org (Postfix) with ESMTP id D6B5F21C073 for <gentoo-user@lists.gentoo.org>; Thu, 17 Nov 2011 06:26:50 +0000 (UTC) Received: by ywp18 with SMTP id 18so822519ywp.40 for <gentoo-user@lists.gentoo.org>; Wed, 16 Nov 2011 22:26:50 -0800 (PST) Received: by 10.146.186.3 with SMTP id j3mr3698344yaf.2.1321510814519; Wed, 16 Nov 2011 22:20:14 -0800 (PST) Received: from mail-yx0-f181.google.com (mail-yx0-f181.google.com [209.85.213.181]) by mx.google.com with ESMTPS id h28sm7833326ani.17.2011.11.16.22.20.14 (version=SSLv3 cipher=OTHER); Wed, 16 Nov 2011 22:20:14 -0800 (PST) Received: by yenl6 with SMTP id l6so805569yen.40 for <gentoo-user@lists.gentoo.org>; Wed, 16 Nov 2011 22:20:13 -0800 (PST) Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.50.216.137 with SMTP id oq9mr40052414igc.40.1321510813253; Wed, 16 Nov 2011 22:20:13 -0800 (PST) Received: by 10.231.38.6 with HTTP; Wed, 16 Nov 2011 22:20:13 -0800 (PST) In-Reply-To: <4EC47700.2060707@gmail.com> References: <4EC47700.2060707@gmail.com> Date: Wed, 16 Nov 2011 22:20:13 -0800 Message-ID: <CAGJrxsRvPQCxDKnFiYQk=Gp+YN41OwNx8Xxp93597xg3MvOXOA@mail.gmail.com> Subject: Re: [gentoo-user] LVM and LABELS in fstab From: Manuel McLure <manuel@mclure.org> To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 9b30c1ab-bcf8-4de9-bf57-235f03fd26dd X-Archives-Hash: dc005670dd11d47be0002780742a7cd5 On Wed, Nov 16, 2011 at 6:52 PM, Dale <rdalek1967@gmail.com> wrote: > OK. =C2=A0I jumped into LVM. =C2=A0I took my spare drive, put it to use w= ith LVM. > =C2=A0Then copied data from my super large drive to it and backed up some= to DVDs > that wouldn't fit. =C2=A0Then I put the big drive on LVM and put the stuf= f back. > =C2=A0Now comes the problem. =C2=A0I use LABELS in fstab and would like t= o continue > that. =C2=A0I can't figure out how to get the LABEL set for the LVM file = system > tho. =C2=A0This is my info: > ... > root@fireball / # lvdisplay > =C2=A0--- Logical volume --- > =C2=A0LV Name =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/dev= /data/data1 > =C2=A0VG Name =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0data > =C2=A0LV UUID =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Zvsg= H6-PI0M-NqVd-op9P-Crsy-IEnz-iKoTfp > =C2=A0LV Write Access =C2=A0 =C2=A0 =C2=A0 =C2=A0read/write > =C2=A0LV Status =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0available > =C2=A0# open =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 > =C2=A0LV Size =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0931.= 00 GiB > =C2=A0Current LE =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 238336 > =C2=A0Segments =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 2 > =C2=A0Allocation =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 inherit > =C2=A0Read ahead sectors =C2=A0 =C2=A0 auto > =C2=A0- currently set to =C2=A0 =C2=A0 256 > =C2=A0Block device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 254:0 > > root@fireball / # > > > I tried e2label since it has ext4 for the file system. =C2=A0It didn't wo= rk and I > don't know for sure what to point it to for the device. =C2=A0I can't poi= nt to > the drive itself since there are now two in the setup. > > What am I missing here? =C2=A0It's simple I'm sure but I'm missing it. You should be able to use e2label (or "tune2fs -L" as I do) on the /dev/data/data1 device to set the filesystem label. That's the logical volume that the operating system needs to mount. # tune2fs -L mylabel /dev/data/data1 should do what you need. I haven't done this with ext4, but I have used LVM with ext2, ext3 and labels in this fashion. --=20 Manuel A. McLure WW1FA <manuel@mclure.org> <http://www.mclure.org> ...for in Ulthar, according to an ancient and significant law, no man may kill a cat.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 -- H.P. Lovecraft