Computing.Net > Forums > Unix > unix system rebooted while editing

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

unix system rebooted while editing

Reply to Message Icon

Name: girishaila
Date: April 26, 2005 at 08:13:15 Pacific
OS: Solaris 8
CPU/Ram: sparcII 512 MB RAM
Comment:

My unix system got rebooted while editing a file.
I am not finding that file after the reboot.




Sponsored Link
Ads by Google

Response Number 1
Name: thepubba
Date: April 26, 2005 at 12:22:40 Pacific
Reply:

Look in /usr/preserver or /var/preserve. Try running the command:

ex -r

It should print out a list of files that were in the process of being edited when some event caused a terminal disconnect. On a system we have here, I ran the command and got:

On Sat Feb 12 at 16:20 saved 125 lines of file /tmp/hdisk_iostat.sh
On Sat May 15 at 11:29 saved 564 lines of file filesystems
On Mon Mar 21 at 09:15 saved 5 lines of file find_full_perms.sh
On Tue Oct 19 at 15:44 saved 19 lines of file get_info

If I want to recover one of these files such as find_full_perms.sh, I simply type:

ex -r find_full_perms.sh

Since you are in an editor, simple type:

:wq!

and your file should be magically saved.


0
Reply to Message Icon

Related Posts

See More


sed problem with regular ... Help with tar and gzip fi...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: unix system rebooted while editing

Unix System Keyboad Echo www.computing.net/answers/unix/unix-system-keyboad-echo/4582.html

Where to find c head files in unix system? No content www.computing.net/answers/unix/where-to-find-c-head-files-in-unix-system-no-content/957.html

I Need a UNIX system on my 486 www.computing.net/answers/unix/i-need-a-unix-system-on-my-486/2294.html