ubuntuusers.de

[gelöst] Ubuntu bootet nicht / Kernel Panic

Status: Gelöst | Ubuntu-Version: Nicht spezifiziert
Antworten |

tehdartherer

Avatar von tehdartherer

Anmeldungsdatum:
17. August 2005

Beiträge: 161

Hi.
Ich habe Ubuntu und Windows 2000 auf der gleichen Festplatte auf zwei verschiedenen Partitionen. Als ich auf meine Linux Partition nicht mehr genug Platz frei hatte, dachte ich mir das ich unter Windows mit Partion Magic die Windows Partition verkleinern könnte und dann anschliessend die Linux Partition vergrössern könnte. Die Windows Partition (NTFS) liess sich ohne Probleme verkleinern. Die Linux Partition liess sich auch ohne Problem vergrössern. Doch bei einem Reboot meldete Grub "Error 17".
Mit Hilfe von Knoppix habe ich dann Grup neuinstalliert.
Nun bin ich in Windows gebootet, da ich beim booten von Ubuntu den unten stehenden Fehler bekam. Als ich in Partion Magic startete musste ich mit erstaunen feststellen, dass keine swap Partition mehr vorhanden war. Mit Hilfe von Partion Magic habe ich dann eine neue im leeren Speicher angelegt. Beim nächsten Boot musste ich Grub wieder reparieren. Wenn ich nun Ubuntu boote bekomme ich weiterhin diesen Fehler:

Starting Ubuntu...
VFS: Can't find ext3 filesystem on dev hda6.
FAT: bogus number of reserved sectors
cramfs: wrong magic
pivot_root: No such file or directory
/sbin/init: 428: cannot open dev/console: No such file
Kernel panic - not syncing: Attempted to kill init!


Kann mir irgend jemand helfen ? Ich möchte Ubuntu nicht neu aufsetzen ☹
Kann man wenigsten die ganze Konfiguration usw sichern und wieder aufspielen ? Die Daten sind ja noch in Ordnung wie es aussieht. Ich bin sehr dankbar für jede Hilfe! ☺

droebbel Team-Icon

Anmeldungsdatum:
19. Oktober 2004

Beiträge: 5388

Es sieht aus, als sei das ext3-Dateisystem auf der Linux-Partition beschädigt. Möglicherweise hat PartitionMagic da was zerschossen. Was könnte es mit der FAT-Meldung auf sich haben? Hast Du irgendeine FAT-Partition, die bei Deiner Aktion involviert war?

Schaun wir mal, wie die Festplatten aussehen.

Boote mit einer Live-CD und lass Dir die Partitionierung anzeigen:

$ sudo fdisk -l


Poste die Ausgabe, gib bitte an, was die Verwendung jeder Partition ist.
Prüfe sodann alle in Frage kommenden Linuxpartitionen mit fsck, z.b.

$ sudo fsck.ext3 /dev/hda6

tehdartherer

(Themenstarter)
Avatar von tehdartherer

Anmeldungsdatum:
17. August 2005

Beiträge: 161

knoppix@ttyp0[knoppix]$ sudo fdisk -l
omitting empty partition (5)

Festplatte /dev/hda: 240 Köpfe, 63 Sektoren, 1325 Zylinder
Einheiten: Zylinder mit 15120 * 512 Bytes

    Gerät boot.  Anfang      Ende    Blöcke   Id  Dateisystemtyp
/dev/hda1   *         1       657   4966888+   7  HPFS/NTFS
/dev/hda2           658      1325   5050080    f  Win95 Erw. (LBA)
/dev/hda5           658      1188   4014297   83  Linux
/dev/hda6          1189      1325   1035688+  82  Linux Swap

Festplatte /dev/hdb: 255 Köpfe, 63 Sektoren, 9729 Zylinder
Einheiten: Zylinder mit 16065 * 512 Bytes

    Gerät boot.  Anfang      Ende    Blöcke   Id  Dateisystemtyp
/dev/hdb1   *         1      5099  40957686    e  Win95 FAT16 (LBA)
/dev/hdb2          5100      9729  37190475    f  Win95 Erw. (LBA)
/dev/hdb5          5100      9729  37190443+   6  FAT16


hda1 = Windows 2000
hda2 = keine Ahnung ? scheint irgend was mit der Linux Partition und der swap zusammen zu sein
hda5 = Ubuntu
hda6 = Swap

hdb1 = Spiele (FAT32)
hdb2 = keine Ahnung ? s.o.
hdb5 = Downloads (FAT32)

Wenn ich fsck.ext3 /dev/hda5 sagt er mir "clear [...]"
Die Swap Partition lässt sich nicht mit fsck /dev/hda6 prüfen. ❓

droebbel Team-Icon

Anmeldungsdatum:
19. Oktober 2004

Beiträge: 5388

Hast Du umpartitioniert? Deine /boot/grub/menu.lst passt offenbar nicht zum System.

VFS: Can't find ext3 filesystem on dev hda6.

Das ist der Swap. Klar ist da drauf kein ext3. Das ist auf hda5.

Bitte poste die Datei, ich sage Dir dann die nötigen Korrekturen.

tehdartherer

(Themenstarter)
Avatar von tehdartherer

Anmeldungsdatum:
17. August 2005

Beiträge: 161

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.           
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default optons below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda6 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,5)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## nonaltoption boot targets option
## This option controls options to pass to only the
## primary kernel menu item.
## You can have ONLY one nonaltoptions line
# nonaltoptions=quiet splash

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## ## End Default Options ##

title		Ubuntu, kernel 2.6.10-5-386 

root		(hd0,5)
kernel		/boot/vmlinuz-2.6.10-5-386 root=/dev/hda6 ro quiet splash
initrd		/boot/initrd.img-2.6.10-5-386
savedefault
boot

title		Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root		(hd0,5)
kernel		/boot/vmlinuz-2.6.10-5-386 root=/dev/hda6 ro single
initrd		/boot/initrd.img-2.6.10-5-386
savedefault
boot

title		Ubuntu, kernel memtest86+ 
root		(hd0,5)
kernel		/boot/memtest86+.bin  
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title		Microsoft Windows 2000 Professional
root		(hd0,0)
savedefault
makeactive
chainloader	+1


So nach einem Kampf mit meinem Windows 2003 Server um die Internet Connection konnte ich sie endlich posten 😉
btw würde gern den Server auf Linux umstellen, aber NAT und VPN unter Linux einzurichten trau ich mir noch nicht ganz zu 😉

edit:
Was muss ich nun ändern? Nur die Einträge wo hda6 steht zu hda5 ändern?
Oder auch die root (hd0,[...]) ? 😮

droebbel Team-Icon

Anmeldungsdatum:
19. Oktober 2004

Beiträge: 5388

Bitte:

# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.           
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default optons below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specifiv kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
# kopt=root=/dev/hda5 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,4)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## nonaltoption boot targets option
## This option controls options to pass to only the
## primary kernel menu item.
## You can have ONLY one nonaltoptions line
# nonaltoptions=quiet splash

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## ## End Default Options ##

title		Ubuntu, kernel 2.6.10-5-386 

root		(hd0,4)
kernel		/boot/vmlinuz-2.6.10-5-386 root=/dev/hda5 ro quiet splash
initrd		/boot/initrd.img-2.6.10-5-386
savedefault
boot

title		Ubuntu, kernel 2.6.10-5-386 (recovery mode)
root		(hd0,4)
kernel		/boot/vmlinuz-2.6.10-5-386 root=/dev/hda5 ro single
initrd		/boot/initrd.img-2.6.10-5-386
savedefault
boot

title		Ubuntu, kernel memtest86+ 
root		(hd0,4)
kernel		/boot/memtest86+.bin  
savedefault
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title		Microsoft Windows 2000 Professional
root		(hd0,0)
savedefault
makeactive
chainloader	+1


Das ist etwas mehr als nötig, erspart Dir aber nach dem Reboot das sonst nötige update-grub.

P.S.: Nur keine Hektik. War beschäftigt. Sind 3 1/2 Stunden Reaktionszeit zu lang?

tehdartherer

(Themenstarter)
Avatar von tehdartherer

Anmeldungsdatum:
17. August 2005

Beiträge: 161

Herzlichsten Danke von mir ☺
Endlich wieder angenehme Ubuntu Oberfläche 😀

Antworten |