免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: szqy0755
打印 上一主题 下一主题

[SCO UNIX] no space on dev hd该怎么办? [复制链接]

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

no space on dev hd该怎么办?

各位老兄门,不管是单用户还是多用户都进不去啊?怎么来到以上的各种命令啊?还是拜托大家能否在多提其他些建议啊?

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

no space on dev hd该怎么办?

各位老兄门,不管是单用户还是多用户都进不去啊?怎么来到以上的各种命令啊?还是拜托大家能否在多提其他些建议啊?

论坛徽章:
0
13 [报告]
发表于 2005-04-15 10:20 |只看该作者

no space on dev hd该怎么办?

[quote]原帖由 "sbepai"]......首先用单用户进,不要管他报错,只管往里输入密码。然后,你就等一会吧。早晚会进去的,只不过没有运转空间了。进去后,可以先清下TMP倒出一些空间来,这样操作就会快些了!..........[/quote 发表:

论坛徽章:
0
14 [报告]
发表于 2005-04-15 10:52 |只看该作者

no space on dev hd该怎么办?

下面内容实际上以前的帖子里都有,不知道楼主是没看到还是看不懂,
如果是后者,建议找个熟悉操作系统的朋友帮助,否则只会添乱
并且最好先man clri看clri帮助, man ncheck看ncheck帮助

楼主的紧急引导盘上如果有/etc/clri和/etc/ncheck那么可以直接做
1 找出垃圾文件的inode记录下来
/etc/ncheck /dev/root
2 清掉inode表位置
/etc/clri /dev/root inode号
3 清理文件系统
/etc/fsck -ofull -y /dev/root
重起机器

如果盘上没的,就把硬盘拔下来,跳从盘接到其他好的sco机器
mknod /dev/root2  b 1 106
ncheck /dev/root2 记录下来可删掉的垃圾文件inode
clri /dev/root2 垃圾文件的inode号(多个号间空格分开)
如果可删的文件太多,重复做clri操作
fsck -ofull -y /dev/root2
关机把硬盘拔回来看看

论坛徽章:
0
15 [报告]
发表于 2006-01-25 17:13 |只看该作者
原帖由 sbepai 于 2005-4-12 15:50 发表
老哥,不要急啊,我前一段时间也经常遇到这样的问题,有可能是别人攻击。使日志文件爆满,如果以前还有很多空间,突然增加至满,就有可能了。首先用单用户进,不要管他报错,只管往里输入密码。然后,你就等一会吧。早晚会进去的,只不过没有运转空间了。进去后,可以用FIND查一下大的文件,也可以像楼上说的,先清下TMP倒出一些空间来,这样操作就会快些了!如果感觉是病毒建议你到/usr/lib/apache/logs/access_log看看这个文件是不是很大,上个月就受攻击,这个文件特别大。删了,就可以了!



我以前把/etc/default目录中的boot文件修改了!
开机自动进入init 2!!!

init 1再也进不去了!

我现在已经用启动软盘引导起来了,mkdev hd也做了(不知道对不?!)

mkdev hd

During installation you may choose to overwrite all or part of the present contents of your hard disk.
Do you wish to continue?

The hard dixk installation program will now invoke /etc/fdisk.
Entering 'q' at  the following menu will exit /etc/fdisk and the hard disk installation will continue.
       1. Display Partition Table
       2. Use Entire Disk for UNIX
       3. Use Rest of Disk for UNIX
       4. Create UNIX Partition
       5. Activate Partition
       6. Delete Partition
       7. Create Partition

Enter your choice or 'q' to quit:

选择:q

scsi version=3
vendor=COMPAQ
product BD0728856A

1.Scan entire UNIX partitition
2.Scan a specified range of blocks
3.Scan a specified filesystem
4.List current bad blocks table
5.Add entries to bad blocks table
6.Delete entries from bad blocks table
7.Clear bad blocks table
8.Re-allocute bad blocks

选择:q

Enter the number of bad blocks to allocute space for or press <Return> to use the existing value of 4095.

按:Return

This device contains a valid disk division table. Your additional (non-root) filesystems/divisions can be preserved across the reinstallation.
Do you want to preserve your additional filesystems/divisions?(y/n)

选择:y

The layout of the filesystems and swap area is now prepared.
Do you wish to make any mannul adjustment to the sizes or names of the filesystems or swap area before they are created on the hard disk.(y/n)

选择:n

Making filesystems

……

然后就退出mkdev hd


我想保留原来的硬盘分区参数,我的选择对吗???

GG、JJ下面怎么办???

是否还要mount???
如何mount???

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP