LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Dang! I used Partition Magic to convert hda5 from Primary to Logical, nothing boots.. (https://www.linuxquestions.org/questions/linux-general-1/dang-i-used-partition-magic-to-convert-hda5-from-primary-to-logical-nothing-boots-597511/)

brjoon1021 11-06-2007 08:37 AM

Dang! I used Partition Magic to convert hda5 from Primary to Logical, nothing boots..
 
In a tired moment, I was booted into windows and I used Partition Magic to convert hda5, a logical partition to a Primary partition. If I recall correctly it WAS a logical partition within the extended partion. Bad move. Now GRUB does not know what to think and nothing will boot. GRUB error 23 on boot. I am using a Live CD now and would love to fix this problem with this PCLinuxOS 2007 LiveCD. I have the Ultimate boot CD. R.I.P. and another recovery disk or two lying around, just FYI.

I just want the easiest way out of this situation. Windows is on the first partition of the disk. There are Linuxes on the next three partitions. These partitons WERE numbered hda5, hda6, hda7 before I goofed up. Now they are hda3, hda4 and hda5. There are unoccupied ext3 partitions after these populated ones. With this LiveCD that I am using, I can see that the partitions are all still there, they just are numbered differently now.

Any ideas?

Thanks,
B

David the H. 11-06-2007 09:22 AM

The linux partition numbering system always counts the four primary (or extended) partitions first, so they will always be hda1, hda2, hda3, and hda4. The logical partitions always start from hda5, even when there are less than four primary partitions. So when you changed the type of partition, naturally the numbering also changed.

From your live cd you should be able to mount your original linux partition and then edit its /etc/fstab file to readjust the mount points to their new locations. You can do the same for grub's menu.1st, but you might also have to chroot into the system and reinstall the boot records as well, depending on how you have it configured. I don't really know about configuring grub on multiboot systems though.

brjoon1021 11-06-2007 07:41 PM

issue solved.

pnellesen 11-06-2007 09:03 PM

Quote:

Originally Posted by brjoon1021 (Post 2950497)
issue solved.

Just curious - how was it solved?


All times are GMT -5. The time now is 05:38 AM.