LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-24-2004, 04:34 PM   #1
BigMadDrongo
LQ Newbie
 
Registered: Jun 2003
Distribution: Various
Posts: 3

Rep: Reputation: 0
Grub can't find hd0 under Virtual PC


Hi,

I'm trying to install LFS 6.0 under Knoppix 3.7 under Virtual PC 2004 under WinXP. (Er, if you see what I mean.) I've got up to section 8.4 with no problems at all (well, I think my 'less' may be broken, but I'm not sure), but now I'm stuck.

The problem is that grub doesn't believe I have a hard disk. Obviously I do (albeit a virtual one), because that's what I've just built the system on (In case you're not familiar with it, Virtual PC works by emulating the hardware devices, though I think it passes the CPU instructions through to the host CPU. The "hard disk" is basically a loopback filesystem on an NTFS partition. AFAIK it's emulated as a completely normal boring IDE hard disk, no SATA or RAID or anything complicated.)

I'm at section 8.4 and I type 'grub' (from the host Knoppix system, within the LFS chroot) to load the grub shell. I type 'root (hd0,0)' and it tells me "Error 21: Selected disk does not exist".

The disk I've been working on (and the only HDD in the virtual system) is /dev/hda1, according to Knoppix and common sense. The partition type is ext3. Just in case weirdness is happening I've tried (hd1,0) and (hd2,0), but no go. If I type 'root (hd<tab>' the tab-completion comes up blank; if I just type 'root (<tab>' I get fd0 and cd as options. (Booting from a (virtual) CD or floppy would be OK, if annoying, but if it can't find the kernel image that's not a lot of good!)

Has anyone successfully installed LFS under Virtual PC? It's highly annoying to have got this far and apparently have it all go to waste...

I'm going to restart (for some reason the 2.6 kernel Knoppix uses hangs if I try to bring up eth0, and LFS won't build under the 2.4) and download lilo - will post if that works.

Last edited by BigMadDrongo; 12-24-2004 at 04:40 PM.
 
Old 12-24-2004, 05:20 PM   #2
BigMadDrongo
LQ Newbie
 
Registered: Jun 2003
Distribution: Various
Posts: 3

Original Poster
Rep: Reputation: 0
Fixed / kludged

Running the host system's version of grub (i.e. from outside the chroot) has worked fine. The system boots (very fast!). And grub on the LFS system has now magically acquired the ability to find hd0

Still slightly weird (unless I'm missing something) that grub couldn't find it from inside the chroot. Ah well.
 
Old 01-11-2005, 01:54 PM   #3
alex_extreme
LQ Newbie
 
Registered: Dec 2004
Location: UK
Distribution: Gentoo
Posts: 10

Rep: Reputation: 0
I am trying to compile LFS on VirtualPC under the LFS boot CD (see the download page on the LFS website).

I think this problem with grub is something to do with Knoppix controlling hard disks in a strange way
 
  


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
Grub - not booting my xp on hdd prabhatsoni Linux - General 10 10-10-2005 08:11 PM
how do I find external usb hdd? walterbyrd Debian 5 07-21-2005 10:28 PM
Linux install can't find HDD aliman2000 Linux - Hardware 7 04-27-2005 01:18 PM
Dual HDD with old grub getting in the way ab2650 Linux - Newbie 9 11-15-2003 11:09 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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