Swap partition created incorrectly and swapon always failing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Invalid
|
Medium
|
Unassigned |
Bug Description
I installed via the Dapper Drake Live CD flight 7 and used the standard disk layout. I had a few problems deleting Fedora Cores logical volumes so that Dapper could create partitions, but finally removed those and let Dapper create whatever it needed. It seems to have created three paritions and two of them overlapped. Here is what the old table looked like:
/dev/hda1 * 1 4682 37608133+ 83 Linux
/dev/hda2 4683 4864 1461915 82 Extended
/dev/hda5 4683 4864 1461915 82 Linux swap / Solaris
Each boot swapon would give this error:
swapon: /dev/hda5: Invalid argument
I removed the two partitions and created a single partition as hda2. I made this a swap (82) partition and rebooted. After this swapon is still failing with this error:
swapon: /dev/hda2: Invalid argument
I seems as though there are three issues here. The live CD was unable to remove logical volumes in order to install itself. Second, the install seems to have created incorrect partitions. And swapon has yet to correctly mount any partition as swap space.
I have figured this out I think. I think because the Live CD created the incorrect partitions, it failed when calling mkswap to initialize the swap partition. After I fixed the partitions I ran mkswap for that space and then called swapon, which worked fine.
This is definitely a big issue for laptops and low memory machines. If this is truly an issue from the installation I would consider this a high priority bug for the next release and I would also provide some wiki documentation to help folks that have encountered this issue, perhaps even a script to fix this problem using the Ubuntu apt updates.