LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-09-2008, 10:06 AM   #1
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279
Blog Entries: 1

Rep: Reputation: 31
Boot problem -- MAY be hardware related


Given what has taken place, I would like an opinion as to whether or not the problem I am having is hardware related. Here is what is going on:

This is on a slackware 12.1 os.

Last night attempted to shut down and power off pc.
shut down stalled -- from log looked like it tried to reboot.
Powered off pc with the power switch.
This morning, when I tried to boot, bios said no active partition
bios is recognizing the hard drive.
Booted pc using gparted live cd.
booted ok;
one of the gparted-live options was to boot a hard drive, if available.
tried that, and pc booted ok using the installed grub loader.

So, can someone offer an opinion - What kind of problem am I looking at?

Gary
 
Old 12-09-2008, 10:10 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
with the live cd do a few more things.

1. fsck all partitions
2. hdparm -I /dev/sda
3. smartd --help
(run the long test)

Also take a look at the boot log
 
Old 12-09-2008, 02:32 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
What bootloader are you using ? lilo ? What filesystem are you using on your /boot partition (on whatever partition /boot is on) ? was there any error issued by the bootloader ?
 
Old 12-09-2008, 06:31 PM   #4
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279

Original Poster
Blog Entries: 1

Rep: Reputation: 31
H_TeXMeX_H, Thank you for the reply.

The bootloader is grub.
File system is ext3

When using the live-cd to boot , no -- no errors

I should have thought about this a little more before posting.
It looks like the error occurs before the bios reads the mbr.


the error displayed is "no active partition" Would this mean that the bios failed to read the master boot record? If this is true, and I can boot the system that is on the hard drive using the live-cd, then would this mean that the mbr got trashed? If thats true, can I re-load the mbr? without having to re-install grub?

Here is the fdisk listing of the primary master:
Code:
root@abitbox:~# fdisk -l /dev/hda

Disk /dev/hda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000aaca0

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        4863    39062016   83  Linux
/dev/hda2            4864        9361    36130185   83  Linux
/dev/hda3            9362        9733     2988090   83  Linux

Gary

Last edited by garyg007; 12-09-2008 at 06:34 PM.
 
Old 12-09-2008, 08:40 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Yes, type grub and type setup (hd0,0). It should re-install grub in the MBR. If that does not work, a superblock might be corrupted, so run fsck.
 
Old 12-09-2008, 10:01 PM   #6
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Hello Electro,
Thanks for the reply.

I had to modify the grub procedure slightly. need to run crub command
"root (hd0,0)" before "setup (hd0,0)"

Unfortunately this did not solve the problem; connand "smartctl -l selftest /dev/hda" showed no errors on drive.

Next will be to get a new ribbon cable and see if that does any good.
I just hope the motherboard doesn't need to be replaced!.

Thanks to you and H_TeXMeX_H for getting me pointed in the right direction.

Gary


fsck indicated a bad superblock -- got to do a search
and find out where the backup superblocks are located.

Last edited by garyg007; 12-09-2008 at 10:16 PM.
 
Old 12-09-2008, 10:28 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by garyg007 View Post
fsck indicated a bad superblock -- got to do a search
and find out where the backup superblocks are located.
"mkfs.ext3 -n ..." is probably easiest.
I recently had to ditch an old laptop when it decided it wouldn't boot the disk anymore - I got sick of booting the floppy.
 
Old 12-10-2008, 01:39 AM   #8
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Just a thought:
Check if your BIOS is still set to boot from the HD?

I had a similar issue immediately after a WindowsXP upgrade to SP3 on a dual boot system. Somehow / somewhere something changed and I had to get into the BIOS to fix it. I think the system tried to boot from the memory card that was inserted in my printer.
 
Old 12-10-2008, 11:07 AM   #9
garyg007
Member
 
Registered: Aug 2008
Location: north-east ohio
Distribution: Debian-squeeze/stable;
Posts: 279

Original Poster
Blog Entries: 1

Rep: Reputation: 31
as he tiptoes off stage quietly, trying to make himself invisible---

Yes, the bios was set to boot from the hard drive; the problem was that there is another bios setting that specifies in what sequence the hard drives should be checked!

Somewhere along the way I must have managed to change that setting ---it was pointing to a hard drive with no bootable partition defined.



Oh well; everything was not lost; this resulted in convincing me to take the time to back up and then scan the hard drive.

Thanks, everyone; this has been another ??enjoyable?? learning experience

'The ghost of lost data'
(aka Gary)

Last edited by garyg007; 12-10-2008 at 11:12 AM.
 
  


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
Not a Linux problem, but hardware related thinkpad generalachoo Linux - Hardware 1 10-30-2007 07:51 AM
linux /boot backup problem related with GRUB kvv_bne Linux - General 2 02-21-2006 01:04 PM
DHCP related boot problem on IBM T30 exitsfunnel Linux - Networking 1 06-05-2005 10:29 PM
Is the problem exactly hardware or software related? vmuralikrishnan Linux - Software 1 03-24-2005 03:39 AM
Software related boot problem affecting multiple ext2 partitions sindi Linux - Software 0 11-28-2004 02:29 PM

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

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