LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2013, 04:27 PM   #1
chonk0
LQ Newbie
 
Registered: Apr 2013
Posts: 12

Rep: Reputation: Disabled
blank file after system reboot


Hi,

I had a file called backup.sh open last night in VI.

My windows system got auto rebooted and my terminal was closed down. Today the file is empty.

I tried vi -r backup.sh but there was no swap file.

Also I noticed the ownership and permissions for the file are gone:

?--------- ? ? ? ? ? backup.sh

What could have happened and is there anyway I could try to retrieve the content of the file?

Thanks
 
Old 12-30-2013, 01:57 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Quote:
Originally Posted by chonk0 View Post
What could have happened and
When your "system got auto rebooted" the application possibly wasn't able to write out contents and close the file properly.


Quote:
Originally Posted by chonk0 View Post
is there anyway I could try to retrieve the content of the file?
If part of the file was saved try testdisk or photorec or a hexeditor.
 
Old 12-30-2013, 09:09 AM   #3
chonk0
LQ Newbie
 
Registered: Apr 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Apparently this was RAID issues. After rebooting the file worked again. Thanks!
 
Old 12-30-2013, 09:19 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Quote:
Originally Posted by chonk0 View Post
Apparently this was RAID issues.
Thanks for posting your solution!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to auto mount a file system on reboot gvsbnarayana Linux - Newbie 6 11-05-2011 09:37 AM
file system will not mount after reboot V Srivallabh Linux - General 1 06-10-2009 10:27 AM
Create and file system without reboot server richardchancs Linux - Enterprise 6 09-27-2006 02:33 PM
force file system integrity check on reboot paul_mat Linux - Software 1 05-30-2006 10:02 PM
blank screen at logon-file system not clean AbZu Mandriva 2 09-22-2005 07:50 AM


All times are GMT -5. The time now is 09:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration