Sie sind nicht angemeldet.

21

11.09.2009, 16:52

Ja hast recht, sorry. In der Anleitung wird ja eine seperate /boot partition beschrieben die ich noch nie gemacht habe, bei mir ist immer boot = root.

Meine sieht so aus vielleicht hilfts ja

Quellcode

1
2
3
4
5
6
7
default 0
timeout 3
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo
root (hd0,0)/boot
kernel (hd0,0)/boot/kernel root=/dev/sda1 video=vesafb:ywrap,mtrr vga=0x31A


Deine würde ich anhand deiner fstab + hoffen das / sda3 und /boot sda1 ist.
So bauen

Quellcode

1
2
3
4
5
6
7
default 0
timeout 3
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title=Gentoo
root (hd0,0)/boot
kernel (hd0,0)/boot/kernel root=/dev/sda3
Phenom X4 9550
Gigabyte GA-MA770-UD3
Gentoo 64 Bit Stable
8 GB Ram
Audigy 2 Zs
Geforce 9800 GTX
VDR
Hauppauge Nexus-S Rev 2.2 + 2.1

Lenovo G550 T4300
Gentoo 64 Bit Stable
4 GB Ram

22

11.09.2009, 17:00

du musst nur in der grub.conf das x86 bei kernel wegmachen... Der Rest sollte passen...

23

11.09.2009, 17:12

du musst nur in der grub.conf das x86 bei kernel wegmachen... Der Rest sollte passen...

Würde ich auch so sehen..

Laut deinem "ls -l /boot" ist der kernel mit "kernel-2.6.24-gentoo-r5" benannt,
in deiner grub.conf hast du aber "kernel-x86-2.6.24-gentoo-r5" stehen.

24

13.09.2009, 14:06

herzlichen Dank für eure Hilfe. Es hat endlich geklappt. Ich bin so froh :tongue:

x86 war der Grund.

25

14.09.2009, 16:12

Kann ich weitere Frage hier posten :) ?

Ich habe einen weiteren Rechner installiert. Es sieht gut aus, bis grub.conf. Auf dem Rechner befindet sich eine Festplatte, welche aber an DIE Sekundar Slave angeschloßen. Warum, weiss ich leider nicht. Es sieht im Bios so aus:

Quellcode

1
2
3
4
  IDE Primary Master     [CD-…]  
IDE Primary Slave	  	[none]  
IDE Sekundar Master  [none]  
IDE Sekundar Slave	  [Maxtor-…]


Die fstab ist folgendes:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
Disk /dev/sda: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x00000000

   Device Boot  Start     End  Blocks   Id  System
/dev/sda1   *       1      98   49360+  83  Linux
/dev/sda2          99    3974 1953504   82  Linux swap / Solaris
/dev/sda3        3975   23351 9766008   83  Linux
/dev/sda4       23352  158816682743605  Extended
/dev/sda5       23352  15881668274328+  83  Linux


Meine Frage: was muss ich statt (hd0,0) in die grub.conf eintragen?

Vielen Dank
Grüße
terr

26

14.09.2009, 17:12

Da die boot-Partition auch die erste ist, und es wohl auch die erste Platte im System ist, sollte hd0,0 richtig sein...

27

14.09.2009, 17:19

Hey,

..da es die zweite Slave Platte ist, also "sdd" müsste es eigentlich "(hd1,0)" sein. So war es zumindest einmal bei mir. Wenn Du grub manuell instalierst wird es Dir auch angezeigt. Einfach mal ausprobieren.

Gruss Micha.

28

14.09.2009, 17:23

Hey,

..da es die zweite Slave Platte ist, also "sdd" müsste es eigentlich "(hd1,0)" sein.


Diese Logik verstehe ich absolut nicht. Nach der müsste es doch (hd3,0) sein. Ich denke aber eher, dass es (hd0,0) ist, da es die einzige Festplatte im System ist...

29

14.09.2009, 17:34

..bei mir wurde der Controller so erkannt. :) Probieren geht über studieren. Der Controller unterscheidet meiner Meinung nach nicht zwischen Laufwerken.
So etwas hatte ich zumindest noch nicht, aber das will nichts heißen.

30

14.09.2009, 17:37

@Jeff ich denke @Michigen hat sich in der Eile nur ein wenig verhaspelt. die 2. Sekundäre Platte ist definitiv die 4 Platte und somit hd(3,0)

1. Primär Platte hd(0,0)
2. Primär Platte hd(1,0)
1. Sekund. Platte hd(2,0)
2. Sekund. Platte hd(3,0)
Phenom X4 9550
Gigabyte GA-MA770-UD3
Gentoo 64 Bit Stable
8 GB Ram
Audigy 2 Zs
Geforce 9800 GTX
VDR
Hauppauge Nexus-S Rev 2.2 + 2.1

Lenovo G550 T4300
Gentoo 64 Bit Stable
4 GB Ram

31

14.09.2009, 17:45

Problem ist, ich habe mit (hd0,0), (hd0,1) <!--das hier ist blödsinn, habe aber trotzdem probiert -->, (hd1,0), (hd3,0) so gar (hd2,0) probiert, keine war richtig.

32

14.09.2009, 17:48

Problem ist, ich habe mit (hd0,0), (hd0,1) <!--das hier ist blödsinn, habe aber trotzdem probiert -->, (hd1,0), (hd3,0) so gar (hd2,0) probiert, keine war richtig.


Dann solltest du die Platte als Master jumpern und an den ersten Port hängen...

33

14.09.2009, 17:51

mach doch mal im chroot modus ein

Quellcode

1
fdisk -l


dabei gillt dann

sda1 = hd0,0
sda2 = hd0,1
sda3 = hd0,2

sdb1 = hd1,0
sdb2 = hd1,1

sdc1 = hd2,0
sdc2 = hd2,1

Rest kann man sich selbst ergänzen

achtung wenn du eine platte an den Sekundär Slave hängs also auf die 4. die anderen 3 sind nicht belegt ist der Sekundär Slave obwohl es der 4. anschluss ist aber die erste platte -> sda1 -> und somit hd0,0

ps wenn du im kernel den falschen treiber aktiviert hast wird die platte als hda und nicht sda erkannt oder gar nicht, ist auch ne oft vorkommende Fehlerquelle
Phenom X4 9550
Gigabyte GA-MA770-UD3
Gentoo 64 Bit Stable
8 GB Ram
Audigy 2 Zs
Geforce 9800 GTX
VDR
Hauppauge Nexus-S Rev 2.2 + 2.1

Lenovo G550 T4300
Gentoo 64 Bit Stable
4 GB Ram

34

14.09.2009, 17:55

Dann solltest du die Platte als Master jumpern und an den ersten Port hängen...
Ja, das werde ich morgen tun. Naja es ist nicht einfach der Rechner auseinander zuschrauben, deswegen habe ich mit der Konfiguration versucht. Anscheint muss ab und zu mal mit Hammer installieren =) .

Ich bin sehr dankbar für eure Hilfe.

Grüße
terr

35

14.09.2009, 17:57

Sicher, dass das überhaupt der Fehler ist? Was kommt denn als Fehlermeldung?

Und zur Not, einfach wieder 'ls -l /boot' und 'cat /boot/grub/grub.conf' zeigen...

36

14.09.2009, 17:59

mach doch mal im chroot modus ein

Quellcode

1
fdisk -l


dabei gillt dann

sda1 = hd0,0
sda2 = hd0,1
sda3 = hd0,2

sdb1 = hd1,0
sdb2 = hd1,1

sdc1 = hd2,0
sdc2 = hd2,1

Rest kann man sich selbst ergänzen

achtung wenn du eine platte an den Sekundär Slave hängs also auf die 4. die anderen 3 sind nicht belegt ist der Sekundär Slave obwohl es der 4. anschluss ist aber die erste platte -> sda1 -> und somit hd0,0

ps wenn du im kernel den falschen treiber aktiviert hast wird die platte als hda und nicht sda erkannt oder gar nicht, ist auch ne oft vorkommende Fehlerquelle


Schau dir mal seinen Ausgangspost zu diesem Thema an. Anscheinend ist es sda, weil es die einzige Platte ist, weshalb ich schrob, dass es hd0,0 sein müsste...

37

14.09.2009, 18:56

Hm.., warum macht ihr euch das Leben so schwer?
nutzt doch einfach den GRUB Tab-Komplettierungsmechanismus
zb

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# grub
oder wenn kein floppy, dann
# grub --no-floppy
grub> root (hd   (hier die TAB Taste nutzen)
 Possible disks are:  hd0 hd1 hd2

grub> root (hd0,  (TAB  nutzen)
 Possible partitions are:
   Partition num: 0,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 1,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 2,  Filesystem type is reiserfs, partition type 0x83
   Partition num: 4,  Filesystem type is fat, partition type 0xb
   Partition num: 5,  Filesystem type unknown, partition type 0x82
   Partition num: 6,  Filesystem type is reiserfs, partition type 0x83
   Partition num: 7,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 8,  Filesystem type is reiserfs, partition type 0x83

grub> root (hd0,
usw
Mit der Tabulator Taste lässt sich der richtige Pfad doch sehr leicht herausfinden.

Ich würde aber auch vermuten das "root (hd0,0)" hier richtig ist, vorausgesetzt, das kernel-Image liegt auf der ersten Partition.
ansonsten schau doch auch noch mal im Gentoo Handbuch, da ist es eigentlich auch sehr gut beschrieben, zb: http://www.gentoo.de/doc/de/handbook/han…?part=1&chap=10
Abschnitt:
Alternativ: GRUB manuell installieren

viel Erfolg

38

14.09.2009, 20:57

Hey josef.95,

Zitat von »josef.95«

nutzt doch einfach den GRUB Tab-Komplettierungsmechanismus
das ist ja Hammergeil. :thumbsup:

39

14.09.2009, 23:10

Das funktioniert zb auch im GRUB Menü (beim booten) , mit der Taste "E" wie edit, kann man den aktuellen Eintrag editieren, zb wenn man versehentlich dem bzImage einen falschen Namen gegeben hat, oder man einfach einen anderen Kernel oder initrd booten möchte, auch hier kann man sehr einfach mithilfe der TAB Taste den korrekten Pfad herausfinden, mit Enter abspeichern, und mit Taste "B" booten.

Wenn man auch ein Deutsches Keybord-Layout im GRUB-Menu möchte, da helfen diese Einträge in der grub.conf

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#Deutsche Tastaturbelegung
setkey y z
setkey z y
setkey Y Z
setkey Z Y
setkey equal parenright
setkey parenright parenleft
setkey parenleft asterisk
setkey doublequote at
setkey plus bracketright
setkey minus slash
setkey slash ampersand
setkey ampersand percent
setkey percent caret
setkey underscore question
setkey question underscore
setkey semicolon less
setkey less numbersign
setkey numbersign backslash
setkey colon greater
setkey greater bar
setkey asterisk braceright

MfG

40

15.09.2009, 09:35

es kann leider immer noch nicht booten.

Hier sind einie Informationen, ich bin sehr dankbar für die Hilfe.
Grub:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
grub> root (hd0,
 Possible partitions are:
   Partition num: 0,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 1,  Filesystem type unknown, partition type 0x82
   Partition num: 2,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 4,  Filesystem type unknown, partition type 0x83

grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  18 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+18 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.

grub>


livecd / # cat /boot/grub/grub.conf

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 3
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo Linux 2.6.30-r6
root (hd0,0)
kernel /boot/kernel-2.6.30-gentoo-r6 root=/dev/sda3


livecd / # ls -l /boot

Quellcode

1
2
3
4
5
6
7
total 3903
-rw-r--r-- 1 root root  757373 Sep 14 14:50 System.map
lrwxrwxrwx 1 root root   	1 Sep 14 12:45 boot -> .
drwxr-xr-x 2 root root	1024 Sep 14 16:18 grub
-rw-r--r-- 1 root root 1601664 Sep 14 14:50 kernel-2.6.30-gentoo-r6
drwx------ 2 root root   12288 Sep 14 12:17 lost+found
-rw-r--r-- 1 root root 1601664 Sep 14 14:50 vmlinuz

livecd / # cat /etc/fstab

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
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>              	<mountpoint>	<type>      	<opts>      	<dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1           	/boot       	ext3        	noauto,noatime  0 2
/dev/sda3           	/           	ext3        	noatime     	0 1
/dev/sda2           	none        	swap        	sw          	0 0
/dev/sda5           	/home       	ext3        	noatime     	0 2
/dev/cdrom          	/mnt/cdrom  	auto        	noauto,ro   	0 0
#/dev/fd0           	/mnt/floppy 	auto        	noauto      	0 0


proc                	/proc       	proc        	defaults    	0 0


# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                 	/dev/shm    	tmpfs       	nodev,nosuid,noexec 	0 0


Fehler beim Hochfahren:

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
VFS: Canot open root device "sda3" or unknow-block(0,0)
Please append a correct "root=" boot option; here are the vailable partions:

1640 80043264 hdd driver: ide-gd
  1641	56196		hdd1
  1642	2939895		hdd2
  1643	73248367	hdd3
  1644	1		hdd4
  1645	705028		hdd5
0300	705028		hda drive: ide-cdrom

Kernel panic - not syncing: VFS: unable to mount root fs on unknow-block (0,0)

Pid: 1, comm: swapper not tainted 2.6.30-gentoo-r6 #1
Call Trace:
  [<c012302e>]	panic+0x51/0x114
  [<c03dbb3c>]	mount_block_root+0xf3/0x261
  [<c0180313>]	?sys_mkmod+0x27/0x29
  [<c03dbd0d>]	mount_root+0x63/0x86
  [<c03dbd69>]	prepare_namespace+0x39/0x190
  [<c01759f5>]	? sys_access+0x20/0x22
  [<c03db5f0>]	kernel_init+0x15e/0x16d
  [<c03db492>]	? kernel_ini+0x0/0x16d
  [<c010370f>]	kernel_thread_helper+0x7/0x18