<?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: Mounting a disk with bad sectors in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579433#M31602</link>
    <description>Thanks you for your answers. The OS version is 10.20 and the file system type is HFS. The -f option of the mount command didn't work. But I had success with dd, mentioned by Stefan Farrelly and Wodisch. But it was a hard work. Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;Under Solaris you can use the format command to mark disk sectors as bad. Afterwards you must use fsck to bring the filesystem in clean state. Is there anything similar for HP-UX?&lt;BR /&gt;&lt;BR /&gt;Rainer</description>
    <pubDate>Mon, 17 Sep 2001 14:28:02 GMT</pubDate>
    <dc:creator>Rainer Becker</dc:creator>
    <dc:date>2001-09-17T14:28:02Z</dc:date>
    <item>
      <title>Mounting a disk with bad sectors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579427#M31596</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;if have the problem, that i have a disk with one bad sector. fsck does not set the disk state to clean because of this bad sector. But an unchecked disk may not be mounted, even not read only. What's to do, to preserve the data on that disk?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Rainer</description>
      <pubDate>Fri, 14 Sep 2001 05:48:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579427#M31596</guid>
      <dc:creator>Rainer Becker</dc:creator>
      <dc:date>2001-09-14T05:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Mounting a disk with bad sectors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579428#M31597</link>
      <description>Hi,&lt;BR /&gt;You can try pvmove command.&lt;BR /&gt;&lt;BR /&gt;pvmove -n /dev/vg01/lvol2 /dev/dsk/c1t0d0 &lt;BR /&gt;/dev/dsk/c2t0d0&lt;BR /&gt;See man pages pg pvmove for more details&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best of luck&lt;BR /&gt;Animesh</description>
      <pubDate>Fri, 14 Sep 2001 06:07:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579428#M31597</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2001-09-14T06:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mounting a disk with bad sectors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579429#M31598</link>
      <description>&lt;BR /&gt;pvmove wont work either, it will fail with an I/O error. Same for dd. Im afraid there is no way to recover the data easily. The only way around a bad block is to mediainit the disk, newfs it and reload your data.&lt;BR /&gt;&lt;BR /&gt;Saying that however, you may be able to recover some of the data. Try a dd if=/dev/vgXX/rlvolYY to a new lvol youve created and see how many blocks copy before the dd errors.&lt;BR /&gt;eg.&lt;BR /&gt;dd if=/dev/vgXX/rlvolYY of=/dev/vgNEW/rlvolNEW bs=1024k&lt;BR /&gt;Lets say dd reports;&lt;BR /&gt;I/O error&lt;BR /&gt;100+blocks in&lt;BR /&gt;&lt;BR /&gt;So, in this example it copied 100 blocks (x1MB=100MB) before it errored. So if you recreate your new lvol to 100MB and only dd the 100MB before you get the error you may be able to salvage 100MB of data, eg;&lt;BR /&gt;dd if=/dev/vgXX/rlvolYY of=/dev/vgNEW/rlvolNEW bs=1024k count=100&lt;BR /&gt;Then you should be able to fsck and mount the new lvol. You can then try the same for the blocks after the error. Eg. error at 100MB, your lvol is 200MB, now copy blocks 101-200 (dd if=/dev/vgXX/rlvolYY of=/dev/vgNEW/rlvolNEW2 bs=1024k count=99 skip=101)&lt;BR /&gt;&lt;BR /&gt;Good luck.&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Sep 2001 06:16:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579429#M31598</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2001-09-14T06:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Mounting a disk with bad sectors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579430#M31599</link>
      <description>You did not mention your HP-UX release, nor the type of filesystem, but you may want to experiment with all four combinations of the "-r" (read-only) and "-f" (force) options of mount(1M) (with "-F ..."). "-r -f" is best, but perhaps (depending on release and type of filesystem) one or the other works as well. &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Fri, 14 Sep 2001 10:31:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579430#M31599</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2001-09-14T10:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mounting a disk with bad sectors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579431#M31600</link>
      <description>Hello Rainer,&lt;BR /&gt;&lt;BR /&gt;you will have to block-copy that file-system's LVOL&lt;BR /&gt;to a working, "sane" one of at least the same size,&lt;BR /&gt;to be able to do the "fsck" there.&lt;BR /&gt;"dd" usually breaks upon the first bad block, but you&lt;BR /&gt;can tell it to continue starting one block "later" on&lt;BR /&gt;source and on target LVOLs:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vgXX/lvBAD of=/dev/vgYY/lvGOOD skip=xxx seek=xxx bs=1k # bs=1k for JFS,bs=8k for HFS&lt;BR /&gt;&lt;BR /&gt;where "xxx" would be "0" on the first attempt, then,&lt;BR /&gt;after aborting, "xxx" has to be ONE BIGGER than the&lt;BR /&gt;number where it stopped!&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Wodisch</description>
      <pubDate>Fri, 14 Sep 2001 20:12:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579431#M31600</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2001-09-14T20:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mounting a disk with bad sectors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579432#M31601</link>
      <description>Be careful with the rest of your server because using the -f option to force a mount cal easily cause a system panic.  The bad sector may be in an unused area, part of a directory or maybe a super block.  &lt;BR /&gt;&lt;BR /&gt;The bad spot is going to cause a lot of problems and getting the data off successfully may require a professional service like OnTrack. Be prepared to weigh the value of your data (sounds like it was never backed up) versus the cost of a data recovery service.  The cost could be as much as an entire computer.</description>
      <pubDate>Fri, 14 Sep 2001 21:24:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579432#M31601</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-09-14T21:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mounting a disk with bad sectors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579433#M31602</link>
      <description>Thanks you for your answers. The OS version is 10.20 and the file system type is HFS. The -f option of the mount command didn't work. But I had success with dd, mentioned by Stefan Farrelly and Wodisch. But it was a hard work. Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;Under Solaris you can use the format command to mark disk sectors as bad. Afterwards you must use fsck to bring the filesystem in clean state. Is there anything similar for HP-UX?&lt;BR /&gt;&lt;BR /&gt;Rainer</description>
      <pubDate>Mon, 17 Sep 2001 14:28:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mounting-a-disk-with-bad-sectors/m-p/2579433#M31602</guid>
      <dc:creator>Rainer Becker</dc:creator>
      <dc:date>2001-09-17T14:28:02Z</dc:date>
    </item>
  </channel>
</rss>

