wie grub installation auf zweite hdd welche spaeter einzige hdd sein wird.



hallo,

folgendes ist mein system. P4, intel sata controller, adaptec aha29160
scsi controller. da debian sarge keine sata hdd bei der installation
unterstuetzt habe ich zur installation des systems eine scsi platte
eingebaut. dann habe ich den kernel 2.6.11.12 compiliert mit
einkompilierten adapte und sata controller. grub configuriert und mit
dem neuen kernel gebootet. sata platte /dev/sdb partitioniert,
/dev/sdb1 als /boot partition mit 100 mb. swap und / auch noch erstellt
und auf /dev/sdb1 und /dev/sdb3 mit ext3 formatiert. dann alles von der
scsi platte in die entsprechenden partitionen der sata platte kopiert.

mein erster versuch war mit grub-install /dev/sdb. hat nicht
funktioniert und gab eine fehlermeldung das dem bios die platte nicht
bekannt sei. dann hab ich grub im cli benutzt und folgedes zu tun:

grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83

grub> setup (hd1,0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd1,0)"... failed (this is not
fatal)
Running "embed /grub/e2fs_stage1_5 (hd0,0)"... failed (this is not
fatal)
Running "install /grub/stage1 d (hd1,0) /grub/stage2 p /grub/menu.lst
"... suc
ceeded
Done.

grub>

wenn ich jetzt den rechner runterfahre, die scsi platte abklemme und
neu starte bekomme ich dies:

Grub loading stage 1.5.

Grub loading, please wait...
Error 21

dann hab ich wieder von der scsi platte gebootet und folgendes im grub
cli gemacht

grub> root (hd1,0)
Filesystem type is ext2fs, partition type 0x83

grub> setup (hd1,0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd1,0)"... failed (this is not
fatal)
Running "embed /grub/e2fs_stage1_5 (hd1,0)"... failed (this is not
fatal)
Running "install /grub/stage1 (hd1,0) /grub/stage2 p /grub/menu.lst
"... succe
eded
Done.

das ergebnis war nach reboot ohne scsi platte das gleiche.

wie kann ich also grub dazu bewegen den bootloader korrekt auf die sata
platte zu schreiben welche im system die zweite logische platte (hd1
fuer grub) ist in dem augenblich wo ich grub auf ihr installieren will.
es ist keine option die scsi platte drin zu lassen, ist alte hardware
und war nur zu diesem klimzug gedacht weil sarge kein sata
unterstuetzt. endloesung ist sata platte als einzige im system mit grub
als bootloader. eine testing version von debian kommt nicht in frage da
es ein produktionssystem werden soll. ich wuerde mich freuen wenn mir
jeman weiter helfen wuerde. habe bisher noch keine loesung zu dieser
problematik im netz gefunden und die grub doku im abschnitt "3.2
Installing GRUB natively" hab ich wohl nicht richtig verstanden.

hier noch der inhalt von device.map und menue.lst.

shell:/boot/grub# cat device.map
(hd0) /dev/sda

shell:/boot/grub# cat menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from
0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the
default entry
# is the entry saved with the command 'savedefault'.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the
default entry
# (normally the first entry defined).
timeout 5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive
editing
# control (menu entry editor and command-line) and entries protected
by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options
below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/sda3 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## ## End Default Options ##

title Debian GNU/Linux, kernel 2.6.11.12ew002
root (hd0,0)
kernel /vmlinuz-2.6.11.12ew002 root=/dev/sda3 ro
savedefault
boot

title Debian GNU/Linux, kernel 2.6.11.12ew002 (recovery mode)
root (hd0,0)
kernel /vmlinuz-2.6.11.12ew002 root=/dev/sda3 ro single
savedefault
boot

title Debian GNU/Linux, kernel 2.6.11.12ew001
root (hd0,0)
kernel /vmlinuz-2.6.11.12ew001 root=/dev/sda3 ro
savedefault
boot

title Debian GNU/Linux, kernel 2.6.11.12ew001 (recovery mode)
root (hd0,0)
kernel /vmlinuz-2.6.11.12ew001 root=/dev/sda3 ro single
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386
root (hd0,0)
kernel /vmlinuz-2.6.8-2-386 root=/dev/sda3 ro
initrd /initrd.img-2.6.8-2-386
savedefault
boot

title Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
root (hd0,0)
kernel /vmlinuz-2.6.8-2-386 root=/dev/sda3 ro single
initrd /initrd.img-2.6.8-2-386
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

.



Relevant Pages

  • Re: Nach GRUB-update kein XP mehr :-(
    ... # Set the default entry to the entry number NUM. ... # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST ... ## by the debian update-grub script except for the default options below ...
    (de.comp.os.unix.linux.misc)
  • Re: Anf?nger, blutig
    ... in welchen Runlevel mein Linux booten soll. ... >und der Dokumentation zu Grub ueberfordert? ... >Kernel laden und starten. ... Booten dem Kernel irgendwelche Parameter mit auf den Weg gegeben ...
    (de.comp.os.unix.linux.misc)
  • Re: Linux von einer auf andere Platte portieren?
    ... Kernel, der nicht in lilo.conf eingetragen ist? ... vielen von mir betreuten Rechnern das Booten von CD-ROM, ... dass grub etwas auf die Platte schreibt. ... Rechner, die von anderen Leuten benutzt werden. ...
    (de.comp.os.unix.linux.misc)
  • Re: Problem with the serial port in Fedora Core 6
    ... I've never seen the labels that you have added in grub and wonder ... expecting a pair of around the word 'menu', or maybe a kernel ... bugzilla the missing ttyS's, but bugzilla didn't like my password. ... and serial ports which appears to be exactly your issue and a suggestion ...
    (Fedora)
  • Re: Looooong Horror story, 10.04.4 LTS on an amd turion 64 bit laptop version
    ... I had a hell of a time making networking work and finally in my ... I used a procedure which installed a custom combo of kernel 3.5.7 + ... One of the packages I saw go by was grub. ... Does this special linux spin have all the drivers? ...
    (Ubuntu)