Red Hat Bugzilla – Bug 248558
upgrade does not recognize swap partition
Last modified: 2007-11-30 17:12:10 EST
I am trying to upgrade my FC6 system to F7. When I try to upgrade from the F7
install DVD I get the following message (after a complaint about a DOS share
partion and one about fd0):
Error enabling swap device hdb3: No such file or directory
The /etc/fstab on your upgrade partition does not reference a valid swap partition.
Press OK to reboot your system.
I don't know what version of anaconda is running on the F7 install DVD.
Steps to Reproduce:
1. Reboot with F7 install disk
2. Select graphic install/upgrade option on startup screen
3. Select language options (English)
4. Click continue on two dialogs, one complaining about /winshare DOS partition
on hdb2, and one complaining about a mount error for fd0.
5. Get error message above, click OK and we are back to the start.
As far as I know there is nothing wrong with the swap partition. FC6 runs fine.
I ran mkswap on the partition just to be sure it was good, but it had no effect
on the upgrade.
Created attachment 159436 [details]
my fstab file
When you get this error message, can you flip over to tty3 and tty4 and see if
there are any obvious error message? Your fstab does look okay to me, and I
find it odd that you get error messages about the two partitions in hdb.
I got the same (except for "step 4") on one of my machines.
Did not try (yet) to flip to tty3 and tty4 (how do you do that?)
You flip to the various 'virtual' terminals by using the key combo
ctrl-alt-Fn, where 'n' is the number of the tty you are switching to.
ctrl-alt-F6 generally takes you back to the X windows terminal.
To answer the earlier question: No I didn't see any obvious error messages on
tty3 or tty4.
I did go to the shell on tty2 and did a df. One odd thing I noticed was that
the installer had mounted the / and /boot partitions using the /dev/sdc5
and /dev/sdc1 devices. Whereas the error message for the /winshare partition,
and the swap partition indicated that it was trying to use the /dev/hdb2
and /dev/hdb3 devices. Is there some reason it is using the SCSI emulation
for some of the mounts, and the ATA driver for the others (the ones that
didn't want to mount)?
Is there significance to the fact that / and /boot are specified by label
in /etc/fstab, and work. Whereas /winshare and swap are specified as explicit
devices in /etc/fstab, and do not work?
No obvious error messages in ttyx on my machine either.
Also my swap is specified as explicit device while on all my succesfull upgraded
FC6->F7 machines all have swap specified by label.
Yes, the problem here is that it's specified by device name instead of label.
Unfortunately between FC6 and F7, all the device names changed from hdX to sdX
because of underlying kernel changes. I've improved the error handling here to
tell you what the actual problem is, just like we already had for non-swap
Should anaconda not be trying to correct the problem?
Maybe we need for the moment a recipe how to overcome the problem when upgrading
The correct fix for you is to label your devices and then refer to them by label
in your /etc/fstab. That's what the error message tells you to do. anaconda
can't correct the problem by simply replacing hdX by sdX, because this is not
guaranteed to work in all cases.
*** Bug 249487 has been marked as a duplicate of this bug. ***