Operating System - HP-UX
1844299 Members
2997 Online
110230 Solutions
New Discussion

Re: /dev directory deleted accidentally

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

/dev directory deleted accidentally

Hello,

Is there any way to recover/recreate /dev directory?

We have ignite and DP backups.

Thanks in advance for your help.
Regards,

Carles

3 REPLIES 3
MarkSyder
Honored Contributor

Re: /dev directory deleted accidentally

Unless you backup /dev to DP I fear that ignite is your only option.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Yang Qin_1
Honored Contributor
Solution

Re: /dev directory deleted accidentally

If you have ignite tape you can restore /dev with the tape. The archive is at 2nd part on the tape (first part is system configure) so you need "rewin" your tape to the 2nd part then run tar command to restore /dev

#mt -t /dev/rmt/#mn fsf 1
#cd /
#tar xfv /dev/rmt/#mn /dev

If you have a Ignite image (on disk), it is a gzipped tar you can run gzcat + tar

#cd /
#gzcat /xx/yy/ignite_image|tar xfv - /dev

Good luck
Yang
Carles Viaplana
Valued Contributor

Re: /dev directory deleted accidentally

Hello,

Finally I restored /dev directory from DP.
Thanks to all for your help.

Regards,

Carles