Search Amazon.com:
Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
  • Post
  • Reply
flink
Aug 30, 2003
superduperman

My Ubuntu 10.04 x64 server was acting strange with ssh initially. It would close the putty window immediately once I authenticated and other ssh-related services (nx, sftp) would give errors, preventing login. I couldn't figure out the problem so I restarted the machine, but now I get this:
code:
run-init: /sbin/init: No such file or directory
[    2.807620] Kernel panic - not syncing: Attempted to kill init
I've booted into a livecd and mounted the filesystem and the file is there, and my wild guess is something grub related, but I don't know anything further than that (such as where to check/edit). What should I do next?

Adbot
ADBOT LOVES YOU

flink
Aug 30, 2003
superduperman

Bob Morales posted:

Have you done 'fsck' on each filesystem? (try /sda1 or whatever your /boot is first)

I have used fsck and e2fsck to check the boot and root partitions and they came out clean. I've also used smartctl and the drive does pass SMART.

Zom Aur posted:

I'm guessing init is missing from the initrd. It should be a symlink to upstart I think.

I don't quite understand what this means. I looked at a screenshot which had a symlink from initrd.img to the actual image file, which I did not have. I created it but I still get the same error.

flink
Aug 30, 2003
superduperman

Bob Morales posted:

Have you recently upgraded kernels? (due to system updates)

I don't think so, though there's a chance that I updated and then forgot to restart the server. Should I try to rollback anyway?

flink
Aug 30, 2003
superduperman

Longinus00 posted:

Did you not have the link or the image file?


For clarities sake, remember to chroot into the partition on your hard drive before running update-initramfs.

I did not have the link. And I tried to chroot earlier but kept getting a 'bin/bash' not found error, despite it existing on both the livecd and /mnt.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply