分页: 1 / 1
swap开机时无法激活
发表于 : 2011-01-09 22:37
由 linux5588
开机是提示swap激活失败。
fdisk -l 还能显示swap分区
/dev/sda8 * 573440238 573825734 192748+ 83 Linux
Partition 8 does not start on physical sector boundary.
/dev/sda9 573825798 622647269 24410736 83 Linux
Partition 9 does not start on physical sector boundary.
/dev/sda10 622647333 625137344 1245006 82 Linux swap / Solaris
Partition 10 does not start on physical sector boundary.
df 看不到swap信息
还有开机时几个失败。闪的太快,没有看到呢?
我不知道在/var/log/里看哪个日志可以找到失败的信息呢
Re: swap开机时无法激活
发表于 : 2011-01-09 22:43
由 cuihao
代码: 全选
sudo swapon /dev/sda10
看看什么效果。
Re: swap开机时无法激活
发表于 : 2011-01-10 15:25
由 linux5588
cuihao 写了:代码: 全选
sudo swapon /dev/sda10
看看什么效果。
[arch@arch ~]$ sudo swapon /dev/sda10
swapon: /dev/sda10: swapon failed: Device or resource busy
[arch@arch ~]$ sudo mkswap /dev/sda10
/dev/sda10: Device or resource busy
Re: swap开机时无法激活
发表于 : 2011-01-10 19:32
由 cnkilior
df 是看不到swap以及未挂载的设备的。
请贴出详细的fdisk -l
Re: swap开机时无法激活
发表于 : 2011-01-10 19:33
由 cnkilior
以及以及,free -m
Re: swap开机时无法激活
发表于 : 2011-01-10 23:29
由 linux5588
[arch@arch ~]$ sudo fdisk -l
Password:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xae56ae56
Device Boot Start End Blocks Id System
/dev/sda1 * 63 40965749 20482843+ 7 HPFS/NTFS
Partition 1 does not start on physical sector boundary.
/dev/sda2 40965750 625137344 292085797+ f W95 Ext'd (LBA)
Partition 2 does not start on physical sector boundary.
/dev/sda5 40965813 143364059 51199123+ 7 HPFS/NTFS
Partition 5 does not start on physical sector boundary.
/dev/sda6 143364123 327677804 92156841 7 HPFS/NTFS
Partition 6 does not start on physical sector boundary.
/dev/sda7 327677868 573440174 122881153+ 7 HPFS/NTFS
Partition 7 does not start on physical sector boundary.
/dev/sda8 * 573440238 573825734 192748+ 83 Linux
Partition 8 does not start on physical sector boundary.
/dev/sda9 573825798 622647269 24410736 83 Linux
Partition 9 does not start on physical sector boundary.
/dev/sda10 622647333 625137344 1245006 82 Linux swap / Solaris
Partition 10 does not start on physical sector boundary.
[arch@arch ~]$
[arch@arch ~]$ free -m
total used free shared buffers cached
Mem: 1941 1611 329 0 580 749
-/+ buffers/cache: 281 1659
Swap: 1215 0 1215
[arch@arch ~]$
看吧。。就这么多了
Re: swap开机时无法激活
发表于 : 2011-01-11 12:15
由 poweroff
你的swap不是已经激活了吗!!!!
total used free shared buffers cached
Mem: 1941 1611 329 0 580 749
-/+ buffers/cache: 281 1659
Swap: 1215 0 1215
你的/etc/fstab中估计已经写好了swap的自动挂载。
Re: swap开机时无法激活
发表于 : 2011-01-11 21:09
由 linux5588
[arch@arch /]$ cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
#/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
#/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
#/dev/fd0 /media/fl auto user,noauto 0 0
/dev/sda swap swap defaults 0 0
/dev/sda10 swap swap defaults 0 0
/dev/sda8 /boot ext4 defaults 0 1
/dev/sda9 / ext4 defaults 0 1
/dev/sda5 /media/D ntfs-3g locharset=utf8,umask=000 00
/dev/sda6 /media/E ntfs-3g locharset=utf8,umask=000 00
/dev/sda7 /media/F ntfs-3g locharset=utf8,umask=000 00
可是我开机启动时显示的是失败呀。
Re: swap开机时无法激活
发表于 : 2011-01-12 12:50
由 alpha.gu
自从有一次看到用文件方式来做swap之后,我的机器上就再没有过swap分区,只有swap文件。
Re: swap开机时无法激活
发表于 : 2011-01-26 23:35
由 jtshs256
启动时ctl+s定屏,ctl+q取消,定下来慢慢看错误……