SUMMARY: lost files in my /dev directory

From: Fred R. Ziegler (fziegler@bmc.com)
Date: Sat Dec 04 1999 - 18:13:30 CST


Again, a BIG THANKS to this list, and to the following for their replies:

Christophe Colle <christophe.colle@telenet.be>
John Hackett <hackett.john@gene.com>
Pete and Nancy Joyce <pnjoyce@totacc.com>
Christian Pinheiro <pinheiro@veritel.com.br>
Sean Harding <sharding@well.com>
Michael Wang <mwang@tech.cicg.ml.com>

Christophe suggested the following technique:
 Hmmm I guess the best thing to do, is to boot from cdrom, mount your
 old disk on /mnt, and make the links with:
 cd /dev ; tar cvf - . | ( cd /mnt/dev ; tar xf - )

 That should do the job I think.... I never deleted my /dev, so I'm not
 sure ;-)

 cc

That method mostly worked exactly as shown, but I did have to exclude the
/dev/fd files before making the copy.

A quick reboot afterwards, and all was well again!

Thanks all!

"Fred R. Ziegler" wrote:

> HELP! A few minutes ago I mistakenly :
> cd /dev
> rm *
>
> soon the machine crashed.
>
> now, when I do at the ok> prompt. boot -ras
>
> after it prompts for the physical name of the boot device, it panics .
>
> is there any magic to reconstructing the /dev files I had lost??
>

Regards,
Fred

-----
Fred R. Ziegler <fred_ziegler@bmc.com> ph:+1-781-663-4617
BMC Software. http://www.bmc.com fx:+1-781-890-0000
880 Winter St. Bldg. #4 Room 1.075
Waltham,MA 02254-9111 USA
Internet Society Member (#1315080) since Feb 1992



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:34 CDT