View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed May 10, 2006 8:18 am 
Offline
Joined: Sun Nov 14, 2004 2:39 pm
Posts: 113
Not being a Linux guru I'm not sure where to go from here.

Was transfering some video files from my /myth/video directory when I started getting these errors in the messages log on one file. All the other files transfered :

May 10 07:28:39 mythtv kernel: hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
May 10 07:29:33 mythtv kernel: hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=229901503, sector=229901376
May 10 07:29:33 mythtv kernel: ide: failed opcode was: unknown
May 10 07:29:33 mythtv kernel: end_request: I/O error, dev hda, sector 229901376
May 10 07:29:33 mythtv kernel: hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
May 10 07:29:33 mythtv kernel: hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=229901503, sector=229901384
May 10 07:29:33 mythtv kernel: ide: failed opcode was: unknown


Error Repeated for a number of sectors.

Boot up log entry for e2fsck does not show anything.

Searching the forums makes me think I need to run either fsck or e2fsck (not sure which) on a quiet system after unmounting /myth.

My questions are :

1. How to "quiet" the system in preparation for disk checking.

2. Any "tricks" for umounting /myth?

3. fsck or e2fsck?

a. just -c parameter or others?
b. Can these errors be "fixed".

4. Other considerations ?

I've emptied the /myth/video of all files except the one that won't transfer because of the errors, and I have no recorded shows to worry about now.

mount returns :

/dev/hda1 on / type ext3 (rw,errors=remount-ro)
none on /proc type proc (rw,nodiratime)
/dev/hda3 on /cache type ext2 (rw)
/dev/hda4 on /myth type ext3 (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)

I am running R5A16 KnoppMyth.
160G EIDE Hdd. Default partitions.

Before I bag it and do a fresh install on a new hard drive I'd like to see if this can be salvaged.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 10, 2006 9:47 am 
Offline
Joined: Tue Feb 21, 2006 7:24 am
Posts: 396
Location: Dushanbe, Tajikistan
Quote:
1. How to "quiet" the system in preparation for disk checking.

Boot to single user:
reboot the system and hold down the left shift key after post.
at the "lilo:" prompt type: "linux init=/bin/sh"
Quote:
2. Any "tricks" for umounting /myth?

It won't be mounted after going to single user

fsck.ext3 -y -c

I always give the -y so that it doesn't ask before fixing problems.

check hda1, hda3, hda4

I think your drive is on its way out.. was it getting too hot?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 11, 2006 12:20 pm 
Offline
Joined: Sun Nov 14, 2004 2:39 pm
Posts: 113
Thanks,

Checked all the partitions. Only the /myth one has bad sectors.

So now I"m looking for information on how to transfer the other good partitions to a new disk drive (bigger) and make a new /myth partition.

I would like to keep this setup since it has been rock solid and i've added tweaks and tunings over time that would be a pain to replicate from scratch.


Thanks again


Top
 Profile  
 
PostPosted: Thu May 11, 2006 4:17 pm 
Offline
Joined: Sun Mar 12, 2006 2:37 am
Posts: 6
Location: UK
Unfortunately I am not an expert on rebuilding LILO -- tend to use GRUB....
There should not be any trouble moving to a new system...
Mostly a case of recreating the same partititons, mounting new and old and 'cp -av' 'ing things across.... (Use KNOPPIX and remember to 'swapoff -a ' to avoid swap partitons on HDD being mounted when you are doing this;-))....

However, then connecting ONLY the new hdd and reinstalling LILO probably involves rescue-disk-booting the system and then running 'lilo' to install the loader on that harddisk...

With GRUB the situation is easier I believe...


FYI harddisks often get bad-sectors -- "Grown Defects"....

I highly reccomend running 'badblocks -wvs [device]' to ERASE and TEST a hdd before USE or RE-USE...
WARNING! This overwrites all data!!!
e.g. "badblocks -wvs /dev/hda" to erase/test primary-master PATA hdd...
WARNING! This overwrites all data!!!

Doing the above a few times from a KNOPPIX disk booted into 'knoppix 2 dma noswap' will give a modern bad-sector HDD "a kick" that will case it to *internally map out* the bad sectors (swap them with internal spare sectors) so that the drive then works fine!


Hope you get you issues sorted...
[/quote]


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 11, 2006 5:36 pm 
Offline
Joined: Thu Feb 12, 2004 2:54 pm
Posts: 392
Location: Beaumont, CA
I had a drive die awhile ago. I did this write up incase it happens to anyone else. It might help you.

_________________
ASUS A7N266 Micro-ATX Motherboard
Athlon 2200 processor
512K Kingston PC2100 Memory
MicroAtx Case
2 PVR250's w/remote
eVGA e-GeForce mx4000 (64 Ram with Tv/Out (Svideo))
Lite-on DVD cd-rw combo
120 GB Western Digital


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 11, 2006 6:03 pm 
Offline
Joined: Wed Apr 28, 2004 10:42 pm
Posts: 405
Location: Bendigo, Victoria, Australia
siasl wrote:
Thanks,
So now I"m looking for information on how to transfer the other good partitions to a new disk drive (bigger) and make a new /myth partition.

I did something similar a while back when I moved to a newer drive. http://mysettopbox.tv/phpBB2/viewtopic. ... highlight=

Basically what I did was this:
1: Disconnect the original drive "A"
2: Connect new drive "B"
3: Use the Knoppmyth CD auto installer to partition the new drive (B) and setup lilo, etc.
4: Reconnect Drive A, and set the BIOS to boot off it.
If you boot off B you wont be able to write over any of the active files.
5: Copy everything from Drive A to Drive B
6: Remove Drive A
7: Enjoy the new drive B.

_________________
Paul Turpie
-------------
<--Is your location in your profile? Why not?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 12, 2006 10:16 am 
Offline
Joined: Sun Nov 14, 2004 2:39 pm
Posts: 113
[quote]3: Use the Knoppmyth CD auto installer to partition the new drive (B) and setup lilo, etc. [/quote]


I assume you mean just go until the installation process formats the partitions then bail out of the install program?


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 14, 2006 5:40 pm 
Offline
Joined: Wed Apr 28, 2004 10:42 pm
Posts: 405
Location: Bendigo, Victoria, Australia
siasl wrote:
Quote:
3: Use the Knoppmyth CD auto installer to partition the new drive (B) and setup lilo, etc.



I assume you mean just go until the installation process formats the partitions then bail out of the install program?


Well I don't think it would matter too much whether you stop it early or let it finish. It's been a while since I did it so I've forgotten some of the details, but I think I just left it alone when it started formatting partitions and came back later to whatever point it had stoppped at.

Now that I think about it I think there was some extra mucking about with lilo because kernel file had been replaced. So you could add the following steps.
0: Do a backup from the Knoppmyth menu.(Always a wise idea anyway.)
6.5: Rerun the Knoppmyth CD to auto upgrade drive B. (I think you could do this as a simple way to get lilo working properly.)

There seems to be a few shorting comings to my set of instructions so it would be great if you could take notes of whatever you've done and post them back here to help the next person. :D

_________________
Paul Turpie
-------------
<--Is your location in your profile? Why not?


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu