View previous topic :: View next topic |
Author |
Message |
Giuly Tux's lil' helper
Joined: 21 May 2003 Posts: 138 Location: Bremen - Germany
|
Posted: Wed Feb 09, 2005 5:02 pm Post subject: Grub vertauscht HDDs |
|
|
Hi,
irgendwie scheint grub die fertplatten zu vertauschen.
unter gentoo muss ich grub mit "setup (hd1,1)" installieren, wenn ich boote ist das aber auch einmal "(hd0,1)". Ausserdem kommt beim booten nur die commandline, und ich muss "configfile (hd0,1)/grub/grub.conf" eingeben, damit die GUI kommt.
fdisk -l: Code: | Disk /dev/hda: 10.0 GB, 10005037056 bytes
255 heads, 63 sectors/track, 1216 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1215 9759456 7 HPFS/NTFS
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/hdb1 * 1 1769 14209461 7 HPFS/NTFS
/dev/hdb2 3584 3592 72292+ 83 Linux
/dev/hdb3 3593 3655 506047+ 83 Linux
/dev/hdb4 3656 4865 9719325 83 Linux |
fstab:
Code: | /dev/hdb2 /boot ext3 noauto,noatime 1 1
/dev/hdb4 / ext3 noatime 0 0
/dev/hdb3 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
/dev/cdroms/cdrom1 /mnt/dvd iso9660 noauto,ro 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
capifs /dev/capi capifs defaults 0 0
|
_________________ dunno |
|
Back to top |
|
|
primat Guru
Joined: 12 Jan 2004 Posts: 437 Location: Berlin
|
Posted: Wed Feb 09, 2005 5:05 pm Post subject: |
|
|
Alle Jumper an den HDs richtig gesetzt? (master, slave) |
|
Back to top |
|
|
Giuly Tux's lil' helper
Joined: 21 May 2003 Posts: 138 Location: Bremen - Germany
|
Posted: Wed Feb 09, 2005 5:16 pm Post subject: |
|
|
ja, sind richtig gesetzt. (hdb ist slave, hda ist master), aber im BIOS hab ich das Slave als "Boot Device" oder so eingetragen, dann wandert das vor das Master. Wenn ich das anders rum mache und mit F8 das Slave boote, sehe ich nur ein "_", das eine zeile runter geht. _________________ dunno |
|
Back to top |
|
|
Vaarsuvius Guru
Joined: 02 Dec 2004 Posts: 345
|
Posted: Wed Feb 09, 2005 5:23 pm Post subject: |
|
|
das scheint mir schon so richtig zu sein...... lies dir mal info grub -> Filesystem syntax and semantics -> Device syntax durch....... kommt mir logisch vor. |
|
Back to top |
|
|
kleinerfreak n00b
Joined: 28 Jan 2005 Posts: 33 Location: Hessen/Germany
|
Posted: Wed Feb 09, 2005 6:16 pm Post subject: |
|
|
Das ganze ist ganz einfach: Wenn du grub installierst, geht er nach deinen devices in der fstab oder wo auch immer... Wenn er aber im MBR sitzt, ist für ihn die Platte, auf der er sitzt hd0,0, und er zählt dann weiter.... |
|
Back to top |
|
|
Giuly Tux's lil' helper
Joined: 21 May 2003 Posts: 138 Location: Bremen - Germany
|
Posted: Wed Feb 09, 2005 6:35 pm Post subject: |
|
|
aber warum zeigt er dann nicht die GUI, sondern die commandline?
ich hab mal versucht mit "grub --device-map /boot/grub/device.map" und dann root (hd0,1) setup (hd0) zu machen, kommt aber wieder nur die commandline.
device.map:
Code: | (fd0) /dev/fd0
(hd0) /dev/hdb
(hd1) /dev/hda |
grub.conf:
Code: | default 0
timeout 10
splashimage=(hd0,1)/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,1)
kernel (hd0,1)/bzImage root=/dev/hdb4 video=vesafb:ywrap,mtrr vga=0x31A
initrd (hd0,1)/initrd-1280x1024 |
_________________ dunno |
|
Back to top |
|
|
Giuly Tux's lil' helper
Joined: 21 May 2003 Posts: 138 Location: Bremen - Germany
|
Posted: Thu Feb 10, 2005 1:52 am Post subject: *push*, sry :) |
|
|
keine ne antwort?
System ist AMD64, liegts vielleicht dadran? (is grub selbstcompiled, grub-static macht aber genau das selbe (GRUB Command-Line beim booten anzeigen) Oder am Motherboard vllt? (K8V Deluxe) _________________ dunno |
|
Back to top |
|
|
DarKRaveR Guru
Joined: 11 Oct 2003 Posts: 500 Location: Old Europe/G-Many
|
Posted: Thu Feb 10, 2005 10:34 am Post subject: |
|
|
PRoblem ist, Linux vergibt die Devicenamen anhand der Position am Controller, Grub verwendet logischerweise Bioscalls, daher ist Deine Platte hdb, wenn du davon bootest, weil dein bios x80 und x81 swapped auf einmal hd0.
Was die config anbelangt, grub muß halt schon wissen, wo er seine Dateien (config) etc. findet, nur hast du bei der installation dummerweise unter linux ja auf hd1 (was ja richtig ist) geschrieben, schau dir mal an, was für ein commando er absetzt - dort steht dann vermutlich irgendwo daß die config (hd1,1)/grub/menu.lst ist (oder so), kopiere dir die kommandozeile und führe sie selbst nochmal aus, daß er die richtige filelocation embedded ....
Siehe auch (in der grub shell) help setup - bzw. ganz hart: help install
Viel Glück .... |
|
Back to top |
|
|
Giuly Tux's lil' helper
Joined: 21 May 2003 Posts: 138 Location: Bremen - Germany
|
Posted: Thu Feb 10, 2005 11:41 am Post subject: |
|
|
nein, ich ahb ihm ja in die device.map geschreiben, dass /dev/hdb (hd0) ist, darum hab ich den auch mit root(hd0,1) setup(hd0) installiert (OHNE device.map mit (hd1,1) etc) _________________ dunno |
|
Back to top |
|
|
amne Bodhisattva
Joined: 17 Nov 2002 Posts: 6378 Location: Graz / EU
|
Posted: Thu Feb 10, 2005 5:14 pm Post subject: Re: *push*, sry :) |
|
|
Giuly wrote: | keine ne antwort?
|
Bitte nächstes mal mindestens 24h warten und/oder die Edit-Funktion verwenden. _________________ Dinosaur week! (Ok, this thread is so last week) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|