From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HQokn-0001ei-MI for garchives@archives.gentoo.org; Mon, 12 Mar 2007 17:56:14 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l2CHrBN1029261; Mon, 12 Mar 2007 17:53:11 GMT Received: from stud3.tuwien.ac.at (stud3.tuwien.ac.at [193.170.75.13]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l2CHrAtj029226 for ; Mon, 12 Mar 2007 17:53:11 GMT Received: from myeth1 (chello062178207208.8.15.tuwien.teleweb.at [62.178.207.208]) by stud3.tuwien.ac.at (8.9.3 (PHNE_29774)/8.9.3) with ESMTP id SAA14179 for ; Mon, 12 Mar 2007 18:53:08 +0100 (MET) From: Bernhard Auzinger To: gentoo-amd64@lists.gentoo.org Subject: [gentoo-amd64] Re: Drive asignments for sata drives Date: Mon, 12 Mar 2007 18:53:09 +0100 User-Agent: KMail/1.9.6 References: <45F5823D.2080708@singnet.com.sg> <20070312170009.GA13105@sgi.com> <200703121711.08461.cryos@gentoo.org> In-Reply-To: <200703121711.08461.cryos@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200703121853.09798.e0026053@student.tuwien.ac.at> X-Archives-Salt: d1d69ac2-3e09-432d-85e5-9df193d8c236 X-Archives-Hash: e0792772b3d28a4e5a720bab8e013f8c Am Montag 12 M=E4rz 2007 schrieb Marcus D. Hanwell: > On Monday 12 March 2007 17:00:09 Bob Sanders wrote: > > P.V.Anthony, mused, then expounded: > > > Currently in the fstab the boot and root partitions are set and worki= ng > > > great. Once a new sata drive connected, the drive assignments change. > > > Initially the / (root) is /dev/sda2. Once another sata drive is added > > > the / (root) becomes say /dev/sdb2. > > > > > > Is there any way that this can be fixed even when more drives are add= ed > > > or removed? > > > > Typically, on the same controller, the lowest numbered port becomes the > > first drive. The description of the symptom leads me to believe that > > your /dev/sda drive is attached to port 2 instead of being attached to > > port 1. Have you tried moving your SATA cable to a different port? > > I had the same problem and despite my existing drive being connected to > what was labelled on the motherboard as SATA1 it in fact was not! Trial a= nd > error gave me the correct one... It would be useful if the nodes were more > fixed but most systems do not change after initial set up and this > situation can be fixed quite easily. Another way would be to use udev and the partitions uuid to mount the=20 partition. With =2D> udevinfo --query=3Dall --root --name sdb2 | grep uuid you get the uuid of the partition (in this case sda1). The output looks lik= e: =2D> S: disk/by-uuid/24034503-e89e-4e6d-96b6-5dbc2e9b83cf Then you can mount the drive by simply typing (with the output that gives y= ou=20 the command above on your machine) =2D> mount UUID=3D24034503-e89e-4e6d-96b6-5dbc2e9b83cf /mnt_point or adding a line like =2D> UUID=3D3f465a84-8eac-4207-aeb6-b9178329af4f /mnt_point your_fs your_op= ts 0 2 to your fstab With this solution the drives(partitions) should always be mounted at the s= ame=20 mount point, no matter at which controller it is attached physically. rgds Bernhard -- gentoo-amd64@gentoo.org mailing list