<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to check hard disk for bad sectors under linux ? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211969#M10508</link>
    <description>Ooops ! Yes, you are right Mark !&lt;BR /&gt;Even if both problems are related, the right command is undoubtedly here badblocks -nsv /dev/hda1 n to make non destructive tests, s to tell you which blocks are tested (be careful : slooows the process), and v to tell you if everything goes right.&lt;BR /&gt;&lt;BR /&gt;Obviously 0 here chris...&lt;BR /&gt;&lt;BR /&gt;J</description>
    <pubDate>Mon, 08 Mar 2004 09:17:04 GMT</pubDate>
    <dc:creator>Jerome Henry</dc:creator>
    <dc:date>2004-03-08T09:17:04Z</dc:date>
    <item>
      <title>how to check hard disk for bad sectors under linux ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211963#M10502</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;how to check hard disk for bad sectors under linux ?&lt;BR /&gt;I use linux SuSE 8.2 and Ext3 file system.&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;chris</description>
      <pubDate>Mon, 08 Mar 2004 07:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211963#M10502</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-03-08T07:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to check hard disk for bad sectors under linux ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211964#M10503</link>
      <description>try &lt;BR /&gt;first umount the disk partition&lt;BR /&gt;&lt;BR /&gt;then &lt;BR /&gt;e2fsck -c umounted partition&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Mar 2004 07:41:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211964#M10503</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2004-03-08T07:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to check hard disk for bad sectors under linux ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211965#M10504</link>
      <description>Have a look at the "badblocks" command.  The man page describes everything useful.</description>
      <pubDate>Mon, 08 Mar 2004 07:43:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211965#M10504</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-08T07:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: how to check hard disk for bad sectors under linux ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211966#M10505</link>
      <description>You can also :&lt;BR /&gt;shutdown -rF now&lt;BR /&gt;forces checking on reboot.&lt;BR /&gt;Ext3 is a problem on checking, as partition is always considered as consistent because of the journal. It's a good idea to proceed to the file checking from time to time at boot time.&lt;BR /&gt;You can set it with tune2fs :&lt;BR /&gt;tune2fs -c 12 -i 25 /dev/hda3&lt;BR /&gt;for example : this will force file checking every 12 boots, or every 25 days (first delay) on hda3. It's a good idea to use it, my experience (and many others' undoubtedly !) shows that with journalisation, it's often too late when you realize that consitency is not there anymore !&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Mon, 08 Mar 2004 08:44:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211966#M10505</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2004-03-08T08:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to check hard disk for bad sectors under linux ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211967#M10506</link>
      <description>Jerome,&lt;BR /&gt; &lt;BR /&gt;I was under the impression that this does not check for bad areas on the disk, it only checks for inconsistancies in the filesystem itself.  Am I wrong?</description>
      <pubDate>Mon, 08 Mar 2004 09:05:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211967#M10506</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2004-03-08T09:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to check hard disk for bad sectors under linux ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211968#M10507</link>
      <description>hi Jerome&lt;BR /&gt;&lt;BR /&gt;I've forgotten:  my /boot is on Ext2 file system  and rest on Ext3&lt;BR /&gt;&lt;BR /&gt;# df -T&lt;BR /&gt;Filesystem    Type   1K-blocks      Used Available Use% Mounted on&lt;BR /&gt;/dev/hda3     ext3    41286828   7017948  32171596  18% /&lt;BR /&gt;/dev/hda1     ext2       46636      6008     38220  14% /boot&lt;BR /&gt;/dev/hda4     ext3    35364880   1866420  31701992   6% /usr&lt;BR /&gt;shmfs          shm      386252         0    386252   0% /dev/shm&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;can I use this command&lt;BR /&gt;&lt;BR /&gt;tune2fs -c 12 -i 25 /dev/hda&lt;BR /&gt;&lt;BR /&gt;for the whole disk an all partitions ?&lt;BR /&gt;&lt;BR /&gt;greetings&lt;BR /&gt;chris</description>
      <pubDate>Mon, 08 Mar 2004 09:13:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211968#M10507</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-03-08T09:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to check hard disk for bad sectors under linux ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211969#M10508</link>
      <description>Ooops ! Yes, you are right Mark !&lt;BR /&gt;Even if both problems are related, the right command is undoubtedly here badblocks -nsv /dev/hda1 n to make non destructive tests, s to tell you which blocks are tested (be careful : slooows the process), and v to tell you if everything goes right.&lt;BR /&gt;&lt;BR /&gt;Obviously 0 here chris...&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Mon, 08 Mar 2004 09:17:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211969#M10508</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2004-03-08T09:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to check hard disk for bad sectors under linux ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211970#M10509</link>
      <description>Chris,&lt;BR /&gt;&lt;BR /&gt;As /boot is ext2, it shouldn't have this problem, as it should be checked.&lt;BR /&gt;you still can use tune2fs to tune checking intervals. But the command applies to each partition, so you have to enter it for each.&lt;BR /&gt;Entering it today with the same values will make checking occur the same day, but you can't use /dev/hda with it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Mon, 08 Mar 2004 09:26:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211970#M10509</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2004-03-08T09:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to check hard disk for bad sectors under linux ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211971#M10510</link>
      <description>thanks for answers !&lt;BR /&gt;&lt;BR /&gt;that means badblocks test is looking for bad   sectors also ?      &lt;BR /&gt;&lt;BR /&gt;what's different exactly between blocks and sectors ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Mar 2004 09:29:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211971#M10510</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-03-08T09:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to check hard disk for bad sectors under linux ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211972#M10511</link>
      <description>The sector is the physical space your HD maker thought was necessary to write 512 bytes (4096 bits, so 4096 different information). It depends on your HD speed, head sensitivity, and so on.&lt;BR /&gt;From that, each operating system groups sectors in order to simplify disk administration (if your average file size is 3.5 ko, it would be faster to administrate 4.0 ko as the minimum unit to describe a file, instead of administrating 7 sectors to describe the same file. That's why most OSes group sectors in blocks. It looses some space, as in ths example I loose 0.5 ko for the file, but it goes in this example 8 time faster than administrating each sector).&lt;BR /&gt;On doing fdisk /dev/hda, you'll be able to check disk block size :&lt;BR /&gt;For example :&lt;BR /&gt;[root@localhost etc]# fdisk -l /dev/hda&lt;BR /&gt; &lt;BR /&gt;Disk /dev/hda: 40.0 GB, 40007761920 bytes&lt;BR /&gt;255 heads, 63 sectors/track, 4864 cylinders&lt;BR /&gt;Units = cylindres of 16065 * 512 = 8225280 bytes&lt;BR /&gt; &lt;BR /&gt;PÃ©riphÃ©rique Amorce    DÃ©but       Fin    Blocs   Id  SystÃ¨me&lt;BR /&gt;/dev/hda1   *         1       382   3068383+   7  HPFS/NTFS&lt;BR /&gt;/dev/hda2           383      1148   6152895    7  HPFS/NTFS&lt;BR /&gt;/dev/hda3          1149      1786   5124735    c  Win95 FAT32 (LBA)&lt;BR /&gt;/dev/hda4          1787      4864  24724035    5  Etendue&lt;BR /&gt;/dev/hda5          1787      2296   4096543+  83  Linux&lt;BR /&gt;/dev/hda6          2297      2678   3068383+  83  Linux&lt;BR /&gt;/dev/hda7          2679      2805   1020096   82  Echange Linux&lt;BR /&gt;/dev/hda8          2806      2901    771088+  83  Linux&lt;BR /&gt;/dev/hda9          2902      4481  12691318+  83  Linux&lt;BR /&gt;/dev/hda10         4482      4863   3068383+  83  Linux&lt;BR /&gt;&lt;BR /&gt;The block size is :&lt;BR /&gt;Units = cylindres of 16065 * 512 = 8225280 bytes. The block size is units / 1024, here 8132.5, which is odd, I know. Sorry. Most of the time it is 1024 bytes, 2048, 4096 or 81</description>
      <pubDate>Mon, 08 Mar 2004 10:09:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211972#M10511</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2004-03-08T10:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to check hard disk for bad sectors under linux ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211973#M10512</link>
      <description>thanks !&lt;BR /&gt;&lt;BR /&gt;but is it any difference between &lt;BR /&gt;blocks and sectors ?</description>
      <pubDate>Fri, 26 Mar 2004 18:45:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211973#M10512</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2004-03-26T18:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to check hard disk for bad sectors under linux ?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211974#M10513</link>
      <description>The first line of Jerome's post stated what a sector is.  A block is a file-system (read: logical) representation of how to arrange data on a disk.&lt;BR /&gt;&lt;BR /&gt;There isn't necessarily any direct correlation between a sector and a block.  When you start talking RAID array's, this becomes very clear.</description>
      <pubDate>Fri, 26 Mar 2004 19:12:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-check-hard-disk-for-bad-sectors-under-linux/m-p/3211974#M10513</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-03-26T19:12:11Z</dc:date>
    </item>
  </channel>
</rss>

