Re: [gentoo-user] Deleted /boot
On 6/21/06, Mike Markowski [EMAIL PROTECTED] wrote: Here's a little more info that might inspire some ideas out there ingentoo land.Since my /boot partition was possibly in a generallyunhappy state, I booted the 2006.0 livecd, did a mkfs /dev/sda1 (my /boot partition), then put grub and kernel stuff back on /boot.I wasconfident this would do it, but no go.Just to be sure nothing was leftout, I even went through the grub set up process again as Daniel recommended in another post in this thread.Still no change.Seems nothing unusual. The boot process continues just prior to the INIT 2.86 line when theinit.d stuff is kicked off.While booted with the livecd, I checked and/sbin/init really is there (mine, not the livecd one).But when I tried to pass init=/sbin/init as a kernel arg in grub.conf, I got the samepanic along with a message that /sbin/init couldn't be executed (orsomething similar - I forgot to write it down).But since I only hosed /boot and then reinstalled grub and kernel, I'm not sure why I'm not inbusiness yet.Any ideas?Bueller?Bueller?although the panic complains that init can not be executed, the problem may not be caused by init, make sure to pass the correct root arg to kernel, which is your root partition, not the same root when you are in grub's shell. Thanks,Frustrated in Pennsylvania (aka Mike)Mike Markowski wrote: Well, when I do it, I do it right.Through a bad combination of typos and missing an enter I deleted everything in /boot.:-( This is what I did to (try to) recover: # cd /boot # mklost+found # emerge grub [...edited grub.conf...] [...recompiled kernel modules and installed...] I *thought* that's all I'd need, but upon boot up: Warning:unable to open an initial console Kernel panic- not syncing: no init found. Try passing init= option to kernel I compiled the kernel myself, not with genkernel.I'm stumped at the moment would be glad to try any ideas anyone might have. Many thanks! Mike--gentoo-user@gentoo.org mailing list hope the snippet from my grub.conf helps:title GENTOO BOXroot (hd0,6) # the /boot partition kernel /kernel-2.6.16-gentoo-r7 root=/dev/sda9 # the / partitionwell, I assume these stuff is quite basic to you, but before I could see what exactly your configuration is, this is all I could think about. good luckdaniel
Re: [gentoo-user] Deleted /boot
Norberto Bensa wrote: Mike Markowski wrote: Any ideas? Bueller? Bueller? Please post: $ cat /boot/grub/menu.lst $ ls -l /boot $ sudo fdisk -l $ ls -l /dev/console $ ls -l /dev/initctl $ ls -l /dev/null Ok, Norberto. Looks like the (or, a) problem is initctl. The named pipe is missing...or is it supposed to be created during boot? I got the info below after 'chrooting' from a livecd boot. I don't know what the pipe is for, so time to start reading. But I wanted to get this posted soon as I could. Thanks, Mike livecd / # cat /boot/grub/menu.lst timeout 10 default 0 title Gentoo 2.6.17 root (hd0,0) kernel /kernel-2.6.17-gentoo root=/dev/sda1 # Change the colors. title Change the colors color light-green/brown blink-red/blue livecd / # fdisk -l Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 1 5 40131 83 Linux /dev/sda2 6 249 1959930 82 Linux swap / Solaris /dev/sda3 250972976148100 83 Linux Disk /dev/sdb: 1040 MB, 1040187392 bytes 32 heads, 32 sectors/track, 1984 cylinders Units = cylinders of 1024 * 512 = 524288 bytes Device Boot Start End Blocks Id System /dev/sdb1 * 11984 10157926 FAT16 livecd / # ls -l /boot/ total 2218 lrwxrwxrwx 1 root root 1 Jun 20 20:09 boot - . -rw-r--r-- 1 root root 36667 Jun 19 19:32 config-2.6.17-gentoo drwxr-xr-x 2 root root1024 Jun 20 20:06 grub -rw-r--r-- 1 root root 2208825 Jun 20 19:39 kernel-2.6.17-gentoo drwx-- 2 root root 12288 Jun 20 20:07 lost+found livecd / # ls -l /dev/console crw--- 1 root tty 5, 1 Feb 13 19:03 /dev/console livecd / # ls -l /dev/initctl /bin/ls: /dev/initctl: No such file or directory livecd / # ls -l /dev/null crw-rw-rw- 1 root root 1, 3 Feb 13 19:03 /dev/null livecd / # -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Deleted /boot
On 6/21/06, Mike Markowski [EMAIL PROTECTED] wrote: Ok, Norberto. Looks like the (or, a) problem is initctl. The named pipe is missing...or is it supposed to be created during boot? I got No, /dev/initctl is a named pipe created when init runs... title Gentoo 2.6.17 root (hd0,0) kernel /kernel-2.6.17-gentoo root=/dev/sda1 Um, isn't /dev/sda1 your /boot filesystem? Shouldn't this be /dev/sda3? -Richard -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Deleted /boot
Richard Fish wrote: On 6/21/06, Mike Markowski [EMAIL PROTECTED] wrote: Ok, Norberto. Looks like the (or, a) problem is initctl. The named pipe is missing...or is it supposed to be created during boot? I got No, /dev/initctl is a named pipe created when init runs... title Gentoo 2.6.17 root (hd0,0) kernel /kernel-2.6.17-gentoo root=/dev/sda1 Um, isn't /dev/sda1 your /boot filesystem? Shouldn't this be /dev/sda3? D'oh! Bangs head on desk I was seeing what I meant, I guess, rather than what was there. Thanks, Richard. I must have spent 2 hours on this. I'll go hide in my embarrassment now... Seriously, many thanks to everyone who helped! Mike -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Deleted /boot
Here's a little more info that might inspire some ideas out there in gentoo land. Since my /boot partition was possibly in a generally unhappy state, I booted the 2006.0 livecd, did a mkfs /dev/sda1 (my /boot partition), then put grub and kernel stuff back on /boot. I was confident this would do it, but no go. Just to be sure nothing was left out, I even went through the grub set up process again as Daniel recommended in another post in this thread. Still no change. The boot process continues just prior to the INIT 2.86 line when the init.d stuff is kicked off. While booted with the livecd, I checked and /sbin/init really is there (mine, not the livecd one). But when I tried to pass init=/sbin/init as a kernel arg in grub.conf, I got the same panic along with a message that /sbin/init couldn't be executed (or something similar - I forgot to write it down). But since I only hosed /boot and then reinstalled grub and kernel, I'm not sure why I'm not in business yet. Any ideas? Bueller? Bueller? Thanks, Frustrated in Pennsylvania (aka Mike) Mike Markowski wrote: Well, when I do it, I do it right. Through a bad combination of typos and missing an enter I deleted everything in /boot. :-( This is what I did to (try to) recover: # cd /boot # mklost+found # emerge grub [...edited grub.conf...] [...recompiled kernel modules and installed...] I *thought* that's all I'd need, but upon boot up: Warning:unable to open an initial console Kernel panic- not syncing: no init found. Try passing init= option to kernel I compiled the kernel myself, not with genkernel. I'm stumped at the moment would be glad to try any ideas anyone might have. Many thanks! Mike -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Deleted /boot
On 6/20/06, Mike Markowski [EMAIL PROTECTED] wrote: Here's a little more info that might inspire some ideas out there ingentoo land.Since my /boot partition was possibly in a generallyunhappy state, I booted the 2006.0 livecd, did a mkfs /dev/sda1 (my /boot partition), then put grub and kernel stuff back on /boot.I wasconfident this would do it, but no go.Just to be sure nothing was leftout, I even went through the grub set up process again as Daniel recommended in another post in this thread.Still no change.The boot process continues just prior to the INIT 2.86 line when theinit.d stuff is kicked off.While booted with the livecd, I checked and /sbin/init really is there (mine, not the livecd one).But when I triedto pass init=/sbin/init as a kernel arg in grub.conf, I got the samepanic along with a message that /sbin/init couldn't be executed (or something similar - I forgot to write it down).But since I only hosed/boot and then reinstalled grub and kernel, I'm not sure why I'm not inbusiness yet.What's the 'ls -al' of your /boot partition look like? Does it have the following link? lrwxrwxrwx 1 root root1 Dec 8 2005 boot - .Just wondering?-Hani-- If, of the many truths, you select only one and follow it blindly, it will become a falsehood, and you a fanatic.
Re: [gentoo-user] Deleted /boot
Mike Markowski wrote: Any ideas? Bueller? Bueller? Please post: $ cat /boot/grub/menu.lst $ ls -l /boot $ sudo fdisk -l $ ls -l /dev/console $ ls -l /dev/initctl $ ls -l /dev/null pgpnN7lAeIv4t.pgp Description: PGP signature
[gentoo-user] Deleted /boot
Well, when I do it, I do it right. Through a bad combination of typos and missing an enter I deleted everything in /boot. :-( This is what I did to (try to) recover: # cd /boot # mklost+found # emerge grub [...edited grub.conf...] [...recompiled kernel modules and installed...] I *thought* that's all I'd need, but upon boot up: Warning:unable to open an initial console Kernel panic- not syncing: no init found. Try passing init= option to kernel I compiled the kernel myself, not with genkernel. I'm stumped at the moment would be glad to try any ideas anyone might have. Many thanks! Mike -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Deleted /boot
Mike Markowski wrote: Well, when I do it, I do it right. Through a bad combination of typos and missing an enter I deleted everything in /boot. :-( This is what I did to (try to) recover: # cd /boot # mklost+found # emerge grub [...edited grub.conf...] [...recompiled kernel modules and installed...] I *thought* that's all I'd need, but upon boot up: Warning:unable to open an initial console Kernel panic- not syncing: no init found. Try passing init= option to kernel I compiled the kernel myself, not with genkernel. I'm stumped at the moment would be glad to try any ideas anyone might have. Many thanks! Mike This !may! help: [EMAIL PROTECTED] / # ls -al /boot/ total 4349 drwxr-xr-x 5 root root 272 Jun 19 20:23 . drwxr-xr-x 21 root root 520 Jun 13 00:06 .. -rw-r--r-- 1 root root 0 Dec 9 2005 .keep lrwxrwxrwx 1 root root 1 Dec 8 2005 boot - . -rw-r--r-- 1 root root 2225130 Dec 27 04:50 bzImage-gen-2.6.14-5 -rw-r--r-- 1 root root 2177580 May 16 08:08 bzImage-gen-2.6.16-2 -rw-r--r-- 1 root root 37565 May 16 08:13 config-gen-2.6.16-2 drwxr-xr-x 2 root root 672 May 16 08:12 grub [EMAIL PROTECTED] / # [EMAIL PROTECTED] / # ls -al /boot/grub/ total 461 drwxr-xr-x 2 root root672 May 16 08:12 . drwxr-xr-x 5 root root272 Jun 19 20:23 .. -rw-r--r-- 1 root root 45 Dec 10 2005 device.map -rw-r--r-- 1 root root 8052 Jan 18 00:59 e2fs_stage1_5 -rw-r--r-- 1 root root 7812 Jan 18 00:59 fat_stage1_5 -rw-r--r-- 1 root root 7060 Jan 18 00:59 ffs_stage1_5 -rw-r--r-- 1 root root393 May 16 08:12 grub.conf -rw-r--r-- 1 root root 1624 Jan 18 00:59 grub.conf.sample -rw-r--r-- 1 root root393 May 16 07:09 grub.conf~ -rw-r--r-- 1 root root 7124 Jan 18 00:59 iso9660_stage1_5 -rw-r--r-- 1 root root 8576 Jan 18 00:59 jfs_stage1_5 lrwxrwxrwx 1 root root 9 Nov 18 2005 menu.lst - grub.conf -rw-r--r-- 1 root root 7284 Jan 18 00:59 minix_stage1_5 -rw-r--r-- 1 root root 9556 Jan 18 00:59 reiserfs_stage1_5 -rw-r--r-- 1 root root 33856 Jan 18 00:59 splash.xpm.gz -rw-r--r-- 1 root root512 Jan 18 00:59 stage1 -rw-r--r-- 1 root root 105544 Jan 18 00:59 stage2 -rw-r--r-- 1 root root 105544 Jan 15 10:52 stage2.old -rw-r--r-- 1 root root 105544 Jan 18 00:59 stage2_eltorito -rw-r--r-- 1 root root 7368 Jan 18 00:59 ufs2_stage1_5 -rw-r--r-- 1 root root 6708 Jan 18 00:59 vstafs_stage1_5 -rw-r--r-- 1 root root 9404 Jan 18 00:59 xfs_stage1_5 [EMAIL PROTECTED] / # May want to check and see if something is missing there. Here is my grub.conf just in case. I'm using gentoo-sources-2.6.16-r9. timeout 10 default 0 Splashimage=(hd0,0)/boot/grub/splash.xpm.gz title Gentoo kernel (hd0,0)/bzImage-gen-2.6.16-2 root=/dev/hda6 ide0=ata66 ide1=ata66 vga=788 See anything out of place or missing? Hope that helps. Dale :-) :-) -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Deleted /boot
On 6/20/06, Mike Markowski [EMAIL PROTECTED] wrote: Well, when I do it, I do it right.Through a bad combination of typosand missing an enter I deleted everything in /boot.:-(This is what I did to (try to) recover:# cd /boot# mklost+found # emerge grub[...edited grub.conf...][...recompiled kernel modules and installed...]yep, but one thing you might had been missed is to setup grub, I've found it's much clear to do it manually, you may refer to the gentoo manual as well. although everything is there, you have to run setup to make grub installed in MBR or the first sector of your boot partition. I *thought* that's all I'd need, but upon boot up:Warning:unable to open an initial console Kernel panic- not syncing: no init found. Try passing init= option to kernelI compiled the kernel myself, not with genkernel.I'm stumped at themoment would be glad to try any ideas anyone might have. I'm not sure of this problem, since lots of stuff may cause this complain message.make sure the kernel and root partition are correct in your grub.conf. try it. Many thanks!Mike--gentoo-user@gentoo.org mailing listgood luck.daniel