Grub2 - Bootet ein System nur über Commandline nicht über Menüeintrag
Stefan U. Hegner
stefan at hegner-online.de
Mon Dec 31 00:05:44 CET 2012
Hi Achim,
Am 29.12.2012 15:20, schrieb A. Dreyer (LUG-OWL):
> On 29/12/12 13:24, Stefan U. Hegner wrote:
>> menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
>> insmod part_msdos
>> insmod ext2
>> set root='(hd1,msdos1)'
>> search --no-floppy --fs-uuid --set 3a9ce315-deb5-448a-9502-697c9f2a5922
>> echo 'Loading Linux 2.6.32-5-amd64 ...'
>> linux /vmlinuz-2.6.32-5-amd64 root=/dev/mapper/crypt-areca1-root ro quiet splash
>> echo 'Loading initial ramdisk ...'
>> initrd /initrd.img-2.6.32-5-amd64
>> }
>>
>>
>> Aber was ich absolut nicht begreife ist folgendes:
>> Gebe ich dagegen am Grub-Prompt die Zeilen manuell ein, werden die
>> Platten nicht vertauscht (!!!) ...
>>
>> > set root='(hd0,msdos2)'
>> > linux /boot/vmlinuz-3.5.0-17-generic
>> root=/dev/disk/by-label/ubuntu-root
>> > initrd /boot/intitrd.img-3.5.0-17-generic
>> > boot
>>
>> und die Kiste startet sauber das Ubuntu - alles gut! - Alternativ habe
>> ich für root= schon /dev/sda2 bzw. UUID=xxxx ... und dem kernel aus
>> /dev/sda1/ubuntu probiert - das alles funktioniert.
> Wie sieht deine devices.map aus? Manuell nutzt du hd0.. weiter oben ist
> aber alles hd1..
In der /boot/grub/device.map (die meinst Du doch, oder?) im gebooteten
Debian-System (von dem ich den Grub2 installiert habe) steht:
(hd0) /dev/disk/by-id/ata-WDC_WD5000AAKB-00H8A0_WD-WCASYF474745
(hd1) /dev/disk/by-id/scsi-20004d927fffff800
hd0 ist die PATA Platte ohne System, hd1 der areca Raid.
... das ist ja nichts neues, denn das debian bootet von hd1 aber nicht
das ubuntu, da kommt nach dem kernel nix mehr.
Gruß
Stefan.
--
Stefan U. Hegner
<stefan at hegner-online.de>
* * *
D-32584 Löhne --- good ole Germany
internet: http://www.hegner-web.de
* * *
GPG-Key | D9DB 51BD 2DA6 9B3A 41CB
F-Print | 0287 05A1 8D11 38BA CE91
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lug-owl.de/pipermail/linux/attachments/20121231/5f70a6ce/attachment.sig>
More information about the Linux
mailing list