Lieber Besucher, herzlich willkommen bei: Linux Forum Linux-Web.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »BorneBjoern« (20.04.2008, 11:33)
Zitat
Original von VolkerK
Denn grub beginnt bei Null zu zählen.
Dieser Beitrag wurde bereits 4 mal editiert, zuletzt von »BorneBjoern« (14.04.2008, 16:21)
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Opa Heinz« (14.04.2008, 17:55)
Zitat
Original von Opa Heinz
also der mbr liegt auf jeden fall auf der hda, richtig?
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »BorneBjoern« (14.04.2008, 18:17)
Zitat
Mit der "Default" Option stellst du jediglich ein - fuer denn Fall, dass du mehrere OS's installiert hast, welches standard maeszig ausgewaehlt ist, um es nach Ablauf des "timeout" automtisch zu starten.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
Disk /dev/hda: 81.9 GB, 81964302336 bytes 255 heads, 63 sectors/track, 9964 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 637 5116671 83 Linux /dev/hda2 638 1274 5116702+ 83 Linux /dev/hda4 1275 9964 69802425 83 Linux Disk /dev/hdb: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdb2 3 245 1951897+ 82 Linux swap / Solaris /dev/hdb3 * 246 610 2931862+ 83 Linux /dev/hdb4 611 3650 24418800 5 Extended /dev/hdb5 611 732 979933+ 83 Linux /dev/hdb6 733 1948 9767488+ 83 Linux /dev/hdb7 1949 3650 13671283+ 83 Linux Disk /dev/hdc: 80.0 GB, 80060424192 bytes 255 heads, 63 sectors/track, 9733 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdc1 1 3329 26740161 83 Linux /dev/hdc2 3330 9733 51440130 83 Linux |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
# 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'. # WARNING: If you are using dmraid do not change this entry to 'saved' or your # array will desync and will not let you boot your system. 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 specific 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_2_6_8=root=/dev/hdc1 ro ## kopt_2_6_8_2_686=root=/dev/hdc2 ro # kopt=root=/dev/hdb3 ro ## default grub root device ## e.g. groot=(hd0,0) # groot=(hd1,2) ## 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 ## additional options to use with the default boot option, but not with the ## alternatives ## e.g. defoptions=vga=791 resume=/dev/hda5 # defoptions= ## should update-grub lock old automagic boot options ## e.g. lockold=false ## lockold=true # lockold=false ## Xen hypervisor options to use with the default Xen boot option # xenhopt= ## Xen Linux kernel options to use with the default Xen boot option # xenkopt=console=tty0 ## altoption boot targets option ## multiple altoptions lines are allowed ## e.g. altoptions=(extra menu suffix) extra boot options ## altoptions=(single-user) single # altoptions=(single-user 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 ## should update-grub adjust the value of the default booted system ## can be true or false # updatedefaultentry=false ## ## End Default Options ## title Debian GNU/Linux, kernel 2.6.18-6-686 root (hd1,2) kernel /boot/vmlinuz-2.6.18-6-686 root=/dev/hdb3 ro initrd /boot/initrd.img-2.6.18-6-686 savedefault title Debian GNU/Linux, kernel 2.6.18-6-686 (single-user mode) root (hd1,2) kernel /boot/vmlinuz-2.6.18-6-686 root=/dev/hdb3 ro single initrd /boot/initrd.img-2.6.18-6-686 savedefault ### END DEBIAN AUTOMAGIC KERNELS LIST |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Opa Heinz« (14.04.2008, 18:28)
Zitat
Original von Opa Heinz
nachdem ich default auf 1 gesetzt hatte, wollte er beim starten den single-user-mode booten. nach einem ändern von default auf 0 will er wieder ganz normal booten
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »BorneBjoern« (14.04.2008, 18:27)
Quellcode |
|
1 2 |
title Debian GNU/Linux, kernel 2.6.18-6-686 root (hd1,2) |
Quellcode |
|
1 2 |
title Debian GNU/Linux, kernel 2.6.18-6-686 root (hd1,1) |
Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »BorneBjoern« (14.04.2008, 18:40)
Zitat
Dieses Menue, was du beim Systemstart fuer gewoehnlich siehst, ist eigentlich genau das, was in der /boot/grub/menu.lst drinne steht. Nur ein wenig bunter..
Quellcode |
|
1 2 3 4 5 6 7 8 |
$ > su passwort eingeben # > mount /dev/hdb3 /mnt # > vi /mnt/boot/grub/menu.lst . . . . . . . . . . oder anstelle von "vi" kannst du auch {nano | joe | mcedit} benutzen Aenderungen durchfuehren, speichern :wq. . . . . . . . . . . . . . . . . . . . . . . . speichern und Datei schlieszen im vi # > init 6 . . . . . . . . . . . . . . . . . . . . um das System neustarten (LiveCD entfernen) |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »BorneBjoern« (14.04.2008, 18:57)
Zitat
wenn ich nun den rechner starte kommt die fehlermeldung, dass er kein bootfähiges device finden konnte (ich nehme an, dass er auf hda sucht).
wenn ich eine boot cd oder acronis true image einlege und sage: boot from first hdd lädt er grub und ich kann debian starten. das ist ein wenig wiedersprüchlich
Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »BorneBjoern« (14.04.2008, 19:06)
Quellcode |
|
1 2 |
Not found any [active partition] in HDD Disk Boot Failure, Insert System Disk and Press Enter |
Zitat
Original von BorneBjoern
kannst du im BIOS die BOOT-Reihenfolge der HDDs aendern? wenn ja, dann schau mal, dass du das auf die 2te HDD aendern kannst.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 |
server:~# grub-install /dev/hdb Searching for GRUB installation directory ... found: /boot/grub 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'. (hd0) /dev/hda (hd1) /dev/hdb (hd2) /dev/hdc |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Opa Heinz« (14.04.2008, 19:29)
Zitat
grub beginnt dann bei "0" mit zaehlen wenn es um die Festplatten bzw vorhandene Partionen geht.