From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KKeX6-0006OM-LZ for garchives@archives.gentoo.org; Sun, 20 Jul 2008 19:25:24 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 622B9E039C; Sun, 20 Jul 2008 19:25:22 +0000 (UTC) Received: from fmailhost03.isp.att.net (fmailhost03.isp.att.net [207.115.11.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 33A72E039C for ; Sun, 20 Jul 2008 19:25:22 +0000 (UTC) Received: from [209.214.151.193] (host-209-214-151-193.jan.bellsouth.net[209.214.151.193]) by isp.att.net (frfwmhc03) with ESMTP id <20080720192520H0300pq4ufe>; Sun, 20 Jul 2008 19:25:20 +0000 X-Originating-IP: [209.214.151.193] Message-ID: <4883911E.8000207@bellsouth.net> Date: Sun, 20 Jul 2008 14:25:18 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080719 SeaMonkey/1.1.11 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: mount: "special device /dev/hdc does not exist". What does this mean? References: <20080719185157.GA2376@muc.de> <20080719211213.GA1073@muc.de> <200807201552.30732.michaelkintzios@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 72c2d16e-033b-46bf-a31c-3cef7b04232b X-Archives-Hash: f3d3e1d8ad43d77fbde3e40dbc993d75 Nikos Chantziaras wrote: > Mick wrote: >> [...] >> What would be the recommended way of upgrading from the /dev/hd to >> /dev/sd then? I have held back doing this because I didn't have the >> time to mess about with it. If I were to configure a new kernel >> without legacy ATA drivers, how would I know what my devices will be >> seen as in advance, so that I can change my /etc/fstab before I reboot? > > The way I do it, is to label my partitions. If your partitions aren't > labeled yet, you can do so with 'tune2fs'. If your /dev/hda1 is your > root (/), /dev/hda2 your /home and /dev/hda3 your swap, you can label > them with: > > tune2fs -L GentooRoot /dev/hda1 > tune2fs -L GentooHome /dev/hda2 > mkswap -L GentooSwap /dev/hda3 > > Then edit /etc/fstab and change the mount points from: > > /dev/hda1 ... > /dev/hda2 ... > /dev/hda3 ... > > to: > > /dev/disk/by-label/GentooRoot > /dev/disk/by-label/GentooHome > /dev/disk/by-label/GentooSwap > > As reference, here the relevant entries in my own /etc/fstab: > > /dev/disk/by-label/GentooRoot / ext3 noatime 0 1 > /dev/disk/by-label/GentooSwap none swap sw 0 0 > /dev/disk/by-label/Suckage /windows/C ntfs-3g noatime 0 0 > > As you can see this even works for NTFS; you use the label you gave > the drive in Windows. > > After you've done these changes, it doesn't matter the least anymore > what the actual device name is. You can even move the harddisk to > another computer (actually I'm doing exactly that) that totally > results in a re-ordering of /dev/sd* entries and it will still mount > correctly. > > > Question, if I were to label mine and then boot from a Gentoo or any other bootable CD, would those labels still be there? Dale :-) :-)