无法激活Swap分区(又不行了)

系统错误报告和讨论
回复
yjmwolf
帖子: 3
注册时间: 2006-11-11 10:55
送出感谢: 0
接收感谢: 0

无法激活Swap分区(又不行了)

#1

帖子 yjmwolf » 2006-11-11 11:05

启动的时候一个失败提示:

代码: 全选

kernel: [17179605.000000] Unable to find swap-space signature
然后启动后执行:
cat /etc/fstab

代码: 全选

proc            /proc           proc    defaults        0       0
/dev/hda6       /               reiserfs notail          0       1
/dev/hda1       /mnt/c          ntfs    defaults,iocharset=utf8        0       0
/dev/hda5       /mnt/d          vfat    defaults,iocharset=utf8        0       0
/dev/hda7       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto,iocharset=utf8     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
执行:
swapon -av
提示:

代码: 全选

swapon: /dev/hda7: Invalid argument
fdisk -l

代码: 全选

Disk /dev/hda: 30.0 GB, 30005821440 bytes
240 heads, 63 sectors/track, 3876 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1084     8195008+   7  HPFS/NTFS
/dev/hda2            1085        3876    21101377+   5  Extended
/dev/hda5            1085        2053     7317576    b  W95 FAT32
/dev/hda6            2053        3810    13277691   83  Linux
/dev/hda7            3810        3876      506016   82  Linux swap / Solaris
换成升级后的/etc/fstab文件:

代码: 全选

proc            /proc           proc    defaults        0       0
# /dev/hda6 -- converted during upgrade to edgy
UUID=048052f8-4d23-4d8c-b3ce-42a85553c344 / reiserfs notail 0 1
# /dev/hda1 -- converted during upgrade to edgy
UUID=3CECE942ECE8F754 /mnt/c ntfs defaults,nls=utf-8 0 0
# /dev/hda5 -- converted during upgrade to edgy
UUID=919B-D452 /mnt/d vfat defaults,nls=utf-8 0 0
# /dev/hda7 -- converted during upgrade to edgy
UUID=b79086cb-513f-4f14-93f3-d978764dcf23 none swap sw 0 0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto,iocharset=utf8     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
也是错误
swapon -av错误:

代码: 全选

swapon: /dev/disk/by-uuid/b79086cb-513f-4f14-93f3-d978764dcf23: Invalid argument
不知道怎么解决?不会要重建swap分区吧?
回复

回到 “Ubuntu错误报告”