* [gentoo-user] Deleted /boot @ 2006-06-20 1:16 Mike Markowski 2006-06-20 1:27 ` Teresa and Dale ` (2 more replies) 0 siblings, 3 replies; 10+ messages in thread From: Mike Markowski @ 2006-06-20 1:16 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Deleted /boot 2006-06-20 1:16 [gentoo-user] Deleted /boot Mike Markowski @ 2006-06-20 1:27 ` Teresa and Dale 2006-06-20 1:54 ` fei huang 2006-06-21 1:48 ` Mike Markowski 2 siblings, 0 replies; 10+ messages in thread From: Teresa and Dale @ 2006-06-20 1:27 UTC (permalink / raw To: gentoo-user 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: > root@smoker / # 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 > root@smoker / # > root@smoker / # ls -al /boot/grub/ > total 461 > drwxr-xr-x 2 root root 672 May 16 08:12 . > drwxr-xr-x 5 root root 272 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 root 393 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 root 393 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 root 512 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 > root@smoker / # 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Deleted /boot 2006-06-20 1:16 [gentoo-user] Deleted /boot Mike Markowski 2006-06-20 1:27 ` Teresa and Dale @ 2006-06-20 1:54 ` fei huang 2006-06-21 1:48 ` Mike Markowski 2 siblings, 0 replies; 10+ messages in thread From: fei huang @ 2006-06-20 1:54 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1217 bytes --] On 6/20/06, Mike Markowski <mm@udel.edu> 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...] 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 > 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. 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 list good luck. daniel [-- Attachment #2: Type: text/html, Size: 2034 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Deleted /boot 2006-06-20 1:16 [gentoo-user] Deleted /boot Mike Markowski 2006-06-20 1:27 ` Teresa and Dale 2006-06-20 1:54 ` fei huang @ 2006-06-21 1:48 ` Mike Markowski 2006-06-21 4:12 ` Hani Duwaik ` (2 more replies) 2 siblings, 3 replies; 10+ messages in thread From: Mike Markowski @ 2006-06-21 1:48 UTC (permalink / raw To: gentoo-user 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Deleted /boot 2006-06-21 1:48 ` Mike Markowski @ 2006-06-21 4:12 ` Hani Duwaik 2006-06-21 4:46 ` Norberto Bensa 2006-06-21 13:43 ` fei huang 2 siblings, 0 replies; 10+ messages in thread From: Hani Duwaik @ 2006-06-21 4:12 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1367 bytes --] On 6/20/06, Mike Markowski <mm@udel.edu> wrote: > > 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. > > What's the 'ls -al' of your /boot partition look like? Does it have the following link? lrwxrwxrwx 1 root root 1 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." [-- Attachment #2: Type: text/html, Size: 1823 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Deleted /boot 2006-06-21 1:48 ` Mike Markowski 2006-06-21 4:12 ` Hani Duwaik @ 2006-06-21 4:46 ` Norberto Bensa 2006-06-22 0:02 ` Mike Markowski 2006-06-21 13:43 ` fei huang 2 siblings, 1 reply; 10+ messages in thread From: Norberto Bensa @ 2006-06-21 4:46 UTC (permalink / raw To: gentoo-user; +Cc: Mike Markowski [-- Attachment #1: Type: text/plain, Size: 202 bytes --] 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 [-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Deleted /boot 2006-06-21 4:46 ` Norberto Bensa @ 2006-06-22 0:02 ` Mike Markowski 2006-06-22 1:56 ` Richard Fish 0 siblings, 1 reply; 10+ messages in thread From: Mike Markowski @ 2006-06-22 0:02 UTC (permalink / raw To: gentoo-user; +Cc: nbensa 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 250 9729 76148100 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 * 1 1984 1015792 6 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 root 1024 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Deleted /boot 2006-06-22 0:02 ` Mike Markowski @ 2006-06-22 1:56 ` Richard Fish 2006-06-22 2:43 ` Mike Markowski 0 siblings, 1 reply; 10+ messages in thread From: Richard Fish @ 2006-06-22 1:56 UTC (permalink / raw To: gentoo-user On 6/21/06, Mike Markowski <mm@udel.edu> 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Deleted /boot 2006-06-22 1:56 ` Richard Fish @ 2006-06-22 2:43 ` Mike Markowski 0 siblings, 0 replies; 10+ messages in thread From: Mike Markowski @ 2006-06-22 2:43 UTC (permalink / raw To: gentoo-user Richard Fish wrote: > On 6/21/06, Mike Markowski <mm@udel.edu> 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 ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Deleted /boot 2006-06-21 1:48 ` Mike Markowski 2006-06-21 4:12 ` Hani Duwaik 2006-06-21 4:46 ` Norberto Bensa @ 2006-06-21 13:43 ` fei huang 2 siblings, 0 replies; 10+ messages in thread From: fei huang @ 2006-06-21 13:43 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 2539 bytes --] On 6/21/06, Mike Markowski <mm@udel.edu> wrote: > > 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. Seems nothing unusual. 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?" 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 BOX root (hd0,6) # the /boot partition kernel /kernel-2.6.16-gentoo-r7 root=/dev/sda9 # the / partition well, 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 luck daniel [-- Attachment #2: Type: text/html, Size: 3963 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-06-22 2:48 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2006-06-20 1:16 [gentoo-user] Deleted /boot Mike Markowski 2006-06-20 1:27 ` Teresa and Dale 2006-06-20 1:54 ` fei huang 2006-06-21 1:48 ` Mike Markowski 2006-06-21 4:12 ` Hani Duwaik 2006-06-21 4:46 ` Norberto Bensa 2006-06-22 0:02 ` Mike Markowski 2006-06-22 1:56 ` Richard Fish 2006-06-22 2:43 ` Mike Markowski 2006-06-21 13:43 ` fei huang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox