public inbox for gentoo-user-de@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1.
@ 2007-12-03 10:01 Jan
  2007-12-03 10:19 ` Jan
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Jan @ 2007-12-03 10:01 UTC (permalink / raw
  To: gentoo-user-de

[-- Attachment #1: Type: text/plain, Size: 374 bytes --]

Hallo,
ich habe heute eine neue SATA-Festplatte eingebaut. Im BIOS wird auch
alles korrekt angezeigt(die zwei alten SATA-Platten sind in Slot 1 & 2,
die neue in Slot 3), Linux nennt aber die neue Platte sda und die alten
sdb bzw. sdc. Ich habe jetzt die Platte im device.map von GRUB als sdc
eingetragen, das hat aber nichts gebracht.
Weiß jemand Rat?

Gruß, Jan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1.
  2007-12-03 10:01 [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1 Jan
@ 2007-12-03 10:19 ` Jan
  2007-12-03 10:21 ` Bernd Wurst
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 12+ messages in thread
From: Jan @ 2007-12-03 10:19 UTC (permalink / raw
  To: gentoo-user-de

[-- Attachment #1: Type: text/plain, Size: 680 bytes --]

On Mo, 03 Dez 2007 11:01 +0100, Jan wrote:
> Hallo,
> ich habe heute eine neue SATA-Festplatte eingebaut. Im BIOS wird auch
> alles korrekt angezeigt(die zwei alten SATA-Platten sind in Slot 1 & 2,
> die neue in Slot 3), Linux nennt aber die neue Platte sda und die alten
> sdb bzw. sdc. Ich habe jetzt die Platte im device.map von GRUB als sdc
> eingetragen, das hat aber nichts gebracht.
> Weiß jemand Rat?
> 
> Gruß, Jan

Vielleicht sind einige Daten hilfreich:
Kernel ist 2.6.23-gentoo-r3, Treiber SCSI disk support.
Die Festplatte ist eine Samsung HD501LJ.

Könnte es sein, das Linux eine SATA II Festplatte den SATA I
Festplatten vorzieht?

Gruß, Jan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1.
  2007-12-03 10:01 [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1 Jan
  2007-12-03 10:19 ` Jan
@ 2007-12-03 10:21 ` Bernd Wurst
  2007-12-03 10:31 ` Matthias Schwarzott
  2007-12-03 10:45 ` Dirk Heinrichs
  3 siblings, 0 replies; 12+ messages in thread
From: Bernd Wurst @ 2007-12-03 10:21 UTC (permalink / raw
  To: gentoo-user-de

[-- Attachment #1: Type: text/plain, Size: 1223 bytes --]

Hallo.

Am Montag, 3. Dezember 2007 schrieb Jan:
> ich habe heute eine neue SATA-Festplatte eingebaut. Im BIOS wird auch
> alles korrekt angezeigt(die zwei alten SATA-Platten sind in Slot 1 & 2,
> die neue in Slot 3), Linux nennt aber die neue Platte sda und die alten
> sdb bzw. sdc. Ich habe jetzt die Platte im device.map von GRUB als sdc
> eingetragen, das hat aber nichts gebracht.

Was ist das Problem? Es werden doch alle Platten erkannt, oder nicht?


> Weiß jemand Rat?

Ich denke du willst darauf hinaus, dass deine (liebgewonnenen) Device-Namen 
für die Platten nun durcheinander gewürfelt sind.

Aber Device-Namen und -Nummern sind Schall und Rauch.

Mittlerweile haben es AFAIK sämtliche Distributionen kapiert, dass es keine 
gute Idee ist, Platten und Partionen anhand der zufällig vergebenen 
Device-Strings zu identifizieren.

Es gibt genug Ausweichmöglichkeiten:
* udev -> device-namen verbiegen (umständlich und IMHO relativ sinnfrei)
* Identifikation über UUIDs, wie es MD und LVM sowieso machen
* Identifikation über FS-labels

Gruß, Bernd

-- 
Wenn man Tiere nicht essen soll, warum sind Sie dann aus Fleisch?
  -  Quelle: http://german-bash.org/action/show/id/106951

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1.
  2007-12-03 10:01 [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1 Jan
  2007-12-03 10:19 ` Jan
  2007-12-03 10:21 ` Bernd Wurst
@ 2007-12-03 10:31 ` Matthias Schwarzott
  2007-12-03 10:36   ` Dirk Heinrichs
  2007-12-03 10:52   ` Jan
  2007-12-03 10:45 ` Dirk Heinrichs
  3 siblings, 2 replies; 12+ messages in thread
From: Matthias Schwarzott @ 2007-12-03 10:31 UTC (permalink / raw
  To: gentoo-user-de

On Montag, 3. Dezember 2007, Jan wrote:
> Hallo,
> ich habe heute eine neue SATA-Festplatte eingebaut. Im BIOS wird auch
> alles korrekt angezeigt(die zwei alten SATA-Platten sind in Slot 1 & 2,
> die neue in Slot 3), Linux nennt aber die neue Platte sda und die alten
> sdb bzw. sdc. Ich habe jetzt die Platte im device.map von GRUB als sdc
> eingetragen, das hat aber nichts gebracht.
> Weiß jemand Rat?
>
> Gruß, Jan

Hallo!

Ich denke linux hat keine Preferenz des Plattentyps. Allein die 
Erkennungsreihenfolge spielt bei der benennung eine Rolle.
D.h. wenn der Host-Controller-Treiber an dem die 3. Platte hängt zuerst 
geladen wird, dann ist diese Platte eben sda. Da kannst du vermutlich nichts 
dran ändern wenn es keine Module sind (unwahrscheinlich).

Auch die device.map von grub hat da keinen Einfluss. Die versucht nur die 
bios-Plattenzuordnung nachzuahmen.

D.h. am einfachsten sprichst du deine Platten entweder über UUIDs oder über 
die links unter /dev/disk/by-* an. Die sind immer identisch, egal wie linux 
deine Platte nennt.

Matthias

-- 
Matthias Schwarzott (zzam)
--
gentoo-user-de@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1.
  2007-12-03 10:31 ` Matthias Schwarzott
@ 2007-12-03 10:36   ` Dirk Heinrichs
  2007-12-03 11:21     ` Jan
  2007-12-03 11:22     ` Bernd Wurst
  2007-12-03 10:52   ` Jan
  1 sibling, 2 replies; 12+ messages in thread
From: Dirk Heinrichs @ 2007-12-03 10:36 UTC (permalink / raw
  To: gentoo-user-de

[-- Attachment #1: Type: text/plain, Size: 657 bytes --]

Am Montag, 3. Dezember 2007 schrieb ext Matthias Schwarzott:

> D.h. am einfachsten sprichst du deine Platten entweder über UUIDs oder
> über die links unter /dev/disk/by-* an. Die sind immer identisch, egal
> wie linux deine Platte nennt.

Und die kann ich dem Kernel auch als "root=" mitgeben?

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Wanheimerstraße 68      | Web:  http://www.capgemini.com
D-40468 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1.
  2007-12-03 10:01 [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1 Jan
                   ` (2 preceding siblings ...)
  2007-12-03 10:31 ` Matthias Schwarzott
@ 2007-12-03 10:45 ` Dirk Heinrichs
  2007-12-03 13:16   ` [gentoo-user-de] " Alexander Skwar
  3 siblings, 1 reply; 12+ messages in thread
From: Dirk Heinrichs @ 2007-12-03 10:45 UTC (permalink / raw
  To: gentoo-user-de

[-- Attachment #1: Type: text/plain, Size: 979 bytes --]

Am Montag, 3. Dezember 2007 schrieb ext Jan:

> ich habe heute eine neue SATA-Festplatte eingebaut. Im BIOS wird auch
> alles korrekt angezeigt(die zwei alten SATA-Platten sind in Slot 1 & 2,
> die neue in Slot 3), Linux nennt aber die neue Platte sda und die alten
> sdb bzw. sdc. Ich habe jetzt die Platte im device.map von GRUB als sdc
> eingetragen, das hat aber nichts gebracht.
> Weiß jemand Rat?

Was spricht gegen LVM? Die Logical Volumes bekommen einen festen Namen nach 
dem Schema /dev/<Volume Group>/<Logical Volume>  
(z.B. /dev/vg00/root, /dev/vg00/usr, usw.) und das Problem existiert nicht 
mehr.

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Wanheimerstraße 68      | Web:  http://www.capgemini.com
D-40468 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1.
  2007-12-03 10:31 ` Matthias Schwarzott
  2007-12-03 10:36   ` Dirk Heinrichs
@ 2007-12-03 10:52   ` Jan
  1 sibling, 0 replies; 12+ messages in thread
From: Jan @ 2007-12-03 10:52 UTC (permalink / raw
  To: gentoo-user-de

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

On Mo, 03 Dez 2007 11:31 +0100, Matthias Schwarzott wrote:
> Hallo!
> 
> Ich denke linux hat keine Preferenz des Plattentyps. Allein die 
> Erkennungsreihenfolge spielt bei der benennung eine Rolle.
> D.h. wenn der Host-Controller-Treiber an dem die 3. Platte hängt zuerst 
> geladen wird, dann ist diese Platte eben sda.
Ja, das ist es wohl.

> Auch die device.map von grub hat da keinen Einfluss. Die versucht nur die 
> bios-Plattenzuordnung nachzuahmen.
> 
> D.h. am einfachsten sprichst du deine Platten entweder über UUIDs oder über 
> die links unter /dev/disk/by-* an. Die sind immer identisch, egal wie linux 
> deine Platte nennt.

Danke.

Jan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1.
  2007-12-03 10:36   ` Dirk Heinrichs
@ 2007-12-03 11:21     ` Jan
  2007-12-03 11:22     ` Bernd Wurst
  1 sibling, 0 replies; 12+ messages in thread
From: Jan @ 2007-12-03 11:21 UTC (permalink / raw
  To: gentoo-user-de

[-- Attachment #1: Type: text/plain, Size: 555 bytes --]

On Mo, 03 Dez 2007 11:36 +0100, Dirk Heinrichs wrote:
> Am Montag, 3. Dezember 2007 schrieb ext Matthias Schwarzott:
> 
> > D.h. am einfachsten sprichst du deine Platten entweder über UUIDs oder
> > über die links unter /dev/disk/by-* an. Die sind immer identisch, egal
> > wie linux deine Platte nennt.
> 
> Und die kann ich dem Kernel auch als "root=" mitgeben?

Nein, das ist wohl ein Feature von udev, und das wird erst nach dem
mounten der root-Partition geladen. Aber so oft schließt man ja auch
keine neuen Platten an.

Gruß, Jan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1.
  2007-12-03 10:36   ` Dirk Heinrichs
  2007-12-03 11:21     ` Jan
@ 2007-12-03 11:22     ` Bernd Wurst
  2007-12-03 12:32       ` Dirk Heinrichs
  1 sibling, 1 reply; 12+ messages in thread
From: Bernd Wurst @ 2007-12-03 11:22 UTC (permalink / raw
  To: gentoo-user-de

[-- Attachment #1: Type: text/plain, Size: 300 bytes --]

Hallo.

Am Montag, 3. Dezember 2007 schrieb Dirk Heinrichs:
> Und die kann ich dem Kernel auch als "root=" mitgeben?

# grep root= /boot/grub/menu.lst
[...]
kernel          /boot/vmlinuz root=UUID=ad4f8b86-3bea-422a-9409-9f78cc2725c7


Gruß, Bernd

-- 
OS/2 - Wo ist die andere Hälfte?

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1.
  2007-12-03 11:22     ` Bernd Wurst
@ 2007-12-03 12:32       ` Dirk Heinrichs
  0 siblings, 0 replies; 12+ messages in thread
From: Dirk Heinrichs @ 2007-12-03 12:32 UTC (permalink / raw
  To: gentoo-user-de

[-- Attachment #1: Type: text/plain, Size: 726 bytes --]

Am Montag, 3. Dezember 2007 schrieb ext Bernd Wurst:

> Am Montag, 3. Dezember 2007 schrieb Dirk Heinrichs:
> > Und die kann ich dem Kernel auch als "root=" mitgeben?
>
> # grep root= /boot/grub/menu.lst
> [...]
> kernel          /boot/vmlinuz
> root=UUID=ad4f8b86-3bea-422a-9409-9f78cc2725c7

Ah ja. Danke. Trotzdem ziehe ich mein "root=/dev/evms/root" vor. :-)

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Wanheimerstraße 68      | Web:  http://www.capgemini.com
D-40468 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [gentoo-user-de]  Re: Linux erkennt 3. SATA-Platte als 1.
  2007-12-03 10:45 ` Dirk Heinrichs
@ 2007-12-03 13:16   ` Alexander Skwar
  2007-12-03 13:23     ` [gentoo-user-de] " Dirk Heinrichs
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Skwar @ 2007-12-03 13:16 UTC (permalink / raw
  To: gentoo-user-de

Dirk Heinrichs <dirk.heinrichs.ext@nsn.com> wrote:

> Was spricht gegen LVM? Die Logical Volumes bekommen einen festen Namen
> nach dem Schema /dev/<Volume Group>/<Logical Volume>
> (z.B. /dev/vg00/root, /dev/vg00/usr, usw.) und das Problem existiert nicht
> mehr.

Nicht? Wie erkennt denn LVM, welche Platten zu einer VG gehören?

Alexander S

-- 
gentoo-user-de@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1.
  2007-12-03 13:16   ` [gentoo-user-de] " Alexander Skwar
@ 2007-12-03 13:23     ` Dirk Heinrichs
  0 siblings, 0 replies; 12+ messages in thread
From: Dirk Heinrichs @ 2007-12-03 13:23 UTC (permalink / raw
  To: gentoo-user-de

[-- Attachment #1: Type: text/plain, Size: 923 bytes --]

Am Montag, 3. Dezember 2007 schrieb ext Alexander Skwar:
> Dirk Heinrichs <dirk.heinrichs.ext@nsn.com> wrote:
> > Was spricht gegen LVM? Die Logical Volumes bekommen einen festen Namen
> > nach dem Schema /dev/<Volume Group>/<Logical Volume>
> > (z.B. /dev/vg00/root, /dev/vg00/usr, usw.) und das Problem existiert
> > nicht mehr.
>
> Nicht? Wie erkennt denn LVM, welche Platten zu einer VG gehören?

Anhand von UUIDs. Ich hab z.B. ohne Probleme auf die neue libata umgestellt 
(hda -> sda), ohne auch nur eine Zeile in der grub.conf oder fstab zu 
ändern.

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Wanheimerstraße 68      | Web:  http://www.capgemini.com
D-40468 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-12-03 13:25 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-03 10:01 [gentoo-user-de] Linux erkennt 3. SATA-Platte als 1 Jan
2007-12-03 10:19 ` Jan
2007-12-03 10:21 ` Bernd Wurst
2007-12-03 10:31 ` Matthias Schwarzott
2007-12-03 10:36   ` Dirk Heinrichs
2007-12-03 11:21     ` Jan
2007-12-03 11:22     ` Bernd Wurst
2007-12-03 12:32       ` Dirk Heinrichs
2007-12-03 10:52   ` Jan
2007-12-03 10:45 ` Dirk Heinrichs
2007-12-03 13:16   ` [gentoo-user-de] " Alexander Skwar
2007-12-03 13:23     ` [gentoo-user-de] " Dirk Heinrichs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox