[mythtv-users] Lost Swap space

Michael T. Dean mtdean at thirdcontact.com
Sat Sep 22 05:37:39 UTC 2007


On 09/21/2007 11:19 AM, Dan Ritter wrote:
> 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.)
>   

Almost...

mkswap -L SWAP /dev/hda2

Or, whatever the label (in /etc/fstab) may be.

Mike


More information about the mythtv-users mailing list