LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2004, 09:55 AM   #1
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Rep: Reputation: 30
is my hard drive deiying or have i been hacked?


major problem! one ove my hard disks in my server is the problem i think!
i will explain the situation first!!

on the one IDE disk i have all the others are scsi. i keep all backed up software on it it consists on on 80gb ext3 partition with one folder on it called software in that folder there was 3 more folders! one called windows one called solaris and there was one called LINUX but the linux one has disapeared! wel almost disabeared!

this disk is in my server which has no moniter, keyboard or mouse so i can only look at things on it through ssh and webmin if i connect to the sever using ssh and cd to to the software directory and ls to see whats in the folder i get the follwing

/usr/bin/ls: linux: input/output error
solaris/ windows/

i can access the solaris and windows folders no probobs but the linux one doesnt appear but hear is the realy intresting thing!!!! in webmin if i use the file manager the linux folder will show up but not as a folder and with a file size of 0kb unlike all the other folders with a file size of 4kb when i click on it i get the input output error again. however i share the linux folder on my website for the linux downloads could it be a hack?

can any one help please?
 
Old 12-04-2004, 10:42 AM   #2
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
also i forgot to ask is the data still there? can i get access it and back it up?

thanks for any help
 
Old 12-04-2004, 10:58 AM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"could it be a hack?"

This is much more likely to be a corrupt file system caused by a disk hardware error. I suggest that you umount the partition and run fsck against it:

umount /dev/hda1
fsck -t ext3 /dev/hda1

and see if that will fix the problem.

--------------------------
Steve Stites
 
Old 12-04-2004, 11:21 AM   #4
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
thanks for the advice im just doing it over ssh now! and it is coming up with about 4-5 errors for every 0.01% it scans!
 
Old 12-04-2004, 11:23 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally posted by berrance
thanks for the advice im just doing it over ssh now! and it is coming up with about 4-5 errors for every 0.01% it scans!
You'll want to let it finish to see if it can correct any of the problems, but definitely data corruption or loss is a possibility at this time. Hope you made backups if its important data..
 
Old 12-04-2004, 12:00 PM   #6
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
it asks me to press y on every error found its anouying as its gona mean me sitting hear for ages pressing Y! and i have backups of all the windows stuff and the 40GB worth of linux stuff i havnt but i can download that along with the solaris ISO, just a pain in the ass having to download 40gb worth of iso's again lol
 
Old 12-04-2004, 12:42 PM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"it asks me to press y on every error found its anouying as its gona mean me sitting hear for ages pressing Y! "

Next time you can avoid all of the fsck questions by using the -a option.
fsck -a -t ext3 /dev/hda1

---------------------------
Steve Stites
 
Old 12-04-2004, 01:05 PM   #8
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
right its finished and i am still having the same problem! does any body have any idieas or is it shot? could this be a hardware problem?
 
Old 12-04-2004, 01:42 PM   #9
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"right its finished and i am still having the same problem! does any body have any idieas or is it shot?"

You will have to recover your data from backup. You should format the partition before you restore data to it.

"could this be a hardware problem?"

The corrupt file system was probably caused by a hardware error. I suggest that you run badblocks on the partition. See man badblocks.

Then format the partition. If you have a bad spot on the hard drive then the format should tell you that.

If the hardware error is bad enough that you cannot get through a format and a restore then you need to replace the hard drive.

If the restore goes OK and if the hardware problem is an intermittent error then it may or may not cause you problems again.

------------------------------
Steve Stites

Last edited by jailbait; 12-04-2004 at 01:50 PM.
 
Old 12-04-2004, 01:49 PM   #10
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Don't forget to run a badblocks scan of the partition when you reformat it. Unfortunately, if there are a lot of bad sectors, it may be a sign that the disk is on its way out, and it would be best to try to pay a visit to the facility where the server is located and replace it.
 
Old 12-04-2004, 02:33 PM   #11
berrance
Member
 
Registered: Aug 2004
Location: Hull - England
Distribution: Ubunto and slowly switching to debian
Posts: 308

Original Poster
Rep: Reputation: 30
my server is housed in my house! so that isnt a problem! iv been after getting rid of the IDE disk any way and replacing it with a new scsi disk so now is the perfect time! and befor i format it does anybody know any data recovery programs for to save me downloading the linux iso's i didnt back up as i had 40GB worth of them
 
Old 12-04-2004, 03:44 PM   #12
Post Modern
Member
 
Registered: Nov 2002
Location: Massachusetts
Distribution: Fedora Core, RH, Mandrake, Xandros, Knoppix
Posts: 110

Rep: Reputation: 15
.
.
I just had the same problems with a new system and a new Mandrake 10.0 community install, apparently, the newer versions of limux are having problems with mixed drives, that's just what I had, an IDE and a SATA.

I removed the IDE, and the problem went away....

As for the back-up program, someone else will have to answer that one....

Just make sure you don't use Norton Ghost, it does a bad job.... as I recall, it's dependent on your (hardware) set-up, but why take the chance.... especially if you're having problems already.

PM
.
.
 
Old 12-04-2004, 04:06 PM   #13
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"befor i format it does anybody know any data recovery programs for to save me downloading the linux iso's i didnt back up as i had 40GB worth of them"

You could use an image copy program like dd to copy the whole mess to a different partition. Then you will have a mess in a new location. You could run fsck against the new mess in the hopes that fsck could straighten out the mess if it doesn't also have to deal with bad spots on the hard drive. The odds are against this idea working but it wouldn't hurt to try if you have the time and the spare disk space.

--------------------
Steve Stites
 
Old 12-04-2004, 08:19 PM   #14
EnigmaOne
LQ Newbie
 
Registered: Aug 2003
Location: Long Beach, CA - USA
Distribution: Too many to count...
Posts: 28

Rep: Reputation: 15
testdisk ( http://www.cgsecurity.org ) might rescue some of that for you, but you're probably better off just making up a list file of the MD5SUMS and .isos that you downloaded (full URLs) and using wget to download them all in the background while you do something else.

A while back, I threw a script together to create separate directories to house each distro and release, and download each to its own spot.
nohup the script, and let her rip for a few days.
 
  


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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 02:24 PM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 01:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 12:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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