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 01-09-2017, 07:03 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,689
Blog Entries: 19

Rep: Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495
"Media test failure, check cable". How serious is this? Fried disk or just fried bootloader?


Some background first. Last year I bought a cheap second-hand Samsung laptop which I call littleboy. I've been using it purely as a learning tool, having no previous experience of laptops at all. It currently has 64-bit NuTyX on it, and recently I have been trying to build LFS.

Yesterday I shut it down as usual. Nothing odd happened. Today it wouldn't boot.

There's a recovery mode option in the bios so I activated it (F4). This brought up a PXE which gave me the following messages:

PXE-E61 Media test failure, check cable
PXE-MOF Exiting PXE ROM
Operating system not found.

A brief google suggests that this usually indicates a fried disk, but most of those posts were about Windows, not Linux. I was able to boot from a pen drive that happened to have 32-bit AntiX on it. I could mount the two data partitions (sda2 and sda3) and list their root directories. I unmounted and fsck'd them and saw no errors.

To try to reinstall a bootloader, I would need a 64-bit rescue disc, which at the moment I have not got. The question is: is it worth the effort? If it's just a corruption in LILO, that's easily corrected, but if the disk really is going, the problems will just re-occur somewhere else. There is no valuable data on the drive, just the NuTyX OS and source files for LFS.

So I want to know: is this the sign of a disk that's going belly-up?
 
Old 01-09-2017, 07:40 AM   #2
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,007
Blog Entries: 26

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
That particular error being from PXE means it couldn't find a PXE server to boot from on your network. Has nothing to do with the hard drive. Does not necessarily mean that the drive isn't going bad, just that particular error has nothing to do with the hard drive.

Do you have a onboard diagnostics boot?
 
Old 01-09-2017, 07:58 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,689

Original Poster
Blog Entries: 19

Rep: Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495
Quote:
Originally Posted by Timothy Miller View Post
Do you have a onboard diagnostics boot?
There is a setting that makes the bios more verbose if that's what you mean. I've just tried using that and there's nothing sinister in the few messages that come up. It mentions finding a Samsung hard drive so it obviously has low-level access to the disk. The point about the PXE boot is that it does that because it can't boot from the hard drive.

The first few times I tried to boot it this morning, it printed out a lot of 999's instead of my LILO menu. Then I used F4 to put it into recovery mode and it printed "A disk read error occurred" and then went into PXE. Since then, it's been trying to use PXE on every boot.
 
Old 01-09-2017, 08:44 AM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,007
Blog Entries: 26

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
Quote:
Originally Posted by hazel View Post
The point about the PXE boot is that it does that because it can't boot from the hard drive.

The first few times I tried to boot it this morning, it printed out a lot of 999's instead of my LILO menu. Then I used F4 to put it into recovery mode and it printed "A disk read error occurred" and then went into PXE. Since then, it's been trying to use PXE on every boot.
No, PXE ignores the hard drive. PXE in the BIOS will boot to the NETWORK. PXE in the bios is configured only to boot from network, and you actually have to use some shenanigans to get it to boot to anything other than the network. I use PXE quite regularly, it was designed as a way to do network booting only, and by default will not even look at anything local to boot from.
 
Old 01-09-2017, 09:18 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,689

Original Poster
Blog Entries: 19

Rep: Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495
Quote:
Originally Posted by Timothy Miller View Post
No, PXE ignores the hard drive. PXE in the BIOS will boot to the NETWORK. PXE in the bios is configured only to boot from network, and you actually have to use some shenanigans to get it to boot to anything other than the network. I use PXE quite regularly, it was designed as a way to do network booting only, and by default will not even look at anything local to boot from.
I think we have slightly crossed wires here. The boot order as set in the BIOS is USB, hard drive, PXE. So it should not be using PXE at all if it can read boot code from the hard drive. Obviously it can't. The initial weird display that I got (see my previous post) must have been an attempt at a normal boot. Now it doesn't even try that.
 
Old 01-09-2017, 09:44 AM   #6
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,007
Blog Entries: 26

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
Quote:
Originally Posted by hazel View Post
I think we have slightly crossed wires here. The boot order as set in the BIOS is USB, hard drive, PXE. So it should not be using PXE at all if it can read boot code from the hard drive. Obviously it can't. The initial weird display that I got (see my previous post) must have been an attempt at a normal boot. Now it doesn't even try that.
OH, you're saying that it only gets to PXE because it fails booting from hard drive. GOTCHA. I thought you were saying the PXE error was failing to boot from hard drive.

It's possible something happened to the bootloader and so there's absolutely nothing wrong with the hard drive, but it's genuinely not bootable any longer. Best thing if you don't have true diagnostics in BIOS (a lot of boards still don't) is to boot from a live USB and run SMART (I'm guessing most live usb's have smart utilities, can't say I've ever actually thought to look) and a FSCK to see if the drive is ok. If both report no issues, you can try chrooting into your installation and try reinstalling your bootloader (make sure you have network access to look up instructions if you've never done this before).
 
1 members found this post helpful.
Old 01-09-2017, 11:36 AM   #7
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,148
Blog Entries: 21

Rep: Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483
Usually Bios will show IDE drive make and model if it is not broken.

If it is broken. It will not show it <not present>

I am saying ide because even older bioses have this capability. I have changed enough hard drives to know this.

Does your bios see the hard drive make and model?

This is not in boot order by the way. But in system info somewhere.

Edit: My bad. I see that your usb drive sees the drive. So bios sees it also. Timothy Miller is on track with this thread.

This is what threw me off.

Quote:
Media test failure, check cable".
That usually means a dead drive or incorrect plug into the harness. Or a incorrect hard drive (some ide/sata ssd cards I have seen this happen)

Last edited by rokytnji; 01-09-2017 at 11:43 AM.
 
1 members found this post helpful.
Old 01-09-2017, 11:59 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,689

Original Poster
Blog Entries: 19

Rep: Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495
Quote:
Originally Posted by rokytnji View Post
Usually Bios will show IDE drive make and model if it is not broken.

If it is broken. It will not show it <not present>

I am saying ide because even older bioses have this capability. I have changed enough hard drives to know this.

Does your bios see the hard drive make and model?
Yes, the verbose boot shows a Samsung HM160Ht.
Quote:
That usually means a dead drive or incorrect plug into the harness. Or a incorrect hard drive (some ide/sata ssd cards I have seen this happen)
Well, given the fact that it worked up to yesterday and I haven't changed anything internally, I think a corrupted bootloader is more likely than a cable fault. And, as Timothy pointed out, that message comes from PXE, which doesn't actually look at the local drives at all. It only checks the ethernet card, so the reference to checking the cable probably means "You're not plugged into the network, you doofus!"

I'm going to download and burn a new SystemRescue disc. My existing one is only 32-bit, but the modern version has a choice of 32-bit and 64-bit kernels so I'll be able to chroot across into NuTyX and try to fix the bootloader. I've done that before; I had to do it for AntiX because the installer failed initially to install GRUB (they've fixed that now btw).

Anyway, it's not that urgent. Like I said before, that machine is more of a toy than a serious working computer. But I would like to get it working again.
 
Old 01-09-2017, 04:53 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
I'd be thinking more along the lines of a bad hardware. Bootloaders won't load and then fall back to pxe usually.
 
Old 01-10-2017, 01:29 AM   #10
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,689

Original Poster
Blog Entries: 19

Rep: Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495
The only way to find out for sure is to try to reinstall the bootloader. If that doesn't make it bootable, then it's hardware. In which case, I don't want to spend good money on fixing it. I'll just have to conclude that I have no luck with laptops. This will be the second one that broke on me (last time it was the keyboard).

Of course that's what happens when you buy cheap, second-hand laptops. If I were to buy a new one, no doubt it would be more reliable, and it would also be worth fixing if it went wrong, but why should I spend a couple of hundred pounds on buying something I don't really need? I have a good, sturdy, functioning desktop machine. It's also second-hand but so far it's never caused me any problems.

Last edited by hazel; 01-10-2017 at 01:37 AM.
 
Old 01-10-2017, 07:28 AM   #11
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,007
Blog Entries: 26

Rep: Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522Reputation: 1522
Why not get both (assuming it also is available in the UK)?

Price of used, but brand new. WHile it's no powerhouse, it's adequate and has a FANTASTIC 1080P LCD. Only possible downfall is if it's not sold there.

Last edited by Timothy Miller; 01-10-2017 at 07:29 AM.
 
Old 01-10-2017, 07:59 AM   #12
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Throwing Boot Repair Disk (https://sourceforge.net/p/boot-repair-cd/home/Home/) at it might be worth a go.
 
Old 01-10-2017, 05:12 PM   #13
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Run hard drive diags on it. Ultimate boot cd has generic tests. Best to run OEM diags on hard drive and see what it says.

Memtest never hurts either.
 
Old 01-11-2017, 11:48 AM   #14
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,689

Original Poster
Blog Entries: 19

Rep: Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495Reputation: 4495
I used a new up-to-date SystemRescue image on a usb key to boot and install lilo in the /dev/sda mbr. Now the thing boots from the hard drive again.

Of course that doesn't tell me if I've fixed the problem (i.e. the bootloader corruption was just one-off bad luck) or merely cured a symptom. If the latter, there may be more corruption later on. I must say that I've never before known a bootloader go bad except when it was being updated; after all, this code is normally only read, not modified.

I'm going to mark this thread provisionally as solved. Meanwhile I'll collect a few diagnostic tools for future use. At present I haven't even got memtest on that machine.
 
Old 01-11-2017, 07:10 PM   #15
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,148
Blog Entries: 21

Rep: Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483Reputation: 3483
I have boot problems hazel when improper shutdowns happened on my laptop.

Only difference. I was using Ext2 file system on EEEPC and needed to do a

Quote:
I unmounted and fsck'd them and saw no errors.
Which I did with gparted in a AntiX live session with the umount/check option with right click in gparted.

But seeing you already did that and it sounds like a corrupted mbr boot loader.

I am just wondering if a improper shutdown. Like battery going dead while running or battery is no good and laptop died from inadvertently unplugging the power adapter unit causing instant shutdown?

If either one of those scenarios. They could be a cause I think for those kind of symptoms. Though I know you said you shut down normal like in your opening post.

Last edited by rokytnji; 01-11-2017 at 07:13 PM.
 
  


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
LXer: MacGyver of the Day: Limor "Ladyada" Fried LXer Syndicated Linux News 0 02-27-2010 05:42 AM
PXE E-61 Media Test Failure, check cable Jetbook Laptop salmanal Ubuntu 5 10-02-2009 03:27 PM
Is my cpu fried. It has visible "looking" burn spots on it. nutbag Linux - Hardware 7 07-16-2008 03:44 AM
recovering a potentially fried hard disk? zero79 Linux - Hardware 6 08-08-2006 01:35 AM
test possibly fried cpu edgjerp Linux - Hardware 4 02-02-2006 07:02 AM

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

All times are GMT -5. The time now is 07:27 PM.

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