Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't boot after converting primary partitions into extended
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Aktschen
n00b
n00b


Joined: 09 Dec 2005
Posts: 11

PostPosted: Fri Dec 09, 2005 4:34 pm    Post subject: Can't boot after converting primary partitions into extended Reply with quote

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
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Fri Dec 09, 2005 6:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Aktschen
n00b
n00b


Joined: 09 Dec 2005
Posts: 11

PostPosted: Sat Dec 10, 2005 10:58 am    Post subject: Reply with quote

yep, doesn't help (same error)
Back to top
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sat Dec 10, 2005 11:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Aktschen
n00b
n00b


Joined: 09 Dec 2005
Posts: 11

PostPosted: Sat Dec 10, 2005 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sat Dec 10, 2005 3:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Aktschen
n00b
n00b


Joined: 09 Dec 2005
Posts: 11

PostPosted: Sat Dec 10, 2005 3:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sat Dec 10, 2005 4:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Aktschen
n00b
n00b


Joined: 09 Dec 2005
Posts: 11

PostPosted: Sat Dec 10, 2005 5:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
dgaffuri
Advocate
Advocate


Joined: 05 Jun 2005
Posts: 2078
Location: Italy

PostPosted: Sat Dec 10, 2005 6:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum