public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Bernhard Auzinger <e0026053@student.tuwien.ac.at>
To: gentoo-amd64@lists.gentoo.org
Subject: [gentoo-amd64] Re: Drive asignments for sata drives
Date: Mon, 12 Mar 2007 18:53:09 +0100	[thread overview]
Message-ID: <200703121853.09798.e0026053@student.tuwien.ac.at> (raw)
In-Reply-To: <200703121711.08461.cryos@gentoo.org>

Am Montag 12 März 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 working
> > > 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 added
> > > 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 and
> 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 
partition.

With

-> udevinfo --query=all --root --name sdb2 | grep uuid

you get the uuid of the partition (in this case sda1). The output looks like:

-> S: disk/by-uuid/24034503-e89e-4e6d-96b6-5dbc2e9b83cf

Then you can mount the drive by simply typing (with the output that gives you 
the command above on your machine)

-> mount UUID=24034503-e89e-4e6d-96b6-5dbc2e9b83cf /mnt_point

or adding a line like

-> UUID=3f465a84-8eac-4207-aeb6-b9178329af4f /mnt_point your_fs your_opts 0 2

to your fstab

With this solution the drives(partitions) should always be mounted at the same 
mount point, no matter at which controller it is attached physically.

rgds
Bernhard
--
gentoo-amd64@gentoo.org mailing list



  parent reply	other threads:[~2007-03-12 17:56 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-12 16:39 [gentoo-amd64] Drive asignments for sata drives P.V.Anthony
2007-03-12 16:52 ` Olivier Crête
2007-03-12 17:00 ` Bob Sanders
2007-03-12 17:11   ` Marcus D. Hanwell
2007-03-12 17:21     ` dustin
2007-03-12 18:16       ` Marcus D. Hanwell
2007-03-12 17:53     ` Bernhard Auzinger [this message]
2007-03-13  9:08       ` [gentoo-amd64] " P.V.Anthony
2007-03-13 14:06         ` dustin
2007-03-13 17:31           ` Peter Humphrey
2007-03-13 18:33             ` dustin
2007-03-13 18:45             ` Duncan
2007-03-13 19:48               ` ducasse.isidore
2007-03-13 20:07                 ` Thomas Rösner
2007-03-15  1:35                 ` Florian D.
2007-03-15  2:18                   ` ducasse.isidore
2007-03-13 19:53               ` ducasse.isidore
2007-03-13 19:59                 ` dustin
2007-03-13 20:04                   ` David Pyke
2007-03-12 17:42 ` [gentoo-amd64] [OT] " Bob Slawson
2007-03-12 17:50   ` Bob Sanders

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200703121853.09798.e0026053@student.tuwien.ac.at \
    --to=e0026053@student.tuwien.ac.at \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox