swap partition missing?

Alexander Apprich a.apprich at science-computing.de
Tue Mar 22 14:58:14 UTC 2005


Hongwei Li wrote:
>>Hongwei Li wrote:
>>
>>>Hi,
>>>
>>>I just found that my fc3 system's swap partition is "gone".  When I
>>>installed the system, I set it to 1Gb.  The kernel is 2.6.10-1.766_FC3.
>>>I
>>>don't know when it started, but here are some information:
>>>
>>># free
>>>             total       used       free     shared    buffers
>>>cached
>>>Mem:       1035748     658792     376956          0     145380
>>>272540
>>>-/+ buffers/cache:     240872     794876
>>>Swap:            0          0          0
>>>
[snip]
>>>
>>>I tried this:
>>>
>>># swapon -a
>>>swapon: cannot find the device for LABEL=SWAP-hda7
>>
>>Your swap partition probabliy doesn't have a label anymore, or it
>>doesn't exist anymore.
>>
>>
>>>The system log does not show anything related to this problem.  Can
>>>somebody tell me what may cause this problem?  how to check it further
>>>and
>>>fix it?
>>>
>>
>>What is the output from fdisk -l (run by root)?
>>
>>
>>>Thanks a lot!
>>>
>>>Hongwei Li
>>>
>>
>>Alex
> 
> 
> The output is:
> 
> # fdisk -l
> 
> Disk /dev/hda: 80.0 GB, 80026361856 bytes
> 255 heads, 63 sectors/track, 9729 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/hda1   *           1         127     1020096   83  Linux
> /dev/hda2             128        2932    22531162+  83  Linux
> /dev/hda3            2933        5737    22531162+  83  Linux
> /dev/hda4            5738        9729    32065740    5  Extended
> /dev/hda5            5738        8542    22531131   83  Linux
> /dev/hda6            8543        9307     6144831   83  Linux
> /dev/hda7            9308        9562     2048256   82  Linux swap
> /dev/hda8            9563        9729     1341396   83  Linux
> 
> Disk /dev/hdb: 80.0 GB, 80026361856 bytes
> 16 heads, 63 sectors/track, 155061 cylinders
> Units = cylinders of 1008 * 512 = 516096 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> 
> What should I do?  Thanks!
> 

In this case do what Paul Howarth wrote earlier. This will help you.

> Hongwei
> 
> 

Alex




More information about the fedora-list mailing list