C
Che'tin'oich
Jungspund
Hallo, ich hab gerade einen dummen fehler gemacht, durch ein fehlerhaftes Skript wurde (auch noch als root) rm -f in / ausgeführt. Nun kann man sich nicht mehr über SSH am Server anmelden und nach einen Neustart meldet dieser:
nach Grub und ein paar Textzeilen:
Eigentlich wurden doch diesen Befehl drei Symlinks gelöscht:
cdrom, initrd.img und vmlinuz
Diese habe ich nun neu erstellt, jedoch bleibt der Fehler - was tun?
Ich habe über ein Live System die Festplatte gemountet und über
und
die Links neuerstellt. Die beiden Datein sind auch in /boot vorhanden
In der menu.lst von Grub steht folgendes:
Nachtrag:
noch die fstab:
nach Grub und ein paar Textzeilen:
run-init: /sbin/init: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
Eigentlich wurden doch diesen Befehl drei Symlinks gelöscht:
cdrom, initrd.img und vmlinuz
Diese habe ich nun neu erstellt, jedoch bleibt der Fehler - was tun?
Ich habe über ein Live System die Festplatte gemountet und über
Code:
ln -s initrd.img /boot/initrd.img-2.6.18-5-amd64
Code:
ln -s vmlinuz /boot/vmlinuz-2.6.18-5-amd64
Code:
ls -l
drwxr-xr-x 2 root root 4096 Oct 24 2007 bin/
drwxr-xr-x 3 root root 4096 Sep 21 2007 boot/
lrwxrwxrwx 1 root root 11 Jun 24 15:01 cdrom -> media/cdrom/
drwxr-xr-x 11 root root 45056 Sep 20 2007 dev/
drwxr-xr-x 3 root root 4096 Sep 20 2007 emul/
drwxr-xr-x 60 root root 4096 Jun 23 20:20 etc/
drwxr-xr-x 5 root root 4096 Jun 24 13:50 home/
drwxr-xr-x 2 root root 4096 Sep 20 2007 initrd/
lrwxrwxrwx 1 root root 30 Jun 24 15:00 initrd.img -> boot/initrd.img-2.6.18-5-amd64
drwxr-xr-x 11 root root 4096 Sep 21 2007 lib/
drwx------ 2 root root 16384 Sep 20 2007 lost+found/
drwxr-xr-x 3 root root 4096 Sep 20 2007 media/
drwxr-xr-x 8 root root 4096 Jan 17 09:39 mnt/
drwxr-xr-x 2 root root 4096 Sep 20 2007 opt/
drwxr-xr-x 2 root root 4096 Oct 28 2006 proc/
drwxr-xr-x 8 root root 4096 Jun 24 13:50 root/
drwxr-xr-x 2 root root 4096 Sep 21 2007 sbin/
drwxr-xr-x 2 root root 4096 Mar 7 2007 selinux/
drwxr-xr-x 2 root root 4096 Sep 20 2007 srv/
drwxr-xr-x 2 root root 4096 Jan 30 2007 sys/
drwxrwxrwt 5 root root 4096 Jun 24 13:48 tmp/
drwxr-xr-x 11 root root 4096 Oct 16 2007 usr/
drwxr-xr-x 13 root root 4096 Sep 20 2007 var/
lrwxrwxrwx 1 root root 27 Jun 24 15:01 vmlinuz -> boot/vmlinuz-2.6.18-5-amd64
In der menu.lst von Grub steht folgendes:
Code:
title Debian GNU/Linux, kernel 2.6.18-5-amd64
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-5-amd64 root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.18-5-amd64
savedefault
title Debian GNU/Linux, kernel 2.6.18-5-amd64 (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-5-amd64 root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.18-5-amd64
savedefault
### END DEBIAN AUTOMAGIC KERNELS LIST
Nachtrag:
noch die fstab:
Code:
aufs / aufs defaults 0 0 # AutoUpdate
devpts /dev/pts devpts gid=5,mode=620 0 0 # AutoUpdate
proc /proc proc defaults 0 0 # AutoUpdate
sysfs /sys sysfs defaults 0 0 # AutoUpdate
/dev/hda1 /mnt/hda1 ext3 auto,noatime,users,suid,dev,exec 0 0 # AutoUpdate
/dev/hda2 /mnt/hda2 swap auto,defaults 0 0 # AutoUpdate
/dev/hda3 /mnt/hda3 ext3 auto,noatime,users,suid,dev,exec 0 0 # AutoUpdate
/dev/hdb1 /mnt/hdb1 ext3 auto,noatime,users,suid,dev,exec 0 0 # AutoUpdate
/dev/hdc1 /mnt/hdc1 ext3 auto,noatime,users,suid,dev,exec 0 0 # AutoUpdate
/dev/sda1 /mnt/sda1 ext3 auto,noatime,users,suid,dev,exec 0 0 # AutoUpdate
/dev/md0 /mnt/md0 ext3 auto,noatime,users,suid,dev,exec 0 0 # AutoUpdate
/dev/sdc1 /mnt/sdc1 vfat auto,noatime,users,suid,dev,exec,quiet,umask=0,check=s,shortname=mixed 0 0 # AutoUpdate
/dev/fd0 /mnt/floppy vfat noauto,noatime,users,suid,dev,exec 0 0 # AutoUpdate
Zuletzt bearbeitet: