GRUB problem

Booting DSL from hard drive issue

Page 1 of 1

5 Replies - 1245 Views - Last Post: 23 July 2007 - 11:14 PM

#1 enpey   User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 75
  • Joined: 02-May 07

GRUB problem

Posted 22 July 2007 - 12:58 AM

Hey all,

I have decided to install DSL onto my hard drive (install to hard drive, not a frugal install), and am now trying to edit GRUB so as I can boot into DSL. I already have a GRUB install from which I boot XP and Ubuntu, but I am unable to boot DSL now.

They are set up as follows:
SATA disk
Partition 1 - XP
Partition 2 - Ubuntu
Partition 3 - Swap
Partition 4 - /home for Ubuntu
IDE disk
Part 1 - Storage for XP
Part 2 - DSL
Part 3 - Swap

From the grub command line I enter:

grub> root (hd1,1)
grub> kernel /boot/linux24

and it starts loading DSL, but eventually comes up with

kmod: failed to exec /sbin/modprobe -s -k ide-cd, errno=2
VFS: Cannot open root device "" or 03:01
Please append a correct "root=" boot option
Kernel Panic: VFS: Unable to mount root fs on 03:01



Or entering:

grub> root=/dev/hdb2
grub> kernel /boot/linux24

gives me an error (in GRUB) of

Error 11: Unrecognised device string


I had just finished install to hard drive from DSL and was rebooting where it said the install needed to be finished, but I am unable to get into the installed version.
Sorry for the wall of text, anyone know what I need to do or any suggestions?

Is This A Good Question/Topic? 0
  • +

Replies To: GRUB problem

#2 enpey   User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 75
  • Joined: 02-May 07

Re: GRUB problem

Posted 22 July 2007 - 06:16 AM

Ok, I have got it to work - but I'm not sure why it works...
/boot/grub/menu.lst entry for DSL now reads:

root (hd1,1)
kernel /boot/linux24 ro root=/dev/hdb2

If someone could explain to me why root=/dev/hdb2 has changed anything I would greatly appreciate it. I thought that the above line root (hd1,1) mounted the root drive?

This post has been edited by enpey: 22 July 2007 - 06:17 AM

Was This Post Helpful? 0
  • +
  • -

#3 Nova Dragoon   User is offline

  • The Innocent Shall Suffer, Big Time
  • member icon

Reputation: 38
  • View blog
  • Posts: 6,169
  • Joined: 16-August 01

Re: GRUB problem

Posted 22 July 2007 - 08:16 PM

When you usually boot into linux you boot into an initial ram disk (initrd) which sets somethings up (like driver modules for your harddisk or whatever) it is a mini root file system. Then it does a switch root to the real root specified in the kernel parameter.


Basically you are telling the kernel where to look for the rest of the system.
Was This Post Helpful? 0
  • +
  • -

#4 enpey   User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 75
  • Joined: 02-May 07

Re: GRUB problem

Posted 23 July 2007 - 02:17 AM

View PostNova Dragoon, on 23 Jul, 2007 - 01:16 PM, said:

When you usually boot into linux you boot into an initial ram disk (initrd) which sets somethings up (like driver modules for your harddisk or whatever) it is a mini root file system. Then it does a switch root to the real root specified in the kernel parameter.


Basically you are telling the kernel where to look for the rest of the system.


So why was I having an issue with that? hdb2 is hd(1,1).
Was This Post Helpful? 0
  • +
  • -

#5 Nova Dragoon   User is offline

  • The Innocent Shall Suffer, Big Time
  • member icon

Reputation: 38
  • View blog
  • Posts: 6,169
  • Joined: 16-August 01

Re: GRUB problem

Posted 23 July 2007 - 01:56 PM

you needed to add the parameters to the kernel line
the (ro root=/dev/hdb2)
Was This Post Helpful? 0
  • +
  • -

#6 enpey   User is offline

  • D.I.C Head

Reputation: 7
  • View blog
  • Posts: 75
  • Joined: 02-May 07

Re: GRUB problem

Posted 23 July 2007 - 11:14 PM

Ok.

Thanks for that Nova Dragoon
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1