Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-24-2013, 04:36 PM   #1
LQ Newbie
Registered: Jan 2013
Posts: 16

Rep: Reputation: Disabled
Boot kernel with GRUB command line

Hello there, I am working on a linux distro (it is on sda5) and I cannot get the kernel to boot. Here are the commands I type in:
set root=(hd0,msdos5)
linux /boot/bzImage
initrd /boot/initrd.img
and press enter.

The kernel error is that it cant find the init and drops me to BusyBox. I try this with my working Ubuntu 12.04 (sda1) and it still doesnt work but when I choose the menu option, it works perfectly.
FYI:The kernel for both is a custom compiled 3.7.4 and this is inside a VM.
Old 01-24-2013, 08:37 PM   #2
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 598

Rep: Reputation: 120Reputation: 120
You must specify the root device on the kernel command-line. The root device can be specified either as the device designator or by it's UUID in the following format:
For specifying by device designator:
linux /boot/bzImage root=/dev/sda5
Or, for specifying my UUID:
linux /boot/bzImage root=UUID=<device UUID>
Note also that you may need to load additional modules first before booting. Try this:
insmod part_msdos
insmod <fs_module>
set root='(hd0,msdos5)'
linux /boot/bzImage root=/dev/sda5
initrd /boot/initrd.img
For fs_module, you need to give the correct module for the filesystem of the root device. For ext2/3/4 use ext2, for btrfs use btrfs, for jfs use jfs, etc.

Hope it helps.
Old 01-27-2013, 08:10 AM   #3
LQ Newbie
Registered: Jan 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
thank you, I thought I had to use the UUID and that is too long to memorize.


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
[SOLVED] How do I boot in to the command line/console from grub 2? NirvanaII Linux - General 4 06-15-2011 12:51 PM
Boot DVD from Grub command line Go3rg3 Linux - Newbie 4 11-10-2008 09:02 AM
Grub's Command Line Boot Winxp talisman2 Linux - Newbie 5 07-03-2007 05:17 AM
AHH!! CANNOT BOOT! Grub command line furiousn00b Slackware 14 03-31-2006 07:47 PM
Blank Screen after Suse Boot - HowTo boot from grub to command line benco420 Linux - Newbie 3 02-13-2005 05:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration