help restoring a corrupt /dev file
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > help restoring a corrupt /dev file




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    help restoring a corrupt /dev file  
asumoactingbig


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:52 PM

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?





[ Post a follow-up to this message ]



    Re: help restoring a corrupt /dev file  
Andreas Kahari


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:52 PM

In article <bac833fe.0311031205.6c031f13@posting.google.com>, asumoactingbig wrote:
quote:
> 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




[ Post a follow-up to this message ]



    Re: help restoring a corrupt /dev file  
phn@icke-reklam.ipsec.nu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:52 PM

asumoactingbig <asumoactingbig@yahoo.com> wrote:
quote:
> 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.




[ Post a follow-up to this message ]



    Re: help restoring a corrupt /dev file  
asumoactingbig


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:52 PM

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?


phn@icke-reklam.ipsec.nu wrote in message news:<bo6ipb$29vk$4@nyheter.ipsec.se>...
quote:
> asumoactingbig <asumoactingbig@yahoo.com> wrote: > > mknod is the command to create devicefiles. What parameters you need > is a function of what OS and version you use.




[ Post a follow-up to this message ]



    Re: help restoring a corrupt /dev file  
phn@icke-reklam.ipsec.nu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:52 PM

asumoactingbig <asumoactingbig@yahoo.com> wrote:
quote:
> I'm running OpenBSD 3.2 (i386). Will
quote:
> /dev/MAKEDEV all
quote:
> screw up any device files for the rest of the system? Can I just run
That should be ok.
quote:
> /dev/MAKEDEV st0
quote:
> to rebuild the file I need?
Yes. Thats the best solution [QUOTE] > phn@icke-reklam.ipsec.nu wrote in message news:<bo6ipb$29vk$4@nyheter.ipse c.se>... -- 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.




[ Post a follow-up to this message ]



    Re: help restoring a corrupt /dev file  
asumoactingbig


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:52 PM

phn@icke-reklam.ipsec.nu wrote in message news:<bo7j24$2kfk$1@nyheter.ipsec.se>...
quote:
> asumoactingbig <asumoactingbig@yahoo.com> wrote: > > > > That should be ok. > > > 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?




[ Post a follow-up to this message ]



    Re: help restoring a corrupt /dev file  
phn@icke-reklam.ipsec.nu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:52 PM

asumoactingbig <asumoactingbig@yahoo.com> wrote:
quote:
> phn@icke-reklam.ipsec.nu wrote in message news:<bo7j24$2kfk$1@nyheter.ipse c.se>... [QUOTE] > Just tried it and it ran OK but I still get
quote:
> mt: /dev/rst0: Input/output error
quote:
> Tried running /dev/MAKEDEV rst0 but it tells me
quote:
> rst0: unknown device
quote:
> 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.




[ Post a follow-up to this message ]



    Re: help restoring a corrupt /dev file  
Bill Marcum


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 09:52 PM

On 4 Nov 2003 06:04:02 -0800, asumoactingbig
<asumoactingbig@yahoo.com> wrote:
quote:
> phn@icke-reklam.ipsec.nu wrote in message news:<bo7j24$2kfk$1@nyheter.ipse c.se>... > > > 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.




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:24 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register