LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-12-2009, 02:50 PM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian
Posts: 1,432

Rep: Reputation: 110Reputation: 110
Question Hard disk vanished! What happened?


Something weird just happened while I was doing some backups from /dev/sda to an external disk with rsync over USB.

I have a program that monitors changes in a certain folder in /dev/sdb. The program itself is not relevant to this story except that it popped up a window and told me that the folder could not be found. I frowned and checked. The folder was there, but empty. There should have been many folders and files in it.

So I opened another Koqueror window and realized the whole landscape was rather strange. Many directories were missing. Apparently, they all had been deleted! I wasn't in horror because I do have backups, but how did that happen under my nose while I was doing backups??? I felt guilty, I must have done something stupid! I rechecked the rsync line I had just run and no, it didn't seem to have any harmful potential:

time rsync -auHvx --delete /home/luc /media/homebackups/

Although I had used --delete, /home/luc is on disk sda and /media was the external USB disk. The missing disk was /dev/sdb.

Then I checked 'df -h'. The hard disk was there and full to the brim. It didn't look like anything had been deleted. But I could no longer find about 90% of its folders, either with Konqueror or command line. They were all gone!

I decided to unmount it. It is an encrypted disk, but I didn't run 'cryptsetup luksClose', I just unmounted it. Successful. Then I tried to mount it again... no dice! I could see it under /dev/mapper, but it wouldn't mount (and I forgot the error message). I was afraid it might have crashed. I ran 'fdisk -l' and... it was gone! Oh, no. That was it, my disk had crashed!

So I rebooted and the BIOS could find the disk as usual. I restarted the system and... the disk is running, all folders are accessible again, it's like nothing unusual ever happened.

I had never seen or heard about anything like that. Have you?
 
Old 09-13-2009, 02:13 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
There are a lot of things that may have happened.
Look in your syslogs for clues.

It looks like you suddenly lost permission to view the content of the directory.
Whatever went missing was reset or restarted when the kernel booted.
It is pretty unusual these days, if you could narrow down what caused it, it would probably help the devs.
 
  


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
Copy of IBM Server hard disk data to Another USB External Hard disk mazharcdn Linux - Server 2 09-02-2009 12:41 AM
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
knoppix 3.4: hard disks have vanished!! dvgt Linux - Newbie 6 07-15-2004 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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