Operating System - Linux
1752701 Members
6378 Online
108789 Solutions
New Discussion юеВ

Re: How to recover a deleted Device file?

 
palaniappan.sp
Regular Advisor

How to recover a deleted Device file?

Hi,

I want to know normally how we have to recover the deleted file.Beacaz I had deleted one /dev/ttyS0 file(character device file),during next reboot of the system this file is not created.
So how i can recover that file??Is it possible to recover the file thru inode number.But i tried with the inode number its not working.
If anybody came across this type of problem ,let me know that...how to resolve this issue...


Regds,
palani.
Everything is Possible and Anything is Feasible if u try
2 REPLIES 2
Ivan Krastev
Honored Contributor

Re: How to recover a deleted Device file?

See MAKEDEV script.
For example :

cd /dev/
./MAKEDEV -n -v ttyS0

regards,
ivan
Jaime Bolanos Rojas.
Honored Contributor

Re: How to recover a deleted Device file?

Palanianppan,

Agree with the above answer:

http://tldp.org/LDP/sag/html/hwutils.html

Regards,

Jaime.
Work hard when the need comes out.