Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5361360
  • 博文数量: 1144
  • 博客积分: 11974
  • 博客等级: 上将
  • 技术积分: 12312
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-13 20:06
文章存档

2017年(2)

2016年(14)

2015年(10)

2014年(28)

2013年(23)

2012年(29)

2011年(53)

2010年(86)

2009年(83)

2008年(43)

2007年(153)

2006年(575)

2005年(45)

分类: LINUX

2008-11-27 09:42:13

Other OrcaWare Tools

This is a list of the other tools hosted on this site.

  • Have you ever had a disk with one or more bad blocks on it and you want to make a copy of a file, using cp or dd, partition or even the entire disk, only to have the copy fail on a single bad block?

    This tool is a smart copy program that doesn't stop copying when it runs into a read error. It only stops reading when the end of file is reached.

    To back up my laptop which had a number of bad blocks, instead of using dd which failed 10 Gbytes into the disk, I ran this command instead:

    copy_badblocks.pl /dev/hda - | ssh blair@10.10.10.10 "cat > laptop-backup"
    
  • This script is used to find bad blocks on all the locally attached disks on a Linux system. It determines the default block size used in each partition and uses this when it runs badblocks with the -b command line option so that blocks identified by badblocks can correctly be mapped to filesystem blocks and hence inodes.

    On my RedHat systems, I simply copy this file into /etc/cron.weekly for it to run on a weekly basis.

    This script takes a -p command line option which specifies the number of times to scan the partitions for bad blocks, similar to badblocks' -p command line option. However, while badblocks will skip any previously identified bad blocks on the current scan, find_badblocks.pl runs badblocks the specified number of times, so all blocks will be scanned the same number of times. This allows the user to gauge how bad the bad blocks are if there are N scans and the same badblock is found M (

阅读(1881) | 评论(0) | 转发(0) |
0

上一篇:perl的sort函数

下一篇:成功的IPTABLES

给主人留下些什么吧!~~