LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-18-2009, 01:26 AM   #1
chursch
LQ Newbie
 
Registered: Sep 2009
Posts: 12

Rep: Reputation: 0
booting from grub gives console messages


G'day all...

Have Ubuntu v8.10, which installed some months ago.

Finally got grub going, which I invoke from Partition Magic (PM) (this is a multi-boot Windows-Linux machine). Ubuntu is over on the second hard-drive, where the boot (grub) partition resides in an extended partition, device /dev/sdb5. The main Ubuntu install is on a primary partition, /dev/sdb2. Both are ext3 filesystems, although for awhile I had turned them into ext2 partitions, since I was getting the PM error #510 (choking on the ext3 attribute somehow). I have used PM for years, although am now using gparted from the CD. I may eventually convert from BootMagic to grub to do the booting as well on this machine. Anyways, that's another aside. I should be back to ext3 on both these partitions, and I have a Linux swap partition on the first harddrive.

My problem is that when I boot Ubuntu (the install at /dev/sdb2) with grub, I get a stream of error messages on the console (no windowing yet), and things come screeching to a halt with the Caps Lock and Scroll Lock lights on my keyboard flashing away. Maybe I haven't booted correctly? I can boot Ubuntu from the CD without any problems, except I get the BIOS pre-2000 ACPI-force message at startup. Yes, this machine is getting along in years, but it works and is paid for. I hate to junk stuff that seems to have life left in it, and it works fine.

I probably am not doing the boot correctly in grub. As I recall, my grub commands (at the grub> prompt) were:

grub> find /vmlinuz
(hd1,1) -- makes sense, first primary partition after the extended partition, 2nd hd
grub> kernel /vmlinuz root=(hd1,1) -- not certain if this was the command, as I may
have done the root parameter differently
grub> boot

A short pause ensued, and then I got the stream of error messages.

I suspect I am not invoking the kernel correctly. A friend of mine who set up Ubuntu on an HP laptop (vintage 2002), used somewhat different commands in his menu.lst file:

title Linux Ubuntu 8.10 sda3-grub
uuid 0d86d470-55fb-4ac2-b5c1-efb059c988f0
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=0d86d470-55fb-4ac2-b5c1-efb059c988f0 ro quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet

I assume there is not a problem trying to boot by hand from the grub> prompt, although I have noted there is a warning in the grub manual grub.pdf that the prompt mode is an emulator.

Do I need to use the generic version of the vmlinuz as in the menu.lst above? I'm clue-less as to where that UUID string came from.

Ubuntu is replacing RH Linux v8.0 in these partitions. I don't remember having all these problems with grub and booting for RH, but it's been years (2002).

Thanks for any help!

Chuck
 
Old 09-18-2009, 07:27 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
hi

http://www.linuxquestions.org/questi...hooter-278748/

this will help you find the correct kernel and initrd names

but

http://www.linuxquestions.org/questi...hooter-237511/

your suggestion of hd1,1....in grub legacy....actually means second drive and second partition as grub counts from zero.

then your kernel line can not read the way you wrote it...AFAIK lol

since we know your Ubuntu is on /dev/sdb2 your manual way to boot Ubuntu up could be

...get to grub...Press C for commands

Code:
root (hd1,1)
kernel /boot/vmlinuz(press tab to autocomplete kernel name if not symlinked to vmlinuz) root=/dev/sdb2 ro
initrd /boot/initrd(press tab to autocomplete)
boot
note that I am assuming you did not create a separate /boot partition ...so if it is...../boot is hd1,1 and / must be something else so re-read my links
 
Old 09-21-2009, 03:20 PM   #3
chursch
LQ Newbie
 
Registered: Sep 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Smile We have a boot...

We have a boot... We have a boot... Yes!!

Used the commands you gave, and it worked! I was initially discouraged, since I was initially seeing a stream of messages on the console that did not look too hopeful, but then it went into a different mode (/dev/device?), and things went ok from there. I'd have to make a movie of it to get all the console messages. Maybe that's why my friend on the laptop install used the quiet parameter. So got the Ubuntu login prompt and got logged in as myself. I note that I couldn't get logged in as root - I'll have to check my notes to see if I set up a root password (I would think you'd have to have one of those).

Couple of items:

1) The second boot attempt I tried omitting the initrd command. Sure enough, the boot stopped after emitting its console messages, and the keyboard lights were flashing, like on my initial attempt of a few days ago. Looks like the initrd command is pretty important. I think I saw somewhere that v2.6 and up require it. That's init-ram-drive, so...? grub.pdf says:

Load an initial ramdisk for a Linux format boot image and set the
appropriate parameters in the Linux setup area in memory.

2) On the laptop my friend set up for me, he has listed 2.6.27-9 in the menu.lst file. Tab completion on my desktop gives -7, so eventhough we're both using Ubuntu v8.10, apparently there are different builds on the CDs out there. I ordered mine. I don't know where he got his CD.

Thanks much! I'll consider this closed now, but am curious about those two items.

Chuck
 
Old 09-21-2009, 07:23 PM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
yes I would check your notes...you should have been asked to set up a root password.

once you find it...you can edit your /boot/grub/menu.lst to have kernel parameters like quiet in there.
however Ubuntu may not use /boot/grub for its config file....some use /etc/....so look first at /boot/grub then at /etc/ then /etc/grub/
 
Old 09-21-2009, 08:28 PM   #5
Crito
Senior Member
 
Registered: Nov 2003
Location: Knoxville, TN
Distribution: Kubuntu 9.04
Posts: 1,168

Rep: Reputation: 53
Root is disabled by default with Ubuntu. There's also no wheel group. But if you precede your commands with sudo it'll prompt for your primary user's password and everything works just like root.

I'm still getting used to it myself. I guess I don't have to worry about anyone installing a 'root'kit though. hehe
 
Old 09-22-2009, 01:05 AM   #6
chursch
LQ Newbie
 
Registered: Sep 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Yes, when I was running gparted from the Ubuntu CD, I didn't have to supply a root password or anything, just "sudo gparted". Just boot up off the CD, and then I have free rein on a computer. Mount drives and roam where I want. Seems like quite a security risk. Better put a lock on the CD drive!
 
  


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
Dual booting w/GRUB - setting console resolution? Alstare Slackware 3 06-29-2008 11:47 PM
Console messages gn00kie Linux - General 2 02-08-2006 03:22 AM
Console messages Stephanie Linux - General 4 08-15-2003 03:33 PM
Strange console messages fweaver Linux - Security 4 12-27-2002 09:29 AM
Console Messages bfloeagle Linux - General 6 06-30-2001 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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