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 1KKeK6-0005Aq-3w for garchives@archives.gentoo.org; Sun, 20 Jul 2008 19:11:58 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 03235E0663; Sun, 20 Jul 2008 19:11:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C97D8E0663 for ; Sun, 20 Jul 2008 19:11:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 51F7766C5F for ; Sun, 20 Jul 2008 19:11:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.599 X-Spam-Level: X-Spam-Status: No, score=-3.599 required=5.5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6UPxXcdjR2Ei for ; Sun, 20 Jul 2008 19:11:48 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 9700066BCD for ; Sun, 20 Jul 2008 19:11:47 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KKeJq-0008FR-AD for gentoo-user@gentoo.org; Sun, 20 Jul 2008 19:11:42 +0000 Received: from athedsl-4368166.home.otenet.gr ([79.130.23.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jul 2008 19:11:42 +0000 Received: from realnc by athedsl-4368166.home.otenet.gr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Jul 2008 19:11:42 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: Nikos Chantziaras Subject: [gentoo-user] Re: mount: "special device /dev/hdc does not exist". What does this mean? Date: Sun, 20 Jul 2008 22:11:32 +0300 Message-ID: References: <20080719185157.GA2376@muc.de> <20080719211213.GA1073@muc.de> <200807201552.30732.michaelkintzios@gmail.com> 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 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: athedsl-4368166.home.otenet.gr User-Agent: Thunderbird 2.0.0.14 (X11/20080715) In-Reply-To: <200807201552.30732.michaelkintzios@gmail.com> Sender: news X-Archives-Salt: fcff9f2d-4984-4860-a5e9-9fbb7ae7e0c9 X-Archives-Hash: d1999e01f5c539e0921bf476a524205f 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.