Bootloader will 2. Festplatte nicht

Post Reply
Message
Author
iLinux
Posts: 4
Joined: 18. Sep 2004 20:24

Bootloader will 2. Festplatte nicht

#1 Post by iLinux »

seit ein paar Tagen bin ich dabei ein Gentoo System von Grund auf (Stage 1) zusammen zu stellen. Jetzt bin ich aber bei einem scheinbar unlösbaren Punkt angekommen. Die Installation des Bootmanagers. Zur Information ich installiere Linux auf einer 8Gb Festplatte (hdb). Auf der 1. Festplatte (hda) sind 2 verschiedene Windows Versionen installiert.
hdb1 ext2 /boot
hdb2 swap none
hdb3 ext3 /gentoo

als Bootmanager habe ich Gurb und Lilo ausprobiert, aber nichts scheint zu funktionieren. Ich bin dabei der Installationsanleitung von Genntoo.de gefolgt. Nach ein paar Recherchen habe ich es zumindest geschaft, dass das Menü des Bootloaders angezeigt wird (Gurb). Leider wird mit Fehler 21 abgebrochen. Es heißt keine Festplatte gefunden (hd1,0). Ich bin mit meinem Latein am Ende.

User avatar
Lateralus
prolinux-forum-admin
Posts: 1238
Joined: 05. May 2004 7:35

#2 Post by Lateralus »

Was genau hast du bei der GRUB-Installation gemacht? Ich finde die Beschreibung gerade nicht.

iLinux
Posts: 4
Joined: 18. Sep 2004 20:24

#3 Post by iLinux »

Code: Select all

emerge grub
nano -w /boot/grub/grub.conf

grub.conf:

Code: Select all

default 0
timeout 30
title=Gentoo Linux 2.4.27
root (hd1,0)
kernel (hd1,0)/kernel-2.4.27 root=/dev/hdb3
also nur aufs nötigste beschrenkt um Fehlerquellen aus zu schließen.
anschließend noch

Code: Select all

cp /proc/mounts /etc/mtab
grub-install --root-directory=/boot /dev/hda
[/code]

iLinux
Posts: 4
Joined: 18. Sep 2004 20:24

#4 Post by iLinux »

Habe nun auch folgendes ausprobiert:

Code: Select all

grub --batch --device-map=/dev/null << EOF
>device &#40;hd1&#41; /dev/hdb
>root &#40;hd1&#41;
>setup &#40;hd1&#41;
>quit
>EOF
nach dem root Befehl erscheint folgendes:

Code: Select all

Filesystem type unknown, using whole disk
nach dem setup Befehl erscheint:

Code: Select all

Error 17&#58; Cannot mount selected partition
grub> quit

iLinux
Posts: 4
Joined: 18. Sep 2004 20:24

#5 Post by iLinux »

sollte es von Interesse sein, hier die fstab:

Code: Select all

fstab
# /etc/fstab&#58; static file system information. 
 # $Header&#58; /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20&#58;03&#58;38 azarah Exp $ 
 # 
 # noatime turns off atimes for increased performance &#40;atimes normally aren't 
 # needed; notail increases performance of ReiserFS &#40;at the expense of storage 
 # efficiency&#41;.  It's safe to drop the noatime options if you want and to  
 # switch between notail and tail freely. 
  
 # <fs>             <mountpoint>    <type>     <opts>            <dump/pass> 
  
 # NOTE&#58; If your BOOT partition is ReiserFS, add the notail option to opts. 
 /dev/hdb1      /boot      ext2      noauto,noatime      1 1 
 /dev/hdb2      none      swap      sw         0 0 
 /dev/hdb3      /      ext3      noatime         0 1 
 /dev/cdroms/cdrom0   /mnt/cdrom   auto      noauto,user      0 0 
  
 /dev/cdroms/cdrom1   /mnt/cdram   auto      noauto,user      0 0 
  
 #/dev/fd0      /mnt/floppy   auto      noauto         0 0 
  
 # NOTE&#58; The next line is critical for boot! 
 none         /proc      proc      defaults      0 0 
  
 # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for 
 # POSIX shared memory &#40;shm_open, shm_unlink&#41;.  
 # &#40;tmpfs is a dynamically expandable/shrinkable ramdisk, and will 
 #  use almost no memory if not populated with files&#41; 
 # Adding the following line to /etc/fstab should take care of this&#58; 
  
 none         /dev/shm   tmpfs      defaults      0 0 
 
und die grub.conf:

Code: Select all

grub.conf
 default 0 
 timeout 30 
 # splashimage=&#40;hd1,0&#41;/grub/splash.xpm.gz 
  
 title=Gentoo 
 root &#40;hd1,0&#41; 
 kernel &#40;hd1,0&#41;/kernel-2.4.27 root=/dev/hdb3 
  
 # title=windows 
 # rootnoverify &#40;hd0,0&#41; 
 # makeactive 
 # chainloader +1 
 

User avatar
Lateralus
prolinux-forum-admin
Posts: 1238
Joined: 05. May 2004 7:35

#6 Post by Lateralus »

Versuch mal einfach folgendes:

Code: Select all

# grub

grub> install &#40;hd1,0&#41;/grub/stage1 d &#40;hd0&#41; &#40;hd1,0&#41;/grub/stage2 p &#40;hd1,0&#41;/grub/grub.conf
grub> quit
(Natürlich unter der Voraussetzung, dass stage1 und stage2 in /boot/grub/, worin hdb1 gemounted ist, liegt.)

Post Reply