|
楼主 |
发表于 2004-9-6 23:56:58
|
显示全部楼层
重新建swap:
[root@Redhat root]# mkswap /dev/sda3
Setting up swapspace version 1, size = 534638 kB
[root@Redhat root]# mkswap on
on: 没有那个文件或目录
[root@Redhat root]#reboot
进入后发现有告警,说swap /dev/hda9加载失败(我原来的swap分区是建在这的)
[root@Redhat root]#vi /etc/fstab
/dev/hda9 swap swap defaults 0 0
改为
/dev/sda3 swap swap defaults 0 0
重起,失败告警没有出现了。
[root@Redhat root]# fdisk -l
Disk /dev/sda: 18.3 GB, 18351959040 bytes
255 heads, 63 sectors/track, 2231 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 13 104391 83 Linux
/dev/sda2 14 1222 9711292+ 83 Linux
/dev/sda3 * 1223 1287 522112+ 6 FAT16
/dev/sda4 * 1288 2231 7582680 f Win95 Ext'd (LBA)
/dev/sda5 1288 1989 5638783+ 7 HPFS/NTFS
/dev/sda6 1990 2231 1943833+ 7 HPFS/NTFS
Disk /dev/hda: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 487 3911796 7 HPFS/NTFS
/dev/hda2 488 5005 36290835 f Win95 Ext'd (LBA)
/dev/hda5 488 1096 4891761 b Win95 FAT32
/dev/hda6 1097 1705 4891761 7 HPFS/NTFS
/dev/hda7 1706 2921 9767488+ b Win95 FAT32
/dev/hda8 2922 4137 9767488+ b Win95 FAT32
/dev/hda9 4138 5005 6972178+ b Win95 FAT32
[root@Redhat root]#
看到我的sda3是fat16的??
另外再问一下,怎么可以查看到swap的情况?怎么才可以知道我的swap已经重建?
谢谢MichaelBibby的帮助
:-) :-) |
|