LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-15-2008, 02:58 PM   #1
GTBlackwell
Member
 
Registered: Aug 2003
Location: MO, USA
Distribution: Mandrake 9.1/9.2(Laptop)
Posts: 117

Rep: Reputation: 15
New root hard drive hangs on boot


This is a continuation of the thread at http://www.linuxquestions.org/questi...rouble-683597/

I have two questions:

1) Is there a way to force Ubuntu to boot without the splash screen? I might be able to solve the problem on my own if I could see the output.
2) Can I use dmesg to get the log of the last boot off the hard drive while logged into a LiveCD session?
 
Old 11-15-2008, 04:40 PM   #2
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
1) edit /boot/grub/menu.lst and change the kernel line(s) to change splash to nosplash and add verbose.
example:
Code:
kernel          /boot/vmlinuz-2.6.27-7-generic root=UUID=abc123 ro ht=on nosplash vga=775 verbose
note there are other cleaner ways of updating menu.lst by including the options in the Default options lines and using update-grub,,,, You can read more into that

2) just mount your HDD and view the /var/log/dmesg file ... same thing as the dmesg command.

cheers
 
Old 11-15-2008, 10:07 PM   #3
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
I think the easiest way to prevent the splash screen and see all the booting messages is to simply remove the "quiet" and "splash" screen at the end of your kernel line:
Code:
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=d0b10c15-66ed-4d1c-b7f6-c1fc131636f7 ro quiet splash 
Give that a shot and let me know if it is what you are looking for.
 
Old 11-16-2008, 04:25 AM   #4
GTBlackwell
Member
 
Registered: Aug 2003
Location: MO, USA
Distribution: Mandrake 9.1/9.2(Laptop)
Posts: 117

Original Poster
Rep: Reputation: 15
Well, unfortunately, dmesg didn't provide me with anything useful. Gedit refused to read it and I tried to pipe it into a text file and that caused the system to hang. Maybe I just don't have the hang of how that file's supposed to be used.

Anyway, I made the suggested changes to menu.lst and managed to figure out precisely where my system is hanging, but not really how to go about fixing the problem. When booting into Hardy normally, some initial text output appears, but before I could read it the spash screen was back, but this time with the following at the bottom:

Code:
Loading essential drivers...       OK
Running /scripts/init-premount...  OK
Mounting root file system...       OK
Running /scripts/lolcal-top...     OK
Waiting for root fs...
which I guess means the root files system never really got going. So I tried booting into recovery mode via the grub menu and I get a ton of output scsi and usb drivers. The system hangs just after USB HID is accessed.

Is there something I skipped that I should have done after I copied the contents of the old hard drive onto the new one? If all the system files are in the same place, shouldn't it not care whether or not it suddenly has more space?
 
Old 11-16-2008, 10:04 AM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,196

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
This thread provides you with some information about how to find the cause for this kind of trouble.

Although this thread is about boot problems after upgrading a kernel, the mechanism to find the cause is the same. You *have* to boot into the initramfs OS to find why you cannot boot from you regular hard disk. Dmesg and rescue mode in Ubuntu or not good enough. I just hope that like Debian, Ubuntu falls back into busybox when it doesn't boot. Initially it takes not less than 5 minutes or so.

BTW, my bet is that you have run into problems because you are not mounting the new drive using label or UUID. Google for a solution, there are sufficients HowTo's on that.

jlinkels
 
  


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
New root hard drive in Hardy = boot trouble GTBlackwell Linux - Hardware 4 11-15-2008 04:50 PM
failed to mount /root on boot after upgrade to lenny: boot hangs MrInept Debian 7 10-29-2008 11:21 AM
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-05-2007 12:28 AM
GRUB hangs when its root is assigned to second drive JMB1776 Linux - General 5 11-23-2006 05:23 AM
Hard Drive is Not Responding, System get Hangs alpha97 Linux - Hardware 7 11-07-2004 11:49 AM

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

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