Ask a Question related to Linux / Unix Administration, Design and Development.
-
asumoactingbig #1
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
-
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... -
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... -
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... -
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... -
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... -
Andreas Kahari #2
Re: help restoring a corrupt /dev file
In article <bac833fe.0311031205.6c031f13@posting.google.com >, asumoactingbig wrote:
What unix is this? on most free unices you just> 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?
cd /dev
./MAKEDEV all
as root to rebuild all devices...
--
Andreas Kähäri
Andreas Kahari Guest
-
phn@icke-reklam.ipsec.nu #3
Re: help restoring a corrupt /dev file
asumoactingbig <asumoactingbig@yahoo.com> wrote:
mknod is the command to create devicefiles. What parameters you need> 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?
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
-
asumoactingbig #4
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
-
phn@icke-reklam.ipsec.nu #5
Re: help restoring a corrupt /dev file
asumoactingbig <asumoactingbig@yahoo.com> wrote:
> I'm running OpenBSD 3.2 (i386). Will> /dev/MAKEDEV allThat should be ok.> screw up any device files for the rest of the system? Can I just run
> /dev/MAKEDEV st0Yes. Thats the best solution> 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.
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
-
asumoactingbig #6
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> Yes. Thats the best solution> > to rebuild the file I need?
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
-
Bill Marcum #7
Re: help restoring a corrupt /dev file
On 4 Nov 2003 06:04:02 -0800, asumoactingbig
<asumoactingbig@yahoo.com> wrote:I don't know about BSD, but in Linux, even though a /dev/whatever> [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>> Yes. Thats the best solution>> > to rebuild the file I need?
>
> 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?
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
-
phn@icke-reklam.ipsec.nu #8
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>> Yes. Thats the best solution>> > to rebuild the file I need?> 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 deviceDunno. What does ls -l /dev/st* show ?> What am I missing?
"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
-
Adam Price #9
Re: help restoring a corrupt /dev file
In news:bac833fe.0311040604.20994171@posting.google.c om,
asumoactingbig <asumoactingbig@yahoo.com> typed:Try removing the rst0 file first. Under other flavours> Just tried it and it ran OK but I still get
>
> mt: /dev/rst0: Input/output error
>
of unix I have found that MAKEDEV will only make device
files which are missing.
Adam
Adam Price Guest



Reply With Quote

