[mythtv-users] Lost Swap space

Dan Ritter dsr-myth at tao.merseine.nu
Fri Sep 21 15:19:16 UTC 2007

On Fri, Sep 21, 2007 at 10:15:06AM -0500, Craig Huff wrote:
> I had a problem last night with my FE and had to drop into single user mode
> during boot to fsck all the partitions.  Everything came back ok, except for
> the swap.  I know you don't fsck the swap, so I checked with "swapon -s"
> which reported that I had no swap.  Then I looked in /etc/fstab and found
> that, as usual for Fedora Core 6, the swap is referenced by label.  I fired
> up qtparted and looked at the partition and it appears to have lost it's
> label.  I quit qtparted and edited /etc/fstab to comment out the existing
> swap line and create a copy that references the drive directly as /dev/hda2
> and rebooted, but no joy.  System works fine, except it has no swap space.
> What suggestions can anyone provide for re-enabling the swap?

sudo mkswap /dev/hda2
sudo swapon /dev/hda2

(in future, your fstab line should work.)


Every time you give up a right, the terrorists win.

http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.

More information about the mythtv-users mailing list