Re: how to recovry /dev/null



Erfan <zhaoerfan@xxxxxxxxx> writes:

On 2月16日, 下午11时36分, Måns Rullgård <m...@xxxxxxxxx> wrote:
Erfan <zhaoer...@xxxxxxxxx> writes:
hi, i made a mistake a seconds ago.
i delete /dev/null,
now,i am still in the systerm without reboot. how can i deal with it?
is there any way to recovery?

mknod /dev/null c 1 3

yes,i google it and find a way to solve this:
1.mknod /dev/null c 2 2
2. chmod 666 /dev/null
God bless my carelessness and your kind hearted

The Documentation/devices.txt and what I've got on my system agree
with Måns (i.e. 1 3), not with what you found on the web. 2 2 should
be a psdeudo-tty.
.



Relevant Pages

  • Re: how to recovry /dev/null
    ... now,i am still in the systerm without reboot. ... is there any way to recovery? ... mknod /dev/null c 1 3 ...
    (comp.os.linux.development.apps)
  • Re: how to recovry /dev/null
    ... now,i am still in the systerm without reboot. ... is there any way to recovery? ... exprcting your suggestions ...
    (comp.unix.programmer)
  • Re: how to recovry /dev/null
    ... Joe Pfeiffer wrote: ... now,i am still in the systerm without reboot. ... is there any way to recovery? ...
    (comp.os.linux.development.apps)
  • Re: how to recovry /dev/null
    ... now,i am still in the systerm without reboot. ... is there any way to recovery? ... exprcting your suggestions ...
    (comp.unix.programmer)
  • Re: how to recovry /dev/null
    ... now,i am still in the systerm without reboot. ... is there any way to recovery? ... mknod /dev/null c 1 3 ...
    (comp.os.linux.development.apps)