LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 01-24-2013, 05:36 PM   #1
Dako300
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
boot
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, 09:37 PM   #2
towheedm
Member
 
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Jessie
Posts: 592

Rep: Reputation: 119Reputation: 119
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:
Code:
linux /boot/bzImage root=/dev/sda5
Or, for specifying my UUID:
Code:
linux /boot/bzImage root=UUID=<device UUID>
Note also that you may need to load additional modules first before booting. Try this:
Code:
insmod part_msdos
insmod <fs_module>
set root='(hd0,msdos5)'
linux /boot/bzImage root=/dev/sda5
initrd /boot/initrd.img
boot
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, 09:10 AM   #3
Dako300
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.
 
  


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


All times are GMT -5. The time now is 09:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration