help restoring a corrupt /dev file

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default help restoring a corrupt /dev file

    I'm in a dilley of a pickle here. In my great ignorance I
    accidentally corrupted my /dev/rst0 file by cp'ing another file to it.
    (dumb, I know) Of course all my backups are on tape and now, when I
    try to access the drive I get an I/O error. Not too surprising I
    suppose. I've got a good copy of my filesystem on tape so if I could
    manage to run a restore session I think I could replace the file. How
    do I fix this?
    asumoactingbig Guest

  2. Similar Questions and Discussions

    1. jump rope.dir is not a director file + file is corrupt
      I have a user that has created a .dir file using Director 8.5. After modifying and saving, she opens the file the next day only to be met with this...
    2. Restoring Fireworks file assoc. without re-installing
      Hi, I know there is an argument for returning file associations to their original programs once Fireworks is installed, but is it possible to...
    3. MX File gets corrupt!
      Hi guys, Our studio (5 macs) running 10.2.5 and OSX Server version 10.2.3 is experiencing sporadic corruption problems with MX as well. I've...
    4. Help with fsdb restoring a file
      My office recently had the need to restore a file that was not backed up. We found the fsdb directions but could not get it to work for us. We...
    5. cmd32.exe file corrupt
      "Brian" <gnfnr980@hotmail.com> wrote in message news:020501c34571$94d3b7f0$a301280a@phx.gbl... Cmd32.Exe is the virus or worm. It is not a...
  3. #2

    Default Re: help restoring a corrupt /dev file

    In article <bac833fe.0311031205.6c031f13@posting.google.com >, asumoactingbig wrote:
    > I'm in a dilley of a pickle here. In my great ignorance I
    > accidentally corrupted my /dev/rst0 file by cp'ing another file to it.
    > (dumb, I know) Of course all my backups are on tape and now, when I
    > try to access the drive I get an I/O error. Not too surprising I
    > suppose. I've got a good copy of my filesystem on tape so if I could
    > manage to run a restore session I think I could replace the file. How
    > do I fix this?
    What unix is this? on most free unices you just

    cd /dev
    ./MAKEDEV all

    as root to rebuild all devices...

    --
    Andreas Kähäri
    Andreas Kahari Guest

  4. #3

    Default Re: help restoring a corrupt /dev file

    asumoactingbig <asumoactingbig@yahoo.com> wrote:
    > I'm in a dilley of a pickle here. In my great ignorance I
    > accidentally corrupted my /dev/rst0 file by cp'ing another file to it.
    > (dumb, I know) Of course all my backups are on tape and now, when I
    > try to access the drive I get an I/O error. Not too surprising I
    > suppose. I've got a good copy of my filesystem on tape so if I could
    > manage to run a restore session I think I could replace the file. How
    > do I fix this?
    mknod is the command to create devicefiles. What parameters you need
    is a function of what OS and version you use.

    --
    Peter Håkanson
    IPSec Sverige ( At Gothenburg Riverside )
    Sorry about my e-mail address, but i'm trying to keep spam out,
    remove "icke-reklam" if you feel for mailing me. Thanx.
    phn@icke-reklam.ipsec.nu Guest

  5. #4

    Default Re: help restoring a corrupt /dev file

    I'm running OpenBSD 3.2 (i386). Will

    /dev/MAKEDEV all

    screw up any device files for the rest of the system? Can I just run

    /dev/MAKEDEV st0

    to rebuild the file I need?


    [email]phn@icke-reklam.ipsec.nu[/email] wrote in message news:<bo6ipb$29vk$4@nyheter.ipsec.se>...
    > asumoactingbig <asumoactingbig@yahoo.com> wrote:
    > > I'm in a dilley of a pickle here. In my great ignorance I
    > > accidentally corrupted my /dev/rst0 file by cp'ing another file to it.
    > > (dumb, I know) Of course all my backups are on tape and now, when I
    > > try to access the drive I get an I/O error. Not too surprising I
    > > suppose. I've got a good copy of my filesystem on tape so if I could
    > > manage to run a restore session I think I could replace the file. How
    > > do I fix this?
    >
    > mknod is the command to create devicefiles. What parameters you need
    > is a function of what OS and version you use.
    asumoactingbig Guest

  6. #5

    Default Re: help restoring a corrupt /dev file

    asumoactingbig <asumoactingbig@yahoo.com> wrote:
    > I'm running OpenBSD 3.2 (i386). Will
    > /dev/MAKEDEV all
    > screw up any device files for the rest of the system? Can I just run
    That should be ok.
    > /dev/MAKEDEV st0
    > to rebuild the file I need?
    Yes. Thats the best solution

    > [email]phn@icke-reklam.ipsec.nu[/email] wrote in message news:<bo6ipb$29vk$4@nyheter.ipsec.se>...
    >> asumoactingbig <asumoactingbig@yahoo.com> wrote:
    >> > I'm in a dilley of a pickle here. In my great ignorance I
    >> > accidentally corrupted my /dev/rst0 file by cp'ing another file to it.
    >> > (dumb, I know) Of course all my backups are on tape and now, when I
    >> > try to access the drive I get an I/O error. Not too surprising I
    >> > suppose. I've got a good copy of my filesystem on tape so if I could
    >> > manage to run a restore session I think I could replace the file. How
    >> > do I fix this?
    >>
    >> mknod is the command to create devicefiles. What parameters you need
    >> is a function of what OS and version you use.
    --
    Peter Håkanson
    IPSec Sverige ( At Gothenburg Riverside )
    Sorry about my e-mail address, but i'm trying to keep spam out,
    remove "icke-reklam" if you feel for mailing me. Thanx.
    phn@icke-reklam.ipsec.nu Guest

  7. #6

    Default Re: help restoring a corrupt /dev file

    [email]phn@icke-reklam.ipsec.nu[/email] wrote in message news:<bo7j24$2kfk$1@nyheter.ipsec.se>...
    > asumoactingbig <asumoactingbig@yahoo.com> wrote:
    > > I'm running OpenBSD 3.2 (i386). Will
    >
    > > /dev/MAKEDEV all
    >
    > > screw up any device files for the rest of the system? Can I just run
    >
    > That should be ok.
    >
    > > /dev/MAKEDEV st0
    >
    > > to rebuild the file I need?
    > Yes. Thats the best solution

    Just tried it and it ran OK but I still get

    mt: /dev/rst0: Input/output error

    Tried running /dev/MAKEDEV rst0 but it tells me

    rst0: unknown device

    What am I missing?
    asumoactingbig Guest

  8. #7

    Default Re: help restoring a corrupt /dev file

    On 4 Nov 2003 06:04:02 -0800, asumoactingbig
    <asumoactingbig@yahoo.com> wrote:
    > [email]phn@icke-reklam.ipsec.nu[/email] wrote in message news:<bo7j24$2kfk$1@nyheter.ipsec.se>...
    >> asumoactingbig <asumoactingbig@yahoo.com> wrote:
    >> > I'm running OpenBSD 3.2 (i386). Will
    >>
    >> > /dev/MAKEDEV all
    >>
    >> > screw up any device files for the rest of the system? Can I just run
    >>
    >> That should be ok.
    >>
    >> > /dev/MAKEDEV st0
    >>
    >> > to rebuild the file I need?
    >> Yes. Thats the best solution
    >
    >
    > Just tried it and it ran OK but I still get
    >
    > mt: /dev/rst0: Input/output error
    >
    > Tried running /dev/MAKEDEV rst0 but it tells me
    >
    > rst0: unknown device
    >
    > What am I missing?
    I don't know about BSD, but in Linux, even though a /dev/whatever
    exists, you might need to load a module for some devices. lsmod lists
    the modules that are currently loaded.

    --
    You can go anywhere you want if you look serious and carry a clipboard.
    Bill Marcum Guest

  9. #8

    Default Re: help restoring a corrupt /dev file

    asumoactingbig <asumoactingbig@yahoo.com> wrote:
    > [email]phn@icke-reklam.ipsec.nu[/email] wrote in message news:<bo7j24$2kfk$1@nyheter.ipsec.se>...
    >> asumoactingbig <asumoactingbig@yahoo.com> wrote:
    >> > I'm running OpenBSD 3.2 (i386). Will
    >>
    >> > /dev/MAKEDEV all
    >>
    >> > screw up any device files for the rest of the system? Can I just run
    >>
    >> That should be ok.
    >>
    >> > /dev/MAKEDEV st0
    >>
    >> > to rebuild the file I need?
    >> Yes. Thats the best solution
    > Just tried it and it ran OK but I still get
    > mt: /dev/rst0: Input/output error
    > Tried running /dev/MAKEDEV rst0 but it tells me
    > rst0: unknown device
    > What am I missing?
    Dunno. What does ls -l /dev/st* show ?

    "Input/output error" occurs when tapedrives are "not ready" or simular.

    Also do a dmesg and search for 'st'

    The command 'mt status' could give "interesting" output.

    --
    Peter Håkanson
    IPSec Sverige ( At Gothenburg Riverside )
    Sorry about my e-mail address, but i'm trying to keep spam out,
    remove "icke-reklam" if you feel for mailing me. Thanx.
    phn@icke-reklam.ipsec.nu Guest

  10. #9

    Default Re: help restoring a corrupt /dev file

    In news:bac833fe.0311040604.20994171@posting.google.c om,
    asumoactingbig <asumoactingbig@yahoo.com> typed:
    > Just tried it and it ran OK but I still get
    >
    > mt: /dev/rst0: Input/output error
    >
    Try removing the rst0 file first. Under other flavours
    of unix I have found that MAKEDEV will only make device
    files which are missing.
    Adam


    Adam Price Guest

Posting Permissions

  • You may not post new threads
  • You may 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