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 ) id 1OqAbN-0006ol-OD for garchives@archives.gentoo.org; Mon, 30 Aug 2010 20:05:10 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CE7E3E1151 for ; Mon, 30 Aug 2010 20:05:08 +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 009BFE1030 for ; Mon, 30 Aug 2010 19:15:55 +0000 (UTC) Received: by ywf7 with SMTP id 7so133516ywf.40 for ; Mon, 30 Aug 2010 12:15:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=+ZF0U3t3d5haX+Au/UH51TgZ+uIijbQoIu+8pg8GUuI=; b=pJRJ3bHq7QEH+iR412eBXtbTbS/yAyMM/q/ogAufIE32Q1x6mJZB1RSKq1/WPdJJaC bo/OWMEal27+060x4NT0/erlLQSuAmn9gfECsvsqNYZzoOak/TuPMUZjrqc/FgnzEdne BPGTcXjyFk7pbSMh5SPvh1+WbAaES6WoE9mLg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=O5pp2+E0G+o7qAJSgberKpymGX21QdDI/JGibSL5qIgaAtxHrqGyqs/6RMnOJCvR3S kqIydt6Uxaf7/2CITPOBvlmzZQ84n+RYxTf1NDnNN83TxQbZ777Tx+p1Eq2foT3vTAow NwGbGUuI1HYQEvKNQuTzRYBIBUggWECBNq+/k= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.150.11.1 with SMTP id 1mr494492ybk.190.1283195752742; Mon, 30 Aug 2010 12:15:52 -0700 (PDT) Received: by 10.151.98.20 with HTTP; Mon, 30 Aug 2010 12:15:52 -0700 (PDT) In-Reply-To: <4C7BF039.1070701@gmail.com> References: <4C776B2A.4040201@gmail.com> <4C786EC5.90807@gentoo.org> <201008301832.23227.alan.mckinnon@gmail.com> <4C7BF039.1070701@gmail.com> Date: Mon, 30 Aug 2010 12:15:52 -0700 Message-ID: Subject: Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers From: Bill Longman To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary=000e0cd6a8dc0511f7048f0f4bf7 X-Archives-Salt: 911264fd-7bd1-4b18-ab71-fb9e2ba0f646 X-Archives-Hash: d724bb06ee30d9d8492beef7a652f7e7 --000e0cd6a8dc0511f7048f0f4bf7 Content-Type: text/plain; charset=UTF-8 On Mon, Aug 30, 2010 at 10:54 AM, Dale wrote: > Alan McKinnon wrote: > >> Apparently, though unproven, at 18:03 on Monday 30 August 2010, Paul >> Hartman >> did opine thusly: >> >> >> >>> On Fri, Aug 27, 2010 at 9:04 PM, Daniel Pielmeier >>> wrote: >>> >>> >>>> Nikos Chantziaras schrieb am 27.08.2010 18:06: >>>> >>>> >>>>> On 08/27/2010 07:02 PM, J. Roeleveld wrote: >>>>> >>>>> >>>>>> Actually, you can: >>>>>> >>>>>> http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.htm >>>>>> l >>>>>> >>>>>> (Read the section below "Use a label"): >>>>>> >>>>>> fstab: >>>>>> LABEL=ROOT / ext3 defaults 1 1 >>>>>> LABEL=BOOT /boot ext3 defaults 1 2 >>>>>> LABEL=SWAP swap swap defaults 0 0 >>>>>> LABEL=HOME /home ext3 nosuid,auto 1 2 >>>>>> >>>>>> >>>>> This syntax never worked here. Always resulted in an unbootable >>>>> system. >>>>> Only the /dev/disk/by-label/ syntax works reliably. >>>>> >>>>> >>>> Afaik if you are using GRUB LEGACY (0.97) and want to use LABEL/UUID in >>>> your grub.conf/menu.lst you also need an initrd. I think with GRUB 2 >>>> (1.98) it is possible without. You don't need an initrd for LABEL/UUID >>>> in /etc/fstab for both cases. >>>> >>>> >>> FWIW I'm using sys-boot/grub-0.97-r10 with GPT, labeled partitions and >>> no initrd. My kernel has EFI_PARTITION compiled in (no module). >>> >>> My fstab looks like this: >>> >>> LABEL=swap none swap sw 0 0 >>> LABEL=boot /boot ext2 defaults,noatime 1 2 >>> LABEL=root / ext4 defaults,noatime 0 1 >>> LABEL=home /home ext4 defaults,noatime 0 1 >>> >>> My kernel boot commandline still specified root by device name >>> /dev/sda2 but otherwise my system works normally so far. :) >>> >>> >> Don't listen to nay-sayers. Your fstab will work just fine and there's >> nothing >> wrong with it. >> >> The LABEL= sysntax has also worked for years and years now on all grub- >> supported filesystems that support volume labels. I don't know where a >> previous poster got the idea from that it is not supported, or you need an >> initrd - I have never used an initrd on Gentoo and have used that syntax >> since >> forever. >> >> Similar for claims of unreliability by someone else. The only cause I can >> think of is using weird grub patches or some combination of insane flags. >> >> >> > > So I don't have to have the complete path in fstab like this: > > /dev/disk/by-label/boot /boot ext2 noatime 1 2 > /dev/disk/by-label/root / reiserfs defaults 0 1 > /dev/disk/by-label/swap none swap sw 0 0 > /dev/disk/by-label/portage /usr/portage ext3 defaults 0 1 > /dev/disk/by-label/home /home reiserfs defaults 1 1 > > Can you post a grub.conf file that uses labels? Sort of a example to look > at and go by. > Dale, there are two examples of fstabs in this message (actually three). But you only want to see those you didn't write. You just need to put "LABEL=somelabel" in the first column. -- Bill Longman --000e0cd6a8dc0511f7048f0f4bf7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Mon, Aug 30, 2010 at 10:54 AM, Dale <= span dir=3D"ltr"><rdalek1967@gma= il.com> wrote:
Alan McKinnon wrote:
Apparently, though unproven, at 18:03 on Monday 30 August 2010, Paul Hartma= n
did opine thusly:

=C2=A0
On Fri, Aug 27, 2010 at 9:04 PM, Daniel Pielmeier<billie@gentoo.org> =C2=A0wrote:
=C2=A0 =C2=A0
Nikos Chantziaras schrieb am 27.08.2010 18:06:
=C2=A0 =C2=A0 =C2=A0
On 08/27/2010 07:02 PM, J. Roeleveld wrote:
=C2=A0 =C2=A0 =C2=A0 =C2=A0
Actually, you can:
http://www.ibm.com/developerworks/linux/library/= l-boot-rootfs/index.htm
l

(Read the section below "Use a label"):

fstab:
LABEL=3DROOT =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/ =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ext3 =C2=A0 =C2=A0defaults =C2=A0 =C2=A0 =C2=A0 =C2=A01 1
LABEL=3DBOOT =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/boot =C2=A0 =C2=A0 ext3 =C2= =A0 =C2=A0defaults =C2=A0 =C2=A0 =C2=A0 =C2=A01 2
LABEL=3DSWAP =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0swap =C2=A0 =C2=A0 =C2=A0swa= p =C2=A0 =C2=A0defaults =C2=A0 =C2=A0 =C2=A0 =C2=A00 0
LABEL=3DHOME =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0/home =C2=A0 =C2=A0 ext3 =C2= =A0 =C2=A0nosuid,auto =C2=A0 =C2=A0 1 2
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
This syntax never worked here. =C2=A0Always resulted in an unbootable syste= m.
=C2=A0Only the /dev/disk/by-label/ syntax works reliably.
=C2=A0 =C2=A0 =C2=A0 =C2=A0
Afaik if you are using GRUB LEGACY (0.97) and want to use LABEL/UUID in
your grub.conf/menu.lst you also need an initrd. I think with GRUB 2
(1.98) it is possible without. You don't need an initrd for LABEL/UUID<= br> in /etc/fstab for both cases.
=C2=A0 =C2=A0 =C2=A0
FWIW I'm using sys-boot/grub-0.97-r10 with GPT, labeled partitions and<= br> no initrd. My kernel has EFI_PARTITION compiled in (no module).

My fstab looks like this:

LABEL=3Dswap =C2=A0 =C2=A0 =C2=A0 none =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0swap =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0sw =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A00 0
LABEL=3Dboot =C2=A0 =C2=A0 =C2=A0/boot =C2=A0 =C2=A0ext2 =C2=A0 =C2=A0defau= lts,noatime =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 2
LABEL=3Droot =C2=A0 =C2=A0 =C2=A0 / =C2=A0 =C2=A0 =C2=A0 ext4 =C2=A0 =C2=A0= defaults,noatime =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A00 1=
LABEL=3Dhome =C2=A0 =C2=A0 =C2=A0/home =C2=A0 ext4 =C2=A0 =C2=A0defaults,no= atime =C2=A0 =C2=A0 =C2=A0 =C2=A00 1

My kernel boot commandline still specified root by device name
/dev/sda2 but otherwise my system works normally so far. :)
=C2=A0 =C2=A0
Don't listen to nay-sayers. Your fstab will work just fine and there= 9;s nothing
wrong with it.

The LABEL=3D sysntax has also worked for years and years now on all grub- supported filesystems that support volume labels. I don't know where a<= br> previous poster got the idea from that it is not supported, or you need an<= br> initrd - I have never used an initrd on Gentoo and have used that syntax si= nce
forever.

Similar for claims of unreliability by someone else. The only cause I can think of is using weird grub patches or some combination of insane flags.
=C2=A0

So I don't have to have the complete path in fstab like this:

/dev/disk/by-label/boot =C2=A0 =C2=A0 =C2=A0 =C2=A0/boot =C2=A0 =C2=A0 =C2= =A0 =C2=A0ext2 =C2=A0 =C2=A0 =C2=A0 =C2=A0noatime =C2=A0 =C2=A0 =C2=A0 =C2= =A01 2
/dev/disk/by-label/root =C2=A0 =C2=A0 =C2=A0 =C2=A0/ =C2=A0 =C2=A0 =C2=A0 = =C2=A0reiserfs =C2=A0 =C2=A0defaults =C2=A0 =C2=A00 1
/dev/disk/by-label/swap =C2=A0 =C2=A0 =C2=A0 =C2=A0none =C2=A0 =C2=A0 =C2= =A0 =C2=A0swap =C2=A0 =C2=A0 =C2=A0 =C2=A0sw =C2=A0 =C2=A0 =C2=A0 =C2=A00 0=
/dev/disk/by-label/portage =C2=A0 =C2=A0/usr/portage =C2=A0 =C2=A0ext3 =C2= =A0 =C2=A0 =C2=A0 =C2=A0defaults =C2=A0 =C2=A00 1
/dev/disk/by-label/home =C2=A0 =C2=A0 =C2=A0 =C2=A0/home =C2=A0 =C2=A0 =C2= =A0 =C2=A0reiserfs =C2=A0 =C2=A0defaults =C2=A0 =C2=A01 1

Can you post a grub.conf file that uses labels? =C2=A0Sort of a example to = look at and go by.

Dale, there are two examples = of fstabs in this message (actually three). But you only want to see those = you didn't write. You just need to put "LABEL=3Dsomelabel" in= the first column.

--
Bill Longman
--000e0cd6a8dc0511f7048f0f4bf7--