LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-04-2009, 08:00 PM   #1
allancth
Member
 
Registered: Mar 2009
Posts: 37

Rep: Reputation: 15
Hard Disk Failure?


Hi all,

I am using SecureCRT. When I go inside the directory of the external HD, I do an ls, the following was displayed.

?--------- ? ? ? ? ? archive
?--------- ? ? ? ? ? backup

The archive and backup directory are blinking. When I cd into archive, it says permission is denied. I was using root.

Can someone tell me what is happening? Please help.

Regards,
Allan
 
Old 05-04-2009, 08:45 PM   #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
Please add all info about the device and any history of problems, failed commands and whatever you think could be interesting. And is this by any chance a Reiser or XFS formatted partition?
 
Old 05-04-2009, 08:59 PM   #3
allancth
Member
 
Registered: Mar 2009
Posts: 37

Original Poster
Rep: Reputation: 15
I am not sure what type of partition is it. It's an external hard disk that I used to do a daily backup of important files. Can you guide me on how to check the partition type?
 
Old 05-05-2009, 02:35 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
fdisk -l (as root)
 
Old 05-05-2009, 06:17 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
What I recommend is that if it supports SMART, run:

Code:
smartctl -a /dev/sda
Where /dev/sda is the device.

It also has the ability to run diagnostics test on it, see 'man smartctl'.
 
Old 05-06-2009, 12:09 AM   #6
allancth
Member
 
Registered: Mar 2009
Posts: 37

Original Poster
Rep: Reputation: 15
I rebooted the linux box. Now the drive is not showing when I do a df command. However, I can still access to the folder. Previously, it was mounted to /media. Now, when I go into /media, all the files are gone. That means the blinking folder were not showing at all. Can I still retrieve the data? It is very important. Please help...

The result of fdisk -l:

Disk /dev/sda: 73.2 GB, 73294413824 bytes
255 heads, 63 sectors/track, 8910 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 8910 71465152+ 8e Linux LVM

Disk /dev/sdb: 219.8 GB, 219880095744 bytes
255 heads, 63 sectors/track, 26732 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 26732 214724758+ 8e Linux LVM

The result of df:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vol0-root
1032088 761836 217824 78% /
/dev/sda1 101086 31477 64390 33% /boot
/dev/mapper/vol1-data
144497320 80807696 56350744 59% /data
none 2073768 0 2073768 0% /dev/shm
/dev/mapper/vol0-home
5160576 43760 4854672 1% /home
/dev/mapper/vol0-mkcdrec
2064208 970312 989040 50% /mkcdrec
/dev/mapper/vol0-pronto
5160576 802812 4095620 17% /pro
/dev/mapper/vol1-test
61927420 10330964 48451240 18% /test
/dev/mapper/vol0-tmp 5160576 79684 4818748 2% /tmp
/dev/mapper/vol0-usr 5160576 3113044 1785388 64% /usr
/dev/mapper/vol0-var 5160576 437680 4460752 9% /var

The result of cat /etc/fstab:

/dev/vol0/root / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/vol1/data /data ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/vol0/home /home ext3 defaults 1 2
/dev/vol0/mkcdrec /mkcdrec ext3 defaults 1 2
/dev/vol0/pronto /pro ext3 defaults 1 2
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/vol1/test /test ext3 defaults 1 2
/dev/vol0/tmp /tmp ext3 defaults 1 2
/dev/vol0/usr /usr ext3 defaults 1 2
/dev/vol0/var /var ext3 defaults 1 2
/dev/vol0/swap swap swap defaults 0 0
/dev/sdc1 /media/archive ext2 suid,dev,exec 0 0
 
Old 05-06-2009, 04:09 AM   #7
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 allancth View Post
I rebooted the linux box. Now the drive is not showing when I do a df command.
Rebooting usually doesn't make that kind of hardware problems disappear. Could check your syslog and dmesg now and at the time of the directory access problem for any related error messages.
 
Old 05-06-2009, 09:43 AM   #8
allancth
Member
 
Registered: Mar 2009
Posts: 37

Original Poster
Rep: Reputation: 15
I do not know what I am looking at when I vi the dmesg log file. Can someone guide me?

And the syslog file, there are more than 10 syslog files. Which one should I be looking at?
 
Old 05-06-2009, 05:04 PM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
If you can't find anything odd maybe just attach one dmesg (if your distro saves copies, that is) and one syslog from the time you started experiencing problems?
 
Old 05-06-2009, 06:46 PM   #10
allancth
Member
 
Registered: Mar 2009
Posts: 37

Original Poster
Rep: Reputation: 15
Hi,

I got dmesg from /var/log and syslog from /etc/sysconfig.

There are several other syslog. They are located at

/etc/webmin/syslog
/etc/logrotate.d/syslog
/etc/sysconfig/syslog
/etc/rc.d/init.d/syslog
/var/lock/subsys/syslog
/var/opt/mkcdrec/busybox/include/config/config/feature/ipc/syslog
/usr/libexec/webmin/mscstyle3/syslog
/usr/libexec/webmin/caldera/syslog
/usr/libexec/webmin/syslog
/usr/libexec/webmin/blue-theme/syslog

I don't know which one is the correct one. None of the files looks like log.
Attached Files
File Type: txt syslog.txt (610 Bytes, 5 views)
File Type: txt dmesg.txt (25.1 KB, 4 views)
 
Old 05-06-2009, 08:04 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
Syslog should be /var/log/messages (see /etc/syslog.conf). Dmesg shows nothing overly interesting. If you're not into log interpreting you could run logwatch on syslog. With "--archives --range All" it will search logrotated ones as well and pick out kernel errors real easy.

Last edited by unSpawn; 05-06-2009 at 08:06 PM.
 
Old 05-06-2009, 08:49 PM   #12
allancth
Member
 
Registered: Mar 2009
Posts: 37

Original Poster
Rep: Reputation: 15
Hi,

Attached is the message log file retrieve from /var/log.

Just now, I unplugged the external drive and plug it in again. Normally, it should auto mount. But nothing happened when I try just now.

Is the external hard disk gone? Is there anyway I can still retrieve the data? There are important data inside. Please help...
Attached Files
File Type: txt messages.txt (237.7 KB, 3 views)
 
Old 05-06-2009, 10:24 PM   #13
marvinudy
Member
 
Registered: Oct 2004
Location: detroit
Distribution: Mint, Mepis, Sabayon, PCLOS, Sidux, UltimateEdition, Suse
Posts: 30

Rep: Reputation: 15
Allantch,

Can you see power lights active? I would try the drive on another machine to double check activity and that you do not have a USB bus failure. If you determine the drive will not spin-up, choices are limited. The 'electronics' in the enclosure may be defective and/or the drive is 'shot'. As a last resort, you can always try to remove the drive from the enclosure and hook it directly to an internal connection in your computer. I've read of some people putting a drive sealed in a baggie into the freezer for an hour and then trying to boot. Long shot but if all else fails....


Best regards,

marvinudy
 
Old 05-06-2009, 10:56 PM   #14
allancth
Member
 
Registered: Mar 2009
Posts: 37

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the suggestion. I did unplug the hard drive from the server and plug it into another machine before. However, the other machine is running on WindowsXP instead of Linux. The drive did not appear in the WindowsXP machine.

Then I plug it into the Linux box again. No auto-mount. Nothing happened. The light is on though and there are sounds coming out of the hard disks. So I assume the drive is still spinning.

Just for your information, the hard disk is not powered by the USB itself. It is powered by another AC adapter. So when I turned on the power, the lights are active.

I will try to plug it to a different Linux box. Thanks.

Regards,
Allan
 
  


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
Hard Disk Failure: How do I move data to a new hard disk drive? spyros Linux - Software 2 10-31-2008 04:01 PM
Hard Disk failure? bhert Linux - Hardware 7 04-08-2007 03:07 PM
hard DIsk Failure frankkky Linux - Hardware 5 11-12-2006 04:23 PM
Hard disk failure? GazzaJ Linux - Hardware 2 08-15-2006 08:28 AM
hard disk failure? indole Linux - Hardware 4 02-19-2005 08:49 PM


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