LinuxQuestions.org
Review your favorite Linux distribution.
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-24-2011, 01:43 PM   #1
lonesoac0
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 95

Rep: Reputation: 4
Disappearing files after waking up


Hello all,

I am using Debian Squeeze with an external USB hard drive. I have it scheduled that my machine goes to sleep at 10pm every night and wakes up at 10am everyday. Eventually, files on the external hard drive will "disappear" after waking up from sleep mode. When I run ls on /media/usb0/ I will get: "ls: cannot access /media/usb0/FILE_NAME: Input/output error". This error applies to all files and folders on the external drive. I have tried unmounting and remounting the drive with no success. The only way that I can get my files and folders back is to reset the machine. After the reset, all files and folders are fine. Is there anything that I should be looking for in particular in my /var/log/messages file??
 
Old 12-25-2011, 08:38 AM   #2
lonesoac0
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 95

Original Poster
Rep: Reputation: 4
Anyone???
 
Old 12-25-2011, 07:13 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Try making un-mounting part of the "go to sleep" process .... from
the perspective of the file-system the device may indeed "disappear"
for that part of the kernel goes dormant, which is the equivalent
of pulling the chord w/o unmounting.

And for future reference: I recommend against "responding" to your
own posts/threads, as this takes you of the zero-reply list; being
on it has TWO advantages: your thread percolates up to the top
of the forums twice, and there are people who explicitly hunt for
zero-reply posts; they may just not have been on between your
first and second post.



Cheers,
Tink

Last edited by Tinkster; 12-25-2011 at 07:15 PM.
 
Old 12-25-2011, 09:19 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,613

Rep: Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884
This sounds like a problem I have with an ESATA drive where the drive can change from sda to sde at boot so when it was listed in fstab by name it would intermittently fail to mount. I cured it by using UUIDs in fstab instead so no matter whether it's sda or sde it will still mount to the correct place.
 
Old 12-26-2011, 12:17 AM   #5
lonesoac0
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 95

Original Poster
Rep: Reputation: 4
Ok, I will try out un-mounting and UUIDs tomorrow. THank you!
 
  


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
Linux Samba Share and Mac OS X - Files Disappearing? klugenratte Linux - Software 15 12-25-2011 11:58 PM
XFS - Files disappearing 1veedo Linux - Software 1 12-16-2011 07:10 PM
[SOLVED] LVM2 in use, files are disappearing! armchair rambo Linux - Software 7 10-26-2011 01:03 AM
[SOLVED] Mouse disappearing after waking up PurduePete Fedora 3 07-19-2011 08:10 PM
[SOLVED] unison/iwatch sync - files disappearing from server edderkop Linux - Networking 2 06-08-2010 07:13 AM


All times are GMT -5. The time now is 04:29 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