Kernel Panic after moving partitions
I just made the following changes to my system:
Shrank Root FS deleted swap made extended partition created new swap in extended partition copied root to extended (so at the moment, I have 2 identical root partitions, though one is larger) /boot is ext2 and root is reiser. I changed /boot/grub/menu.lst... I updated the "root=" part to reflect the new partitions... I have an entry for the old root partition and one for the new root partition. Problem is, when I try to boot either of them, I get a kernel panic. here's the error: ... savedefault boot Uncompressing Linux... Ok, booting the kernel. [17179575.888000] Kernel panic - not syncing: I/0 error reading memory image [17179575.888000] ...and that's all I get . I went into /etc/fstab and updated the swap and root locations there too. I don't know what else to do. It seems like it should work, but it doesn't. Does anyone have any clue what's going on? Thank you so much for your help. EDIT: I disabled quiet, and here's the relevant part: Begin: Running /scripts/local-premount ... [17179575.548000] Attempting manual resume [17179575.548000] attempt to access beyond end of device [17179575.548000] hda3: rw=16, want=8, limit=2 [17179575.548000] Kernel panic - not syncing: I/O error reading memory image hda3 used to be my swap partition, but now it's an extended partition. What the heck.... |
have you set the filesystem right for swap, it should not be ext3
|
You have to edit /etc/fstab to coincide with your new partition layout. In particular, check the entry in fstab for your swap and root partitions. A livecd like knoppix or kannotix comes in handy for these types of problems.
|
Yes, the fs-type for swap is "linux-swap". I have the gparted liveCD open in front of me on my laptop (the broken computer )
I've got: /dev/hda5 none swap sw 0 0 /dev/hda4 / reiserfs defaults,noatime,data=writeback 0 1 (ommitting irrelevant info of course) probably important to not that hda3 is not mentioned in either fstab or menu.lst, although logical partitions contained in it are (new root (hda6) and swap (hda5)) ...both of which are the correct locations. (in my other (new) copy, switch out hda4 for hda6 and it's identical) So... that seems like it should work, no? Here's my grub menu.lst item: title Ubuntu 2.6.15-26-k7 root (hd0,1) kernel /vmlinuz-2.6.15-26-k7 root=/dev/hda4 ro elevator=cfq initrd /initrd.img-2.6.15-26-k7 savedefault boot ...and then the same thing again except with hda6 I plan to delete hda4, but not until I can get at least *one* of these booting. |
Here's fdisk's output:
Code:
Disk /dev/hda: 100.0GB, 100030242816 bytes |
Quote:
root (hd0,3) |
hm, ok. I'll try that. But I think the root(hdn,n) means the boot partition. I'll try though.
Nope, it just says file not found. My boot partition is hda2, or (hd0,1). This worked before, too, so it should now |
ok, I found a thread in German that may help: http://translate.google.com/translat...-US:unofficial
relevant part: Quote:
|
Okay, forget everything I've said. I dug up my initrd and unzipped it.
I ran "strings | grep hda3" and it turned up: "RESUME=/dev/hda3". ...so... how do I change this? I guess I could just mount it, change that to hda5, then rezip and replace, right? I'll give it a shot , it's not like I can screw it up more. |
I GOT IT!
I gunzipped all my initrds, opened them in a hex editor, replaced hda3 with hda5, and recompressed. It boots! Thanks for your help guys, I wouldn't have figured it out on my own. Burke |
All times are GMT -5. The time now is 07:22 PM. |