LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 03:27 PM   #1
chonk0
LQ Newbie
 
Registered: Apr 2013
Posts: 16

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, 12:57 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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, 08:09 AM   #3
chonk0
LQ Newbie
 
Registered: Apr 2013
Posts: 16

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

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


Reply



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 08:37 AM
file system will not mount after reboot V Srivallabh Linux - General 1 06-10-2009 09:27 AM
Create and file system without reboot server richardchancs Linux - Enterprise 6 09-27-2006 01:33 PM
force file system integrity check on reboot paul_mat Linux - Software 1 05-30-2006 09:02 PM
blank screen at logon-file system not clean AbZu Mandriva 2 09-22-2005 06:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:09 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
Open Source Consulting | Domain Registration