View previous topic :: View next topic |
Author |
Message |
Aktschen n00b
Joined: 09 Dec 2005 Posts: 11
|
Posted: Fri Dec 09, 2005 4:34 pm Post subject: Can't boot after converting primary partitions into extended |
|
|
Hi!
I just recently set up Gentoo on my laptop. After everything ran quite fine, I realized how stupid I was creating another 3 primary partitions to the existing one (and leaving space at the end). Therefore i searched for a tool which can convert primary partitions into extended and finally found it in partition magic. After converting the swap and the root partition into one extended, I was happy but I couldn't boot any more.
The grub boot-partition, which I left untouched, works, and so the kernel boots but hangs after some while with a kernel panic.
Code: | ... (everything okay till here (~2 pages))
attempt to access beyond end of device
hda4: rw=16, want=8, limit=2
Kernel panic - not syncing: I/O error reading memory image
|
So I went into the grub console after a reboot.
Code: | grub> kernel (hd0, [tab] | shows following
Code: | Partition num: 0, Filesystem type unknown, partition type 0x7
Partition num: 1, Filesystem type is ext2fs, partition type 0x83
Partition num: 2, Filesystem type is fat, partition type 0xc
Partition num: 4, Filesystem type unknown, partition type 0x82
Partition num: 5, Filesystem type unknown, partition type 0x83 |
as you see there is no hd(0,3) which should be equal to hda4 (hda4 was the root partition before)
0=windoze/ntfs, 1=grub, 2=exchange/fat32, 4=swap, 5=root/reiserfs
so I tried
Code: | kernel /bzImage root=/dev/hda6 |
but exactly the same kernel panic appears again (with hda4..).
Do you have any ideas how i can resolve this?
Thanks |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Fri Dec 09, 2005 6:12 pm Post subject: |
|
|
Did you try with root=/dev/hda5 ? _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
Aktschen n00b
Joined: 09 Dec 2005 Posts: 11
|
Posted: Sat Dec 10, 2005 10:58 am Post subject: |
|
|
yep, doesn't help (same error) |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sat Dec 10, 2005 11:19 am Post subject: |
|
|
Another stupid question, did you change /etc/fstab? _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
Aktschen n00b
Joined: 09 Dec 2005 Posts: 11
|
Posted: Sat Dec 10, 2005 3:01 pm Post subject: |
|
|
no stupid question(s): i didn't change fstab, thanks for the hint.
the problem is: i can't mount /dev/hda6 in a live-cd enviroment (without type-parameter mount doesn't recognise the type, and with -t reiserfs another error occurs)
the reason for this is maybe that the /dev/hda4 (the extended partition) is marked as 'W95 Ext'd (LBA)' in fdisk. but i have no idea how i can change this |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sat Dec 10, 2005 3:22 pm Post subject: |
|
|
Aktschen wrote: | the reason for this is maybe that the /dev/hda4 (the extended partition) is marked as 'W95 Ext'd (LBA)' in fdisk. but i have no idea how i can change this |
I don't think so
Code: | $ sudo fdisk -l /dev/hda
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2611 20972826 7 HPFS/NTFS
/dev/hda2 2612 5222 20972857+ 7 HPFS/NTFS
/dev/hda3 * 5223 5231 72292+ 83 Linux
/dev/hda4 5232 9729 36130185 f W95 Ext'd (LBA)
/dev/hda5 5232 6975 14008648+ 83 Linux
/dev/hda6 6976 7099 995998+ 82 Linux swap / Solaris
/dev/hda7 7100 9729 21125443+ 83 Linux |
root is /dev/hda5. It's true that I started with extended partition, but that shouldn't make difference when mounting from the installation CD. And the -t option is required from CD because you don't have the type in /etc/fstab. Which error do you get exactly when trying to mount from CD with the -t option? _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
Aktschen n00b
Joined: 09 Dec 2005 Posts: 11
|
Posted: Sat Dec 10, 2005 3:54 pm Post subject: |
|
|
ah ok, thanks
the error:
Code: | >mount -t reiserfs /dev/hda6 /mnt/bla
Reiserfs: hda6: warning: sh2021: reiserfs_fill_super: can not find reiserfs on hda6
|
... |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sat Dec 10, 2005 4:38 pm Post subject: |
|
|
Aktschen wrote: | Code: | >mount -t reiserfs /dev/hda6 /mnt/bla
Reiserfs: hda6: warning: sh2021: reiserfs_fill_super: can not find reiserfs on hda6
|
|
These are not good news. Do you have a backup? Just to be sure, may you post the partition table from fdisk? _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
Aktschen n00b
Joined: 09 Dec 2005 Posts: 11
|
Posted: Sat Dec 10, 2005 5:23 pm Post subject: |
|
|
nope, no backup. fdisk shows nothing unusual, if i find time i'll post the output.
but since i have no really important data on the partition, i'll start from the beginning and reinstall gentoo. i guess partition magic messed something up.
nevertheless thanks for your help dgaffuri |
|
Back to top |
|
|
dgaffuri Advocate
Joined: 05 Jun 2005 Posts: 2078 Location: Italy
|
Posted: Sat Dec 10, 2005 6:20 pm Post subject: |
|
|
Aktschen wrote: | nope, no backup. fdisk shows nothing unusual, if i find time i'll post the output.
but since i have no really important data on the partition, i'll start from the beginning and reinstall gentoo. i guess partition magic messed something up.
nevertheless thanks for your help dgaffuri |
You're welcome. Sorry that we couldn't solve, probably reinstalling is the better choice. Anyway you're not alone, partition magic is known for this kind of things. _________________ Adopt an unanswered post
If you feel that your problem has been solved please edit the top post and add [solved] to the subject |
|
Back to top |
|
|
|