LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-04-2009, 03:22 PM   #1
sasciame
LQ Newbie
 
Registered: Jul 2009
Posts: 18

Rep: Reputation: 0
Grub sometimes doesn't load


Most of the time when I turn on my laptop (Compaq Presario 2105us with Ubuntu Jaunty on it) Grub will not start and my computer then goes into a PXE. It appears to be attepting to boot from a LAN. In the BIOS the LAN is the last option in the boot sequence so I am not sure why this is happening.

Eventually I can get the computer to come on by just turning it on and off until it boots correctly (usually about 5-10 attempts) I don't think this is good for the components though and would like to find a solution to the problems.

I tried to re-setup Grub from the live CD, but that didn't seem to help, in fact I believe it made it worse as I used to be able to get the computer to come on after 3-5 attempts but now it is 8-10 attempts.

Does anybody have any ideas?
 
Old 08-04-2009, 03:44 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
So is the BIOS set up to boot from the Hard Drive first?

Have you seen this page. Somehow I belive it will be useful for ya.
 
Old 08-04-2009, 05:07 PM   #3
sasciame
LQ Newbie
 
Registered: Jul 2009
Posts: 18

Original Poster
Rep: Reputation: 0
The BIOS settings are to first boot from Removable Devices, then from CD ROM, then from Hard Drive, then from LAN

Sometimes Grub boots when going through this sequence and sometimes it doesn't.
 
Old 08-05-2009, 01:13 AM   #4
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
It could be either your drive taking a long time to spin up, or your drive controller taking a long time to initialise. Instead of power-cycling, try the three-finger-salute (ctrl+alt+del)
 
Old 08-05-2009, 09:10 PM   #5
sasciame
LQ Newbie
 
Registered: Jul 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by x_terminat_or_3 View Post
It could be either your drive taking a long time to spin up, or your drive controller taking a long time to initialise.
Is there a way to remedy this? I have read that this could be an indication of the hard drive starting to fail, but I don't believe this is the case because the computer only started doing this when I installed Ubuntu. So how can I get the drive to spin up faster or getting the drive controller to take less time?
 
Old 08-05-2009, 09:47 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
IMHO it could be coincidental that your problems started when you installed Ubuntu. The BIOS is still in control of the boot process and for the reasons already stated moves to the next device. If it was a MBR or bootloader problem I would of expected some type of boot error message. Running smartctl or the drives manufactures diagnostics tools will help determine if you have a HDD that is about to die.
 
Old 08-06-2009, 01:47 AM   #7
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Why don't you change Hard Drive to be the first option.

Also, how old is your computer, how did you install Ubuntu, how many partitions you have there, have you tried to run any other distro, did you use fsck, have you tried to reinstall Ubuntu, was the md5sum OK?

Last edited by alan_ri; 08-06-2009 at 01:50 AM.
 
Old 08-06-2009, 01:50 AM   #8
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Better still change it to be the only option and then see what happens.
 
Old 08-06-2009, 02:27 PM   #9
sasciame
LQ Newbie
 
Registered: Jul 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
Running smartctl or the drives manufactures diagnostics tools will help determine if you have a HDD that is about to die.
steven@steven-laptop:~$ sudo smartctl -H /dev/sda
[sudo] password for steven:
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

steven@steven-laptop:~$
 
Old 08-06-2009, 02:35 PM   #10
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
Dear sasciame

You need to look at all the parameters.

(as root)
Code:
smartctl -a /dev/sda
This will output a table with several columns.

Look for the text 'In_the_past', or other wording in the column WHEN FAILED
 
Old 08-06-2009, 02:39 PM   #11
sasciame
LQ Newbie
 
Registered: Jul 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alan_ri View Post
Why don't you change Hard Drive to be the first option.

Also, how old is your computer, how did you install Ubuntu, how many partitions you have there, have you tried to run any other distro, did you use fsck, have you tried to reinstall Ubuntu, was the md5sum OK?

I guess I could make it my first option. Sometimes I like to mess around with a live CD of Damn Small or Puppy so I have my CD ROM ahead in the boot order.

My computer is from 2003, I have 1 partition, I haven't installed to HD any other distro, but I have played around with live CD's.

I will run fsck from Knoppix since I get a message that tells me that I could damage my system by fsck on a mounted filesystem

I did not reinstall Ubuntu. I was hoping to find a solution without having to do that. (Plus isn't that the easy way out :-) )

The md5sum was fine and I checked for disk errors when I installed from the CD.
 
Old 08-06-2009, 02:45 PM   #12
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,644

Rep: Reputation: 145Reputation: 145
You could also try to enter the BIOS boot menu at start, then chose your harddisk manually. Maybe this gives the controller the (eventually) extra time to get up
 
Old 08-06-2009, 03:16 PM   #13
sasciame
LQ Newbie
 
Registered: Jul 2009
Posts: 18

Original Poster
Rep: Reputation: 0
fsck said /dev/sda1 was clean
 
Old 08-06-2009, 03:18 PM   #14
sasciame
LQ Newbie
 
Registered: Jul 2009
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by x_terminat_or_3 View Post
Better still change it to be the only option and then see what happens.
How do you do this? In my BIOS it appears that the only option is to choose the order. I don't see where you can totally eliminate other options.
 
Old 08-06-2009, 03:21 PM   #15
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
How to do this depends on the make and model of your `BIOS', but in general, either you select space while the device list is shown to disable the device, or +/- or PgUP/PgDn, etc. . . As I said it really depends on your make and model of `BIOS'
 
  


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
grub failed to load linux (grub think ext3 partition as fat) khairilthegreat Linux - Newbie 7 08-09-2007 12:12 PM
GRUB won't load Zmyrgel Linux - Newbie 0 09-09-2006 07:44 AM
load grub again manomohan Red Hat 2 11-18-2005 10:53 PM
GRUB doesn't load rcracer7 Linux - Newbie 4 10-03-2005 12:16 AM
grub doesn't auto-load kernel, time/date auto-change, k3b cannot load kenji1903 Red Hat 16 03-27-2005 08:48 PM

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

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