Swap partition created incorrectly and swapon always failing

Bug #47758 reported by Brian Pontarelli
6
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.

Revision history for this message
Brian Pontarelli (brian-pontarelli) wrote :

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.

Revision history for this message
Áron Sisak (asisak) wrote :

Thanks for reporting this bug. Can you test if this issue has been fixed by the final Dapper release?

Revision history for this message
Brian Pontarelli (brian-pontarelli) wrote :

Sorry, I wish I could test this, but I'm now on Edgy and have too much going on with this machine or other machines to re-install. I might be able to get to this in a few months, but my guess is that it won't help much. I could also try it with the next release (7.x) if you want. I plan on upgrading most of my machines, but I might have one that I could scrap, put RedHat on, and then install Ubuntu 7.x from there to test.

Revision history for this message
Áron Sisak (asisak) wrote :

Thanks. I am closing this now, as no one can confirm.

Please feel free to reopen this bug if you can provide the information asked for. Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.