免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 4823 | 回复: 21
打印 上一主题 下一主题

请教df -k看不到swap分区? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-08-11 13:10 |只看该作者 |倒序浏览
用df -k看不到swap分区是怎么回事?
/etc% df -k
文件系统              千字节    已用    可用   容量    挂接在
/dev/dsk/c0t0d0s0     192056   39023  133828    23%    /
/dev/dsk/c0t0d0s6     597472  395417  142308    74%    /usr
fd                    192056   39023  133828    23%    /dev/fd
/dev/dsk/c0t0d0s3      31683   11373   17142    40%    /var
/dev/dsk/c0t0d0s7    2127874 1837300  226738    90%    /export/home
/dev/dsk/c0t0d0s5     288556  112719  146982    44%    /opt
/dev/dsk/c0t0d0s1     545901  369368  121943    76%    /usr/openwin
/dev/dsk/c0t1d0s0    4134252       9 4092901     1%    /export/home/sybase/data

而用format查看
format>; verify

Primary label contents:

Volume name = <        >;
ascii name  = <Seagate Medalist 34342A cyl 8892 alt 2 hd 15 sec 63>;
pcyl        = 8894
ncyl        = 8892
acyl        =    2
nhead       =   15
nsect       =   63
Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0 -  433      200.26MB    (434/0/0)   410130
  1        usr    wm     434 - 1664      568.02MB    (1231/0/0) 1163295
  2     backup    wm       0 - 8889        4.01GB    (8890/0/0) 8401050
  3        var    wm    1665 - 1736       33.22MB    (72/0/0)     68040
  4       swap    wu    1737 - 2291      256.09MB    (555/0/0)   524475  5 unassigned    wm    2292 - 2942      300.39MB    (651/0/0)   615195
  6        usr    wm    2943 - 4290      622.00MB    (1348/0/0) 1273860
  7       home    wm    4291 - 8891        2.07GB    (4601/0/0) 4347945

看到里面part4是swap,这是为什么?谢谢!

论坛徽章:
0
2 [报告]
发表于 2005-08-11 13:25 |只看该作者

请教df -k看不到swap分区?

please check the /etc/vfstab file

论坛徽章:
0
3 [报告]
发表于 2005-08-11 13:33 |只看该作者

请教df -k看不到swap分区?

swap -l

论坛徽章:
0
4 [报告]
发表于 2005-08-11 14:06 |只看该作者

请教df -k看不到swap分区?

[quote]原帖由 "lyh003473"]swap -l[/quote 发表:

显示
swap :getexecname() 失败
?这是什么意思?谢谢

论坛徽章:
0
5 [报告]
发表于 2005-08-11 14:08 |只看该作者

请教df -k看不到swap分区?

[quote]原帖由 "wsb587"]please check the /etc/vfstab file[/quote 发表:


vfstab文件如下:

#device                device                mount                FS        fsck        mount        mount
#to mount        to fsck                point                type        pass        at boot        options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr                ufs        1        yes        -
fd        -        /dev/fd        fd        -        no        -
/proc        -        /proc        proc        -        no        -
/dev/dsk/c0t0d0s4        -        -        swap        -        no        -
/dev/dsk/c0t0d0s0        /dev/rdsk/c0t0d0s0        /        ufs        1        no        -
/dev/dsk/c0t0d0s6        /dev/rdsk/c0t0d0s6        /usr        ufs        1        no        -
/dev/dsk/c0t0d0s3        /dev/rdsk/c0t0d0s3        /var        ufs        1        no        -
/dev/dsk/c0t0d0s7        /dev/rdsk/c0t0d0s7        /export/home        ufs        2        yes        -
/dev/dsk/c0t0d0s5        /dev/rdsk/c0t0d0s5        /opt        ufs        2        yes        -
/dev/dsk/c0t0d0s1        /dev/rdsk/c0t0d0s1        /usr/openwin        ufs        2        yes        -
/dev/dsk/c0t1d0s0        /dev/rdsk/c0t1d0s0        /export/home/sybase/data        ufs        2        yes        -

swap        -        /tmp        tmpfs        -        yes        -

有问题吗?
不好意思,初学者,还请多多指教!谢谢

论坛徽章:
0
6 [报告]
发表于 2005-08-11 14:16 |只看该作者

请教df -k看不到swap分区?

你的分区是谁分的?乱七八糟的.
/dev/dsk/c0t0d0s1 是缺省的SWAP分区,你给/usr
却把/dev/dsk/c0t0d0s4给了SWAP,看来安装系统的也是个分区高手。

论坛徽章:
0
7 [报告]
发表于 2005-08-11 14:17 |只看该作者

请教df -k看不到swap分区?

/proc - /proc proc - no -

可能你的/proc 点没有mount上来。

论坛徽章:
0
8 [报告]
发表于 2005-08-11 14:24 |只看该作者

请教df -k看不到swap分区?

确实够晕

论坛徽章:
0
9 [报告]
发表于 2005-08-11 14:28 |只看该作者

请教df -k看不到swap分区?

原帖由 "race" 发表:
你的分区是谁分的?乱七八糟的.
/dev/dsk/c0t0d0s1 是缺省的SWAP分区,你给/usr
却把/dev/dsk/c0t0d0s4给了SWAP,看来安装系统的也是个分区高手。


那怎么办?:(

论坛徽章:
0
10 [报告]
发表于 2005-08-11 14:32 |只看该作者

请教df -k看不到swap分区?

原帖由 "lyh003473" 发表:
/proc - /proc proc - no -

可能你的/proc 点没有mount上来。


这个如何看?我把swap后面的no改成yes好像也没有用,还是一样的错误:(
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP