Professional Web Applications Themes

moving files from bad sectors - FreeBSD

I have a hard disk that looks like its going out. So far, there are 6 reported crc errors. However, I have a file that I would like to read as much as possible of using tar, but the whole job stops like this: # tar cvf /dev/nrsa0 /home > /root/tarhome.cat tar: Removing leading `/' from member names tar: /home/smbshare1/BUDGETS/RXS0008 fy04 kellogg report and summary.xls: Read error at byte 14848, reading 10240 bytes: Input/output error tar: Error exit delayed from previous errors When attempting to cp that same file I get another error and the cp stops. Are there any ...

  1. #1

    Default moving files from bad sectors

    I have a hard disk that looks like its going out.

    So far, there are 6 reported crc errors. However, I have a file that
    I would like to read as much as possible of using tar, but the whole
    job stops like this:


    # tar cvf /dev/nrsa0 /home > /root/tarhome.cat
    tar: Removing leading `/' from member names
    tar: /home/smbshare1/BUDGETS/RXS0008 fy04 kellogg report and
    summary.xls: Read error at byte 14848, reading 10240 bytes:
    Input/output error
    tar: Error exit delayed from previous errors

    When attempting to cp that same file I get another error and the cp
    stops.

    Are there any tools that will permit me to cp as much of this file as
    possible, ie all sectors up to, and then past, the bad spot?

    as another possibility, are there any tools that I can use with fsck
    that would mark the sector as bad so its not reused?

    David Bear
    phone: 480-965-8257
    fax: 480-965-9189
    College of Public Programs/ASU
    Wilson Hall 232
    Tempe, AZ 85287-0803
    "Beware the IP portfolio, everyone will be suspect of trespassing"
    David Bear Guest

  2. #2

    Default Re: moving files from bad sectors

    > I have a hard disk that looks like its going out.
    >
    > So far, there are 6 reported crc errors. However, I have a file that
    > I would like to read as much as possible of using tar, but the whole
    > job stops like this:
    >
    >
    > # tar cvf /dev/nrsa0 /home > /root/tarhome.cat
    > tar: Removing leading `/' from member names
    > tar: /home/smbshare1/BUDGETS/RXS0008 fy04 kellogg report and
    > summary.xls: Read error at byte 14848, reading 10240 bytes:
    > Input/output error
    > tar: Error exit delayed from previous errors
    >
    > When attempting to cp that same file I get another error and the cp
    > stops.
    >
    > Are there any tools that will permit me to cp as much of this file as
    > possible, ie all sectors up to, and then past, the bad spot?
    dd will let you specify parts of files to skip over. You will probably
    have to do some fiddling with the arguements to get it just right for your
    file.
    > as another possibility, are there any tools that I can use with fsck
    > that would mark the sector as bad so its not reused?
    --
    Ean Kingston

    E-Mail: ean_AT_hedron_DOT_org
    URL: [url]http://www.hedron.org/[/url]

    Ean Kingston Guest

  3. #3

    Default Re: moving files from bad sectors

    On Wed, Feb 16, 2005 at 11:57:02AM -0500, Ean Kingston wrote:
    >
    > > I have a hard disk that looks like its going out.
    > >
    > > So far, there are 6 reported crc errors. However, I have a file that
    > > I would like to read as much as possible of using tar, but the whole
    > > job stops like this:
    > >
    > >
    > > # tar cvf /dev/nrsa0 /home > /root/tarhome.cat
    > > tar: Removing leading `/' from member names
    > > tar: /home/smbshare1/BUDGETS/RXS0008 fy04 kellogg report and
    > > summary.xls: Read error at byte 14848, reading 10240 bytes:
    > > Input/output error
    > > tar: Error exit delayed from previous errors
    > >
    > > When attempting to cp that same file I get another error and the cp
    > > stops.
    > >
    > > Are there any tools that will permit me to cp as much of this file as
    > > possible, ie all sectors up to, and then past, the bad spot?
    >
    > dd will let you specify parts of files to skip over. You will probably
    > have to do some fiddling with the arguements to get it just right for your
    > file.
    Specifically, try using the "conv=noerror" option with dd.

    Nathan

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (GNU/Linux)

    iD8DBQFCE4MOO0ZIEthSfkkRAir/AJ46oE+LQTdIWHOWB6tBKLVTuMT4CACfZUVr
    +/sK+17S++TB7T454xJpI/w=
    =jyx3
    -----END PGP SIGNATURE-----

    Nathan Kinkade Guest

Similar Threads

  1. Moving Files
    By paulwill90 in forum Macromedia Contribute General Discussion
    Replies: 1
    Last Post: February 24th, 04:46 AM
  2. Moving files in ct3
    By javabean13 in forum Macromedia Contribute General Discussion
    Replies: 2
    Last Post: September 17th, 07:13 AM
  3. Extracting boot sectors
    By Alejandro Pulver in forum FreeBSD
    Replies: 0
    Last Post: February 23rd, 07:05 PM
  4. Managing bad sectors during install
    By Pásztor Richárd in forum FreeBSD
    Replies: 3
    Last Post: February 17th, 11:39 PM
  5. moving files on LAN
    By Bill in forum Windows Networking
    Replies: 2
    Last Post: July 13th, 06:40 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139