This perfectly worked.

Thanks to all btw.

2009/2/24 Josh Grosse <[email protected]>:
> On Tue, 24 Feb 2009 19:43:18 +0100, Jean-Francois wrote
>> All,
>>
>> I just forget the dot !! in the 'rm -r ./dev' so I have no /dev anymore
>> on my server box.
>> One can tell me if this is possible to backup the system without freshh
>> install ?
>> This is a i386 4.4 OpenBSD. One could eventually send me a way or
>> another the full /dev in case this option actually works ?
>>
>> Thanks
>> JF
>
> JF, I've missed the rest of your conversation, but ... here's a
> quick-and-dirty recovery procedure:
>
> Step 1.  Boot the ramdisk kernel, either from the hard drive (if you
installed
> it) or from your installation media.  If you installed it, at the boot
prompt,
> type "bsd.rd":
>
>   boot> bsd.rd
>
> At the Install/Upgrade/Shell prompt, select the shell.
>
> Step 2.  Mount your root partition.  This is usually the "a" partition on
your
> first drive (sd0 or wd0).  e.g.:
>
>   # mount /dev/wd0a /mnt
>
> Step 3.  Create a dev partition:
>
>   # mkdir -p /mnt/dev
>
> Step 4:  Copy the MAKEDEV script from the ramdisk kernel's /dev to
/mnt/dev:
>
>   # cp -p /dev/MAKEDEV /mnt/dev
>
> Step 5: Change your working directory to /mnt/dev:
>
>   # cd /mnt/dev
>
> Step 6:  Recreate all of your device nodes:
>
>   # sh MAKEDEV all
>
> ----
>
> Good luck!

Reply via email to