LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 11-02-2007, 01:01 AM   #1
charlesreid1
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Rep: Reputation: 0
Ubuntu restarting automatically on each boot


I am running Ubuntu Gutsy 64 bit on an hp pavillion zv6000, amd 64, 2gb ram, dual booting xp and ubuntu (xp is in the first partition/half of the hd and ubuntu is in the second partition). my distro was working fine until yesterday, when i booted up ubuntu. grub came up, i picked ubuntu (normal), and it started to boot, but no gui (just a blank screen). it ran for about 5 minutes, with about a full minute with a solid 'hard drive reading' light. i don't know what it was doing w/o any output. then it rebooted, showed the hp logo boot screen, and came up with grub. i picked ubuntu again, and after another 5 minutes GDM shows up. i have lots of ram and a fast processor, and i've seen gutsy 64 run like a charm on a dell amd 64, so i don't know what i'm missing... what logs can i check to see what it is doing at startup? what can i do to get ubuntu to load right?

additional info:
- i booted in recovery mode, and it displayed all output... it got to a terminal ok
- i am going to try re-installing grub, but i don't think it's grub because i can boot into windows xp fine

Last edited by charlesreid1; 11-02-2007 at 01:06 AM.
 
Old 11-02-2007, 01:47 AM   #2
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Hi charlesreid1,


If you can get single user mode working fine, that means your grub is all OK!

There is no need to reinstall your machine.
Just go to single user mode and check if you have got some line like this:

Code:
init 6
in one of your init scripts such as /etc/rc.d/rc.local and so on

Also check the contents of
/etc/inittab
If you have anything like this:
id:6:initdefault:
change it to
id:3:initdefault:
3 or 5 or whatever other runlevel that you want except 6(restart) 0(halt).




Regards,

Aniruddha

Last edited by imagineers7; 01-06-2008 at 09:19 AM.
 
Old 11-02-2007, 11:30 AM   #3
charlesreid1
LQ Newbie
 
Registered: Apr 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Success!

I logged into single-user mode by adding the parameter "Single" to the kernel runline in grub, and everything worked OK. However, I had no luck in finding anything like you described in the following init scripts:

/etc/rc.local
/etc/init.d
/etc/event.d (equivalent of /etc/inittab)


So, I edited my /boot/grub/menu.lst and saw the kernel parameter "quiet", and after I got rid of it, my laptop displayed everything it was doing and booted right into ubuntu (~30 seconds total). I'm not really sure what it was doing during the 5-minute boot-ups, but at least now that the "quiet" parameter is gone if it starts doing it again I will be able to see what it's doing and troubleshoot it better.


Thanks for your help & quick response!
 
Old 12-12-2007, 04:53 PM   #4
danforward
LQ Newbie
 
Registered: Dec 2007
Distribution: Ubuntu 7.10
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by charlesreid1 View Post
I'm not really sure what it was doing during the 5-minute boot-ups, but at least now that the "quiet" parameter is gone if it starts doing it again I will be able to see what it's doing and troubleshoot it better.
I had this happen at one time too on an HP Pavilion zv6000. It turns out that every 40 reboots a hard drive check is forced, which takes several minutes, but the display does not show anything unless you choose "recovery mode" from the grub menu. This can happen at the most inopportune times. I had people waiting for me and I could not figure out why my laptop was taking so long to power up.
 
Old 12-13-2007, 01:05 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
The occasional s-l-o-w boot is due to fsck being run after N reboots. N is configurable with tune2fs. See man tune2fs for the full story.

As you have discovered, you can set your grub's menu.lst so you see the startup messages scroll past on your screen. Mine occasionally says something like "hda6 has been remounted 30 times without a fsck. fsck forced now". Then there's a progress bar. It is boring, but probably a good idea for data integrity.
 
  


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
x server keeps restarting on ubuntu 6.10 rameshg87 Ubuntu 4 02-17-2007 11:47 AM
Restarting ADSL Connection Automatically ewartgb Linux - Networking 1 01-29-2007 09:56 PM
How to avoid pppoe connection automatically startup at boot time in UBUNTU? kevin_chn Ubuntu 4 12-31-2006 11:29 PM
Restarting X....Automatically? tubatodd Slackware 2 12-12-2006 11:06 AM
Restarting x windows automatically john8675309 Linux - General 1 10-22-2003 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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