Probleme bei GRUB Konfiguration

Post Reply
Message
Author
stahlpup
Posts: 8
Joined: Tue 08 Jul 2008, 16:14
Location: Germany

Probleme bei GRUB Konfiguration

#1 Post by stahlpup »

In der Anleitung bei der Frugal Installation bei der Konfiguration von GRUB muss man die Datei menu.lst abändern, der erste Teil rot markiert ist geschafft, aber der Teil, bei dem man Kommentarzeichen vor Teile der Datei setzen muss hält mich auf.

Meine menu.lst sieht so aus:

# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'. Thu Jul 10 19:05:07 2008
#
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.12522'. You can restore it like this.
# dd if=/boot/grub/mbr.sda.12522 of=/dev/sda bs=512 count=1
#
# Start GRUB global section
#timeout 30
color light-gray/blue black/light-gray
# End GRUB global section
# Other bootable partition config begins
title Windows (on /dev/sda1)
rootnoverify (hd0,0)
makeactive
chainloader +1
# Other bootable partition config ends
# Linux bootable partition config begins
title Puppy Linux 4.00 frugal (on /dev/sda2)
rootnoverify (hd0,1)
kernel /puppy400/vmlinuz pmedia=satahd psubdir=puppy400
initrd= /puppy400/initrd.gz

# Linux bootable partition config ends
# Linux bootable partition config begins
title Linux (on /dev/sda4)
root (hd0,3)
kernel /boot/vmlinuz root=/dev/sda4 ro vga=normal
# Linux bootable partition config ends
title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd0,1)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/sda2)
root (hd0,1)
setup (hd0,1)
pause Press enter to continue.
title - For help press 'c', then type: 'help'
root (hd0)
title - For usage examples, type: 'cat /boot/grub/usage.txt'
root (hd0)

Wo setze ich besagte Kommentarzeichen wie in der Anleitung hier beschrieben? http://www.puppylinux.org/manuals/puppy ... -installer

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

grub erstellt einige Standardeinträge, auch wenn sie nicht benötigt werden.

Zum Beispiel für jedes Windows-Laufwerk einen Eintrag, um Windows zu starten.
Auch wenn dort kein Windows ist.
Selbiges gilt für Linux.

Du kannst also z.B. auskommentieren, von:

title Linux (on /dev/sda4)
root (hd0,3)
kernel /boot/vmlinuz root=/dev/sda4 ro vga=normal

nach:

#title Linux (on /dev/sda4)
#root (hd0,3)
#kernel /boot/vmlinuz root=/dev/sda4 ro vga=normal

Dann taucht der Eintrag "Linux (on /dev/sda4)" nicht mehr im Menü auf.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

stahlpup
Posts: 8
Joined: Tue 08 Jul 2008, 16:14
Location: Germany

#3 Post by stahlpup »

Danke MU, jetzt sieht meine menu.lst so aus:

# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'. Thu Jul 10 19:05:07 2008
#
# The backup copy of the MBR for drive '/dev/sda' is
# here '/boot/grub/mbr.sda.12522'. You can restore it like this.
# dd if=/boot/grub/mbr.sda.12522 of=/dev/sda bs=512 count=1
#
# Start GRUB global section
#timeout 30
color light-gray/blue black/light-gray
# End GRUB global section
# Other bootable partition config begins
title Windows (on /dev/sda1)
rootnoverify (hd0,0)
makeactive
chainloader +1
# Other bootable partition config ends
# Linux bootable partition config begins
title Puppy Linux 4.00 frugal (on /dev/sda2)
rootnoverify (hd0,1)
kernel /puppy400/vmlinuz pmedia=satahd psubdir=puppy400
initrd /puppy400/initrd.gz
# Linux bootable partition config ends
# Linux bootable partition config begins
# title Linux (on /dev/sda4)
# root (hd0,3)
# kernel /boot/vmlinuz root=/dev/sda4 ro vga=normal

# Linux bootable partition config ends
title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd0,1)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/sda2)
root (hd0,1)
setup (hd0,1)
pause Press enter to continue.
title - For help press 'c', then type: 'help'
root (hd0)
title - For usage examples, type: 'cat /boot/grub/usage.txt'
root (hd0)

Rot markiert ist geändert, kann man das so lassen?

Noch eine kleine Frage: Sollte man die Partition lieber mit ext2 oder ext3 erstellen?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#4 Post by MU »

ja sieht gut aus.
Du kannst auch alles nach dem roten kommentieren oder löschen.
Diese sehr spezifischen Grub-Dinge benötigt man üblicherweise nicht.
Viele bevorzugen ein Menü, in dem man nur Linux oder Windows startet.
Sollte was schief gehen, kann man ja immer noch mit der Live-CD booten.

ext3 ist besser, da es ein Journal nutzt, welches z.B. bei Stromausfall genutzt wird, um Dateien wieder zu reparieren.

Ich selber nutze Puppy NUR in der "frugal" installation, und wähle dann immer ein vfat Laufwerk zur Installation.
Hat sich bewährt.
Linux-Daten (entpackte Pakete usw.) speicher ich dann auf einer weiteren Partition im ext3 Format.

Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

Post Reply