Page 1 of 1

lilo to grub ?!

Posted: 2005-08-01 14:00
by a-n
Hallo,

habe gerade versucht mein Server von lilo zu grub umzuwandeln.

Irgendwie funktioniert das nicht.

Wie folgt bin ich vor gegangen.

Code: Select all

aptitude install grub grub-doc
grub-install /dev/hda
update-grub
dpkg --purge lilo
lilo gibt es gar nicht mehr im Server, dennoch zeigt er mir beim booten, das er lilo benutzt.

Code: Select all

Loadin .... 
Lilo 2.6.xx
Den Bootvorgang sehe ich via einer Remote Console.
Bei grub kommt doch beim booten ein blaues grafisches fenster wo ich mir den Kernel aussuchen kann. Nur kommt der irgendwie nicht.

Weiß einer was ich falsch mache, oder gemacht habe ?

Danke !

OS: Debian3.1

Re: lilo to grub ?!

Posted: 2005-08-02 09:28
by mydani
Folgendes auffer Console:

grub

> root (hd0,x) # x ist (/dev/hdax - 1), als hda5 entspricht (hd0,4)
> setup (hd0)
> quit

reboot

Re: lilo to grub ?!

Posted: 2005-08-02 10:50
by a-n
mydani wrote:Folgendes auffer Console:

grub

> root (hd0,x) # x ist (/dev/hdax - 1), als hda5 entspricht (hd0,4)
> setup (hd0)
> quit

reboot
Das macht GRUB doch automatisch bei

Code: Select all

grub-install /dev/hda
Oder nicht ?

Re: lilo to grub ?!

Posted: 2005-08-02 10:51
by mydani
Bei mir hats geholfen...

Re: lilo to grub ?!

Posted: 2005-08-02 11:00
by a-n
Hab es gerade lokal so wie oben von mir beschrieben gemacht, und hat wunderbar funktioniert. Wieso es beim Server nicht funktioniert hat ist irgendwie komisch. Ich weiß auch nicht woher er LILO hernimmt, da es komplett gelöscht wurde.

Sehr komisch die ganze sache :cry:

Re: lilo to grub ?!

Posted: 2005-08-02 14:19
by tcs
mydani wrote:Folgendes auffer Console:

Code: Select all

grub
> root (hd0,x)     # x ist (/dev/hdax - 1), als hda5 entspricht (hd0,4)
> setup (hd0)
> quit
reboot
Nur als Ergänzung eine wichtige Eigenheit in der grub Namensgebung der Platten/Partitionen:
hd(0) ist die erste von grub gefundene Festplatte - was nicht immer /dev/hda ist.

Cheers

tcs

Re: lilo to grub ?!

Posted: 2005-08-13 16:19
by a-n
Irgendwie hab ich es bis heute nicht hinbekommen.

Folgendes tritt immer ein.

Code: Select all

grub-install /dev/hda
/sbin/grub-install: line 516:  2556 Getötet                 $grub_shell --batch $no_floppy --device-map=$device_map  >$log_file <<EOF
root $root_drive
setup $force_lba --stage2=$grubdir/stage2 --prefix=$grub_prefix $install_drive
quit
EOF

Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)   /dev/fd0
(hd0)   /dev/hda
Kann es vielleicht daran liegen das /tmp als loop,rw,nosuid,noexec gemoutet ist ?

Re: lilo to grub ?!

Posted: 2005-08-13 17:30
by Joe User
Installiere Grub bitte per http://www.rootforum.org/forum/viewtopi ... 789#230789 und vergiss das (kaputte) grub-install...

Re: lilo to grub ?!

Posted: 2005-08-13 18:21
by a-n

Code: Select all

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

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 15: File not found
Ich weiß leider nicht was Error15 bedeutet :(
Und stage1 gibt es

Code: Select all

root@Server2:~# ls -al /boot/grub/stage1
-rw-r--r--  1 root root 512 2005-08-13 16:36 /boot/grub/stage1
Hier meine fstab

Code: Select all

/dev/hda3    /                 ext3    defaults,usrquota,grpquota 0    1
/dev/hda2    none              swap    sw        0    0
none         /proc             proc    defaults  0    0
/dev/hda1    /boot             ext3    rw        0    2
/dev/Tmp     /tmp              ext3    loop,rw,nosuid,noexec 0 0
none  /proc/bus/usb  usbdevfs  defaults

Re: lilo to grub ?!

Posted: 2005-08-13 18:27
by Joe User
Du musst root (hd0,0) (/boot) angeben, dann klappt's auch mit grub ;)

Re: lilo to grub ?!

Posted: 2005-08-13 18:45
by a-n

Code: Select all

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

grub> setup (hd0)Getötet
Komisch was ?!

Ich versteh das auch nciht mehr :cry:

Re: lilo to grub ?!

Posted: 2005-08-13 19:07
by Joe User
Hmm, sieht nach einer kaputten Installation beziehungsweise einem kaputten Paket aus. Führe mal eine Reinstallation/Update von Grub aus und versuche es anschliessend nochmal.

Re: lilo to grub ?!

Posted: 2005-08-13 19:26
by a-n
Hallo Joe User,

danke erstmal für deine Hilfe !

Ich bekomm es absolut nicht hin GRUB statt lilo zu benutzen/installieren.

Ein aptitude reinstall oder ein aptitude purge und wieder install, hat absolut nichts gebracht.

Werde wohl dann wieder lilo benutzen :(

Verstehen kann ich das ganze immernoch nicht :( Ich versteh auch nicht wie der immer wieder beim booten lilo benutzt hat, obwohl es gar nicht auf dem System installiert war. Sehr komisch die ganze sache !

Re: lilo to grub ?!

Posted: 2005-08-14 21:15
by Anonymous
ich kenn mich ja mit grub nicht so aus, aber kann es sein das
grub auf /boot installiert wurde (bootsektor von hda1), während lilo noch der 1.Stage-Bootloader im mbr geblieben ist?

Re: lilo to grub ?!

Posted: 2005-08-15 12:02
by Joe User
atomic wrote:grub auf /boot installiert wurde (bootsektor von hda1), während lilo noch der 1.Stage-Bootloader im mbr geblieben ist?
Nein.