免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-08-11 13:10 |只看该作者 |倒序浏览
用df -k看不到swap分区是怎么回事?\r\n/etc% df -k\r\n文件系统              千字节    已用    可用   容量    挂接在\r\n/dev/dsk/c0t0d0s0     192056   39023  133828    23%    /\r\n/dev/dsk/c0t0d0s6     597472  395417  142308    74%    /usr\r\nfd                    192056   39023  133828    23%    /dev/fd\r\n/dev/dsk/c0t0d0s3      31683   11373   17142    40%    /var\r\n/dev/dsk/c0t0d0s7    2127874 1837300  226738    90%    /export/home\r\n/dev/dsk/c0t0d0s5     288556  112719  146982    44%    /opt\r\n/dev/dsk/c0t0d0s1     545901  369368  121943    76%    /usr/openwin\r\n/dev/dsk/c0t1d0s0    4134252       9 4092901     1%    /export/home/sybase/data\r\n\r\n而用format查看\r\nformat>; verify\r\n\r\nPrimary label contents:\r\n\r\nVolume name = <        >;\r\nascii name  = <Seagate Medalist 34342A cyl 8892 alt 2 hd 15 sec 63>;\r\npcyl        = 8894\r\nncyl        = 8892\r\nacyl        =    2\r\nnhead       =   15\r\nnsect       =   63\r\nPart      Tag    Flag     Cylinders        Size            Blocks\r\n  0       root    wm       0 -  433      200.26MB    (434/0/0)   410130\r\n  1        usr    wm     434 - 1664      568.02MB    (1231/0/0) 1163295\r\n  2     backup    wm       0 - 8889        4.01GB    (8890/0/0) 8401050\r\n  3        var    wm    1665 - 1736       33.22MB    (72/0/0)     68040\r\n  4       swap    wu    1737 - 2291      256.09MB    (555/0/0)   524475  5 unassigned    wm    2292 - 2942      300.39MB    (651/0/0)   615195\r\n  6        usr    wm    2943 - 4290      622.00MB    (1348/0/0) 1273860\r\n  7       home    wm    4291 - 8891        2.07GB    (4601/0/0) 4347945\r\n\r\n看到里面part4是swap,这是为什么?谢谢!

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

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

please check the /etc/vfstab file

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

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

[quote]原帖由 \"lyh003473\"]swap -l[/quote 发表:\n\r\n显示\r\nswap :getexecname() 失败\r\n?这是什么意思?谢谢

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

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

[quote]原帖由 \"wsb587\"]please check the /etc/vfstab file[/quote 发表:\n\r\n\r\nvfstab文件如下:\r\n\r\n#device                device                mount                FS        fsck        mount        mount\r\n#to mount        to fsck                point                type        pass        at boot        options\r\n#\r\n#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr                ufs        1        yes        -\r\nfd        -        /dev/fd        fd        -        no        -\r\n/proc        -        /proc        proc        -        no        -\r\n/dev/dsk/c0t0d0s4        -        -        swap        -        no        -\r\n/dev/dsk/c0t0d0s0        /dev/rdsk/c0t0d0s0        /        ufs        1        no        -\r\n/dev/dsk/c0t0d0s6        /dev/rdsk/c0t0d0s6        /usr        ufs        1        no        -\r\n/dev/dsk/c0t0d0s3        /dev/rdsk/c0t0d0s3        /var        ufs        1        no        -\r\n/dev/dsk/c0t0d0s7        /dev/rdsk/c0t0d0s7        /export/home        ufs        2        yes        -\r\n/dev/dsk/c0t0d0s5        /dev/rdsk/c0t0d0s5        /opt        ufs        2        yes        -\r\n/dev/dsk/c0t0d0s1        /dev/rdsk/c0t0d0s1        /usr/openwin        ufs        2        yes        -\r\n/dev/dsk/c0t1d0s0        /dev/rdsk/c0t1d0s0        /export/home/sybase/data        ufs        2        yes        -\r\n\r\nswap        -        /tmp        tmpfs        -        yes        -\r\n\r\n有问题吗?\r\n不好意思,初学者,还请多多指教!谢谢

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

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

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

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

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

/proc - /proc proc - no - \r\n\r\n可能你的/proc 点没有mount上来。

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

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

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

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

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

原帖由 \"lyh003473\" 发表:\n/proc - /proc proc - no - \r\n\r\n可能你的/proc 点没有mount上来。
\r\n\r\n这个如何看?我把swap后面的no改成yes好像也没有用,还是一样的错误:(

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
9 [报告]
发表于 2005-08-11 14:33 |只看该作者

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

而且也没有/proc\r\n正常的(系统安装后生成的)vfstab中,swap那行应该是在\"/\"那行的后面。这里是否有玄机?

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

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

原帖由 \"hilmoon\" 发表:\n而且也没有/proc\r\n正常的(系统安装后生成的)vfstab中,swap那行应该是在\"/\"那行的后面。这里是否有玄机?
\r\n\r\n/proc 指哪里?vfstab里好像有的\r\n/proc - /proc proc - no - 是指这里吗?\r\n这个派什么用场?谢谢,
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP