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
--
[email protected] mailing list

Reply via email to