I recently updated my kernel to 2.6.26-2-686 on debian sid (yes now I realized the dangers of sid lol, but I wanted some cutting edge packages that were not available unless I went to sid, haven't had a problem until now though) and now whenever I attempt to boot (in normal or "recovery" mode) I get the following error:
Code:
/init: .: line 54: can't open '/scripts/functions' Kernel panic not synching Attempted to kill init!
I clonezilla'd the entire drive, and moved the hard disk to my main computer (same boot problem) and then got a debian cd, and went into recovery mode.
I tried to do
Code:
sudo apt-get update
and
Code:
sudo apt-get upgrade
to no effect. I was hoping there was maybe and upgrade or something that could fix it.
I then tried the following things that I found on google:
Code:
update-initramfs -u -t #Did not appear to help
apt-get remove initramfs-tools #lots of errors, shown below
apt-get install initramfs-tools #lots of errors, shown below
When doing that I got the following errors:
Code:
Setting locale failed
Language=CA
LC_ALL = (unset)
LANG="C.UTF-8"
perl:warning:Falling back to standard locale ("C")
cant set locale
locale:cannot set LC_CTYLE No such file or directory
locale:cannot set LC_MESSAGES No such file or directory
locale:cannot set LC_ALL No such file or directory
Then, when rebooting to the drive grub immediately went into recovery mode, and when I tried to boot the hard disk it said
I have a lot of custom programs and settings on this machine. In a last ditch effort, I attempted to reinstall (with just defining the / and swap partitions, not formatting the drive) and it displayed a chroot error. (the machine I have the hard disk in now is x64, and my old machine and the debian OS is 32bit, could that be the problem.. if so I can move it to another machine and try that again.)
If I do have to wipe the entire drive and start over, if I wanted to recreate the machine, what files/folders do I need to copy over to make it work the way it did? I'm afraid I'm mostly a linux noob, dont know where everything is stored. I was planning on copying "/etc" "/var" and "home" directories, but I don't know if that would restore Apache2 correctly, or Mediawiki, or Subsonic, etc, etc.
Any help on this would be greatly appreciated!