grub und linux auf andere hd

Post Reply
Message
Author
User avatar
Hans Solo
prolinux-forum-admin
Posts: 601
Joined: 20. Apr 2004 12:19
Location: AT
Contact:

grub und linux auf andere hd

#1 Post by Hans Solo »

hi an alle

auf meinem backupserver hab ich für jeden server (2 ) den ich backupe
eine eigene harddisk.

wenn ich die jeweilig hd alleine in einen rechner hänge startet der gebackupte server.

wie muss ich grub einstellen damit ich beim booten den gebackupten server von hostsystem aus booten kann

die backup hd ist
/dev/hdd
die root partition ist
/dev/hdd2

und in grub habe ich folgendes eingestellt:
# initrd /initrd-version.img
#boot=/dev/hda
default=3
timeout=5
#splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu

title midgard
root (hd0,0)
kernel /boot/vmlinuz-2.6.10-1.771_FC2 ro root=/dev/hdd2
initrd /boot/initrd-2.6.10-1.771_FC2.img
der eintrag für das os des backupservers schaut folgendermassen aus.
title Fedora Core (2.6.12-1.1400_FC5)
root (hd0,0)
kernel /vmlinuz-2.6.12-1.1400_FC5 ro root=/dev/md1
initrd /initrd-2.6.12-1.1400_FC5.img

wenn ich meinen backupeintrag booten will kommt folgende fehlermeldung:

booting midgard:

ERROR 15: File not found.

vielen dank im voraus
mfg
arno
[root@host]# cd /pub
[root@host]# more beer

User avatar
Lateralus
prolinux-forum-admin
Posts: 1238
Joined: 05. May 2004 7:35

#2 Post by Lateralus »

Die root-Angabe bei Grub ist falsch. Je nachdem, wie viele Festplatte du darin hast, sollte es für 2 so aussehen: root (hd1,0)

User avatar
Hans Solo
prolinux-forum-admin
Posts: 601
Joined: 20. Apr 2004 12:19
Location: AT
Contact:

#3 Post by Hans Solo »

hi

ich habe 3 und ein cdrom

darf ich das cdrom nicht mit zählen?
weil
root (hd3,2)
habe ich schon versucht.
die zweite zahl ist die partition oder?

vielen dank
mfg
arno
[root@host]# cd /pub
[root@host]# more beer

User avatar
Lateralus
prolinux-forum-admin
Posts: 1238
Joined: 05. May 2004 7:35

#4 Post by Lateralus »

Ah Sorry. CD-ROM-Laufwerke werden nicht gezählt. Es müsste dann für die zweite Platte, 2. Partition (hd1,1) und für die dritte Platte, zweite Partition (hd2,1) heißen.

User avatar
Hans Solo
prolinux-forum-admin
Posts: 601
Joined: 20. Apr 2004 12:19
Location: AT
Contact:

#5 Post by Hans Solo »

ahh danke und die swap partition darf ich auch nicht mitzählen.

werde es am abend checken da ich gerade ca. 15 mal gerebootet habe und bei meinem alten rechner das ziemlich lange dauert.

mfg
arno
[root@host]# cd /pub
[root@host]# more beer

User avatar
Lateralus
prolinux-forum-admin
Posts: 1238
Joined: 05. May 2004 7:35

#6 Post by Lateralus »

Doch die Swap-Partition wird mitgezählt, aber man fängt bei 0 an. ;-)

User avatar
Hans Solo
prolinux-forum-admin
Posts: 601
Joined: 20. Apr 2004 12:19
Location: AT
Contact:

#7 Post by Hans Solo »

@lateralus DANKE
neugier war grösser jetzt haut es hin.

dieser eintrag funktioniert nun.
title midgard
root (hd2,1)
kernel /boot/vmlinuz-2.6.10-1.771_FC2 ro root=/dev/hdd2
initrd /boot/initrd-2.6.10-1.771_FC2.img
mfg
arno
[root@host]# cd /pub
[root@host]# more beer

Post Reply