1 |
Mike Markowski wrote: |
2 |
|
3 |
>Well, when I do it, I do it right. Through a bad combination of typos |
4 |
>and missing an <enter> I deleted everything in /boot. :-( |
5 |
> |
6 |
>This is what I did to (try to) recover: |
7 |
> |
8 |
> # cd /boot |
9 |
> # mklost+found |
10 |
> # emerge grub |
11 |
> [...edited grub.conf...] |
12 |
> [...recompiled kernel & modules and installed...] |
13 |
> |
14 |
>I *thought* that's all I'd need, but upon boot up: |
15 |
> |
16 |
> Warning:unable to open an initial console |
17 |
> Kernel panic- not syncing: no init found. Try passing init= option to kernel |
18 |
> |
19 |
>I compiled the kernel myself, not with genkernel. I'm stumped at the |
20 |
>moment & would be glad to try any ideas anyone might have. |
21 |
> |
22 |
>Many thanks! |
23 |
>Mike |
24 |
> |
25 |
> |
26 |
|
27 |
|
28 |
This !may! help: |
29 |
|
30 |
> root@smoker / # ls -al /boot/ |
31 |
> total 4349 |
32 |
> drwxr-xr-x 5 root root 272 Jun 19 20:23 . |
33 |
> drwxr-xr-x 21 root root 520 Jun 13 00:06 .. |
34 |
> -rw-r--r-- 1 root root 0 Dec 9 2005 .keep |
35 |
> lrwxrwxrwx 1 root root 1 Dec 8 2005 boot -> . |
36 |
> -rw-r--r-- 1 root root 2225130 Dec 27 04:50 bzImage-gen-2.6.14-5 |
37 |
> -rw-r--r-- 1 root root 2177580 May 16 08:08 bzImage-gen-2.6.16-2 |
38 |
> -rw-r--r-- 1 root root 37565 May 16 08:13 config-gen-2.6.16-2 |
39 |
> drwxr-xr-x 2 root root 672 May 16 08:12 grub |
40 |
> root@smoker / # |
41 |
|
42 |
|
43 |
|
44 |
> root@smoker / # ls -al /boot/grub/ |
45 |
> total 461 |
46 |
> drwxr-xr-x 2 root root 672 May 16 08:12 . |
47 |
> drwxr-xr-x 5 root root 272 Jun 19 20:23 .. |
48 |
> -rw-r--r-- 1 root root 45 Dec 10 2005 device.map |
49 |
> -rw-r--r-- 1 root root 8052 Jan 18 00:59 e2fs_stage1_5 |
50 |
> -rw-r--r-- 1 root root 7812 Jan 18 00:59 fat_stage1_5 |
51 |
> -rw-r--r-- 1 root root 7060 Jan 18 00:59 ffs_stage1_5 |
52 |
> -rw-r--r-- 1 root root 393 May 16 08:12 grub.conf |
53 |
> -rw-r--r-- 1 root root 1624 Jan 18 00:59 grub.conf.sample |
54 |
> -rw-r--r-- 1 root root 393 May 16 07:09 grub.conf~ |
55 |
> -rw-r--r-- 1 root root 7124 Jan 18 00:59 iso9660_stage1_5 |
56 |
> -rw-r--r-- 1 root root 8576 Jan 18 00:59 jfs_stage1_5 |
57 |
> lrwxrwxrwx 1 root root 9 Nov 18 2005 menu.lst -> grub.conf |
58 |
> -rw-r--r-- 1 root root 7284 Jan 18 00:59 minix_stage1_5 |
59 |
> -rw-r--r-- 1 root root 9556 Jan 18 00:59 reiserfs_stage1_5 |
60 |
> -rw-r--r-- 1 root root 33856 Jan 18 00:59 splash.xpm.gz |
61 |
> -rw-r--r-- 1 root root 512 Jan 18 00:59 stage1 |
62 |
> -rw-r--r-- 1 root root 105544 Jan 18 00:59 stage2 |
63 |
> -rw-r--r-- 1 root root 105544 Jan 15 10:52 stage2.old |
64 |
> -rw-r--r-- 1 root root 105544 Jan 18 00:59 stage2_eltorito |
65 |
> -rw-r--r-- 1 root root 7368 Jan 18 00:59 ufs2_stage1_5 |
66 |
> -rw-r--r-- 1 root root 6708 Jan 18 00:59 vstafs_stage1_5 |
67 |
> -rw-r--r-- 1 root root 9404 Jan 18 00:59 xfs_stage1_5 |
68 |
> root@smoker / # |
69 |
|
70 |
|
71 |
May want to check and see if something is missing there. Here is my |
72 |
grub.conf just in case. I'm using gentoo-sources-2.6.16-r9. |
73 |
|
74 |
> timeout 10 |
75 |
> |
76 |
> default 0 |
77 |
> Splashimage=(hd0,0)/boot/grub/splash.xpm.gz |
78 |
> |
79 |
> title Gentoo |
80 |
> kernel (hd0,0)/bzImage-gen-2.6.16-2 root=/dev/hda6 ide0=ata66 |
81 |
> ide1=ata66 vga=788 |
82 |
|
83 |
|
84 |
See anything out of place or missing? |
85 |
|
86 |
Hope that helps. |
87 |
|
88 |
Dale |
89 |
:-) :-) |
90 |
-- |
91 |
gentoo-user@g.o mailing list |