rinze
September 15th, 2009, 08:13 PM
A couple of weeks ago, my old Debian server had a nasty hardware failure. An excellent time to build a new server and give Ubuntu server 9.04 a try. After a week of messing around I finally had configured everything just how I wanted it, and things were fine.
Until yesterday when I did an apt-get update/upgrade. During the upgrade I encountered some errors and after that I got errors when I tried to run commands like 'ls' (commands could not be found). Then, when I tried to reboot, the boot process hung with the following final message:
run-init: /sbin/init: No such file or directoryI started searching the web and ubuntuforums.org, ran into quite a few people having the same problem (on different versions of ubuntu), but I never found some solid clues of suggestions.
So, next thing I tried was booting from my install cd, using the rescue option. I happy to see my raid1 arrays were intact, and I could mount all my logical volumes and partitions and inspect their contents. Running e2fsck showed no errors, and /sbin/init was right where it was supposed to be on my root partition (which is on a logical volume).
All my config files like grub menu.list, mdadm.conf and fstab seem to be in order.
Like I said, I haven't come across any info that was helpful to me, so before I post some more details about my setup and boot process, I really hope that there are a few people out there who might have some ideas for me on how to progress. (And yes, in the time I've spent investigating this, I could have configured a fresh install, but that's not my style ;) )
When booting in recovering mode, I get:
Begin: Mounting root file system...
Begin: Running /scripts/local-top... Done
Begin: Waiting for root file system...
finding ether cards
creating raid1 on md0 ok
creating raid1 on md1 ok
** md0 and md1 unknown partition table **
Done
Begin: Running /sripts/local-premount..
No resume image, doing normal boot
Done.
EXT4-fs: INFO: recovery required on readonly filesystem
...
EXT4-fs: recovery comlete
EXT4-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom...Done.
Begin: Running /scripts/init-bottom...Done.
run-init: /sbin/init: No such file or directory
Kernel panic - not syncing: attempted to kill init!
Dumping frace buffer:
(ftrace buffer empty)
*DEAD*My drives:
2 SATA drives forming 2 Raid1 partitions:
/dev/md0: /dev/sde1 + /dev/sdf1
/dev/md1: /dev/sde5 + /dev/sdf5
md0 = Logical volumes for root, swap and tmp
md1 = Boot partition
All accessible and error free using the install cd's rescue modeGrub menu.lst
title Ubuntu 9.0 etc...
root (hd0,4)
kernel /vmlinuz-2.6.28-11-server root=/dev/mapper/<name of root volume> ro quiet splash
initr /initrd.img-2.6.28-11-servervmlinuz and initrd.img are present.
Thanks in advance for any help!
Until yesterday when I did an apt-get update/upgrade. During the upgrade I encountered some errors and after that I got errors when I tried to run commands like 'ls' (commands could not be found). Then, when I tried to reboot, the boot process hung with the following final message:
run-init: /sbin/init: No such file or directoryI started searching the web and ubuntuforums.org, ran into quite a few people having the same problem (on different versions of ubuntu), but I never found some solid clues of suggestions.
So, next thing I tried was booting from my install cd, using the rescue option. I happy to see my raid1 arrays were intact, and I could mount all my logical volumes and partitions and inspect their contents. Running e2fsck showed no errors, and /sbin/init was right where it was supposed to be on my root partition (which is on a logical volume).
All my config files like grub menu.list, mdadm.conf and fstab seem to be in order.
Like I said, I haven't come across any info that was helpful to me, so before I post some more details about my setup and boot process, I really hope that there are a few people out there who might have some ideas for me on how to progress. (And yes, in the time I've spent investigating this, I could have configured a fresh install, but that's not my style ;) )
When booting in recovering mode, I get:
Begin: Mounting root file system...
Begin: Running /scripts/local-top... Done
Begin: Waiting for root file system...
finding ether cards
creating raid1 on md0 ok
creating raid1 on md1 ok
** md0 and md1 unknown partition table **
Done
Begin: Running /sripts/local-premount..
No resume image, doing normal boot
Done.
EXT4-fs: INFO: recovery required on readonly filesystem
...
EXT4-fs: recovery comlete
EXT4-fs: mounted filesystem with ordered data mode.
Begin: Running /scripts/local-bottom...Done.
Begin: Running /scripts/init-bottom...Done.
run-init: /sbin/init: No such file or directory
Kernel panic - not syncing: attempted to kill init!
Dumping frace buffer:
(ftrace buffer empty)
*DEAD*My drives:
2 SATA drives forming 2 Raid1 partitions:
/dev/md0: /dev/sde1 + /dev/sdf1
/dev/md1: /dev/sde5 + /dev/sdf5
md0 = Logical volumes for root, swap and tmp
md1 = Boot partition
All accessible and error free using the install cd's rescue modeGrub menu.lst
title Ubuntu 9.0 etc...
root (hd0,4)
kernel /vmlinuz-2.6.28-11-server root=/dev/mapper/<name of root volume> ro quiet splash
initr /initrd.img-2.6.28-11-servervmlinuz and initrd.img are present.
Thanks in advance for any help!