1 |
Am Montag 12 März 2007 schrieb Marcus D. Hanwell: |
2 |
> On Monday 12 March 2007 17:00:09 Bob Sanders wrote: |
3 |
> > P.V.Anthony, mused, then expounded: |
4 |
> > > Currently in the fstab the boot and root partitions are set and working |
5 |
> > > great. Once a new sata drive connected, the drive assignments change. |
6 |
> > > Initially the / (root) is /dev/sda2. Once another sata drive is added |
7 |
> > > the / (root) becomes say /dev/sdb2. |
8 |
> > > |
9 |
> > > Is there any way that this can be fixed even when more drives are added |
10 |
> > > or removed? |
11 |
> > |
12 |
> > Typically, on the same controller, the lowest numbered port becomes the |
13 |
> > first drive. The description of the symptom leads me to believe that |
14 |
> > your /dev/sda drive is attached to port 2 instead of being attached to |
15 |
> > port 1. Have you tried moving your SATA cable to a different port? |
16 |
> |
17 |
> I had the same problem and despite my existing drive being connected to |
18 |
> what was labelled on the motherboard as SATA1 it in fact was not! Trial and |
19 |
> error gave me the correct one... It would be useful if the nodes were more |
20 |
> fixed but most systems do not change after initial set up and this |
21 |
> situation can be fixed quite easily. |
22 |
|
23 |
Another way would be to use udev and the partitions uuid to mount the |
24 |
partition. |
25 |
|
26 |
With |
27 |
|
28 |
-> udevinfo --query=all --root --name sdb2 | grep uuid |
29 |
|
30 |
you get the uuid of the partition (in this case sda1). The output looks like: |
31 |
|
32 |
-> S: disk/by-uuid/24034503-e89e-4e6d-96b6-5dbc2e9b83cf |
33 |
|
34 |
Then you can mount the drive by simply typing (with the output that gives you |
35 |
the command above on your machine) |
36 |
|
37 |
-> mount UUID=24034503-e89e-4e6d-96b6-5dbc2e9b83cf /mnt_point |
38 |
|
39 |
or adding a line like |
40 |
|
41 |
-> UUID=3f465a84-8eac-4207-aeb6-b9178329af4f /mnt_point your_fs your_opts 0 2 |
42 |
|
43 |
to your fstab |
44 |
|
45 |
With this solution the drives(partitions) should always be mounted at the same |
46 |
mount point, no matter at which controller it is attached physically. |
47 |
|
48 |
rgds |
49 |
Bernhard |
50 |
-- |
51 |
gentoo-amd64@g.o mailing list |