Moving from extended partition to primary partition
I am currently running Mandrake 9.2.
I have a dual boot configuration in which XP is stored on a primary partition
and Linux is stored in an Extended Partition. I use the XP bootloader to dual
boot into either environment.
Below is a copy of the current partition table:
Device Boot Start End Blocks Id System
/dev/hda1 * 1 892 7164958+ 7 HPFS/NTFS
/dev/hda2 893 3589 21663652+ f Win95 Ext'd (LBA)
/dev/hda3 3590 4864 10241437+ 1c Hidden Win95 FAT32 (LBA)
/dev/hda5 893 1784 7164958+ 83 Linux
/dev/hda6 1785 1848 514048+ 82 Linux swap
/dev/hda7 1849 2740 7164958+ b Win95 FAT32
/dev/hda8 2741 3589 6819561 7 HPFS/NTFS
#Ignore /dev/hda8 for now. I have future plans for it.
What I would like to find out is a simple, non-destructive way of
moving the Linux partition to a primary partition.
I tried using Partition Magic to designate the Linux partition (currently hda5) as a
primary partition. What's not clear to me is the device id assigned to the primary
partition. I assumed it to be hda2, but I am not certain of this. Assuming the new
partition was hda2, I modified lilo.conf, indicating the new device to be hda2
rather than hda5, and wrote the resulting information to a bootsect.lnx file
that I then mounted in the root directory of drive C, where my current working
boot file resides.
Unfortunately, when I choose Linux from the XP boot loader, all I get is gibberish
on the display. Other variations I have tried (ie. boot floppy) have gotten started
with the boot process, but always result in a kernel panic indicating that the
file systems cannot be found.
Is there a simple way to do what I am trying to do, or must I reinstall the OS from
scratch on the clean primary partition.
Thanks very much,