LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-10-2004, 07:02 AM   #1
Engmar
Member
 
Registered: Oct 2003
Location: The Forest
Distribution: Ubuntu, LFS, DSL
Posts: 127

Rep: Reputation: 16
Chapter 8 grub install


With a couple of bits of advice here, I've made it through the kernel
compile and am trying to install grub. My lfs is indeed on hd0,3 (hda4)
When issuing "root (hd0,3)" grub tells me "Error 21: Selected disk does not exist"

A google search has found references to bios vs. grub drive geometry
conflicts, but this seems unlikely in this case.

This is my /etc/fstab in lfs
Code:
# Begin /etc/fstab

# file system  mount-point  fs-type          options                                         dump  fsck-order

/dev/hda4       /                        ext3                defaults                                          1     1
/dev/hda3       swap               swap              pri=1                                               0     0
proc                 /proc                proc               defaults                                           0     0
sysfs                /sys                  sysfs              defaults                                           0     0
devpts             /dev/pts           devpts           gid=4,mode=620                          0     0
shm                 /dev/shm         tmpfs             defaults                                           0     0
usbfs               /proc/bus/usb usbfs             devgid=14,devmode=0660        0      0
/dev/cdrom     /mnt/cdrom     udf,iso9660  noauto,owner,ro                           0      0

# End /etc/fstab

Last edited by Engmar; 08-10-2004 at 07:18 AM.
 
Old 08-10-2004, 08:21 AM   #2
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 48
What happens when you type "root (hd" and then use TAB to get it to show you all valid disks..?
 
Old 08-10-2004, 09:22 AM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
I'll take a wild guess.........your swap should be hda4
and / should be hda3 ........you'll just need to play with it.........
I've had these errors before..........
error 23 is a parse number error
error 22 is a wrong format......
error 21 is disk does not exist..........

here is a thought..........did you compile ext3 support into your kernel???
 
Old 08-10-2004, 12:28 PM   #4
Engmar
Member
 
Registered: Oct 2003
Location: The Forest
Distribution: Ubuntu, LFS, DSL
Posts: 127

Original Poster
Rep: Reputation: 16
When I type "root (hd" and hit tab, no options are given.

In my host system (fc2) under the Gnome System Monitor,
the mounted devices are;

proc /mnt/lfs/proc (type proc)
ramfs /mnt/lfs/dev (type ramfs)
none /dev/shm (type tmpfs)
/dev/hda4 /mnt/lfs (type ext3)
sysfs /mnt/lfs/sys (type sysfs)
/dev/hda2 / (type ext3)


The relevant section in my lfs kernel config is
CONFIG_EXT3_FS=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y


Again, I'm probably missing something obvious. I've had
a few hours of sleep though, now. I'm ready for it.

edit: In fact, if I try "root (hd0," and then tab - I get the Error 21.

edit x 2: Examining my fstab from my host system, there seem to
be some serious(?) differences between its format and the format of
my lfs fstab
Code:
LABEL=/                 /                       ext3    defaults        1 1
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/lfs              /lfs                    ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/hda3               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,r
o 0 0
edit x 3: And just to be sure, I checked with parted
Code:
(parted) print                                                            
Disk geometry for /dev/hda: 0.000-28615.781 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031    101.975  primary   ext3        boot
2        101.975  15100.158  primary   ext3        
4      15100.159  27721.538  primary   ext3        
3      27721.538  28615.781  primary   linux-swap

Last edited by Engmar; 08-10-2004 at 03:15 PM.
 
Old 08-10-2004, 04:03 PM   #5
Engmar
Member
 
Registered: Oct 2003
Location: The Forest
Distribution: Ubuntu, LFS, DSL
Posts: 127

Original Poster
Rep: Reputation: 16
Would it be easier to just add a grub.conf entry on the host's grub
and use that to boot into hda4? Or is this taboo? Since lfs was
built in a host system this seems like a logical option, rather than
adding an entry to LFS's grub to boot the host. Am I missing something?
 
Old 08-10-2004, 05:15 PM   #6
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
The idea behind LFS is to tailor-make the system exactly how YOU want it, so whatever makes you happy is the basic rule.
I myself added an LFS boot entry into my host's lilo.conf, that was my preference, as I didn't see any real necessity to boot everything from LFS's grub.
 
Old 08-10-2004, 06:38 PM   #7
Engmar
Member
 
Registered: Oct 2003
Location: The Forest
Distribution: Ubuntu, LFS, DSL
Posts: 127

Original Poster
Rep: Reputation: 16
JDW, that was my thought as well. Although I am glad I had the chance to do an install of GRUB, I've opted for the host's boot manager. Now I just have to figure out what I've done/missed to make GRUB not see my partition. This really is fun. I wish I had done LFS before. I'm sure I will again.
 
Old 08-10-2004, 07:20 PM   #8
JDW
Member
 
Registered: Feb 2003
Location: Melbourne, Australia
Distribution: Ubuntu 6.10, Slackware 11.0
Posts: 192

Rep: Reputation: 30
Not only is it fun (albeit time consuming), but it gives you an incredibly lean and efficient system with nothing there that you don't want or need.
I think my next LFS install will be my main distro, but I have to finish BLFS first.

cheers,

jdw
 
  


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
udev install error chapter 6 vmlinuz101 Linux From Scratch 3 09-18-2005 10:18 PM
glibc make install problems in chapter 5 scudco Linux From Scratch 3 09-12-2004 04:12 PM
glibc in chapter 5, make install problems davemar Linux From Scratch 3 04-06-2004 03:31 AM
gcc check error (chapter 6 install) vexer Linux From Scratch 4 12-03-2003 09:39 PM
Chapter 6 glibc-2.3.1 install gabebster Linux From Scratch 14 09-24-2003 10:38 PM

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

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