LinuxQuestions.org
Review your favorite Linux distribution.
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 10-15-2004, 10:07 AM   #1
xtrem
LQ Newbie
 
Registered: Oct 2004
Distribution: REd Hat 9
Posts: 9

Rep: Reputation: 0
grub stages


I get a weird errot when I try to make the lfs bootable

grub> setup (hd0,7)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... no
Running "install /boot/grub/stage1 (hd0,7) /boot/grub/stage2 p /boot/grub/menu
.lst "... failed

Error 22: No such partition

grub>

Do you know how to fix it???
THX
PS :I don't want it to be my main bootloader ....
 
Old 10-15-2004, 11:41 AM   #2
corbintechboy
Member
 
Registered: Sep 2003
Location: Kentucky
Posts: 480
Blog Entries: 1

Rep: Reputation: 51
Hello,
Are you sure you have the patition commands right in grub?
hda1=hd0,0
hda5=hd0,4
and up from there?
 
Old 10-15-2004, 02:50 PM   #3
xtrem
LQ Newbie
 
Registered: Oct 2004
Distribution: REd Hat 9
Posts: 9

Original Poster
Rep: Reputation: 0
The linus from scratch partition is:/dev/hda8
I think I got that rigth...
Whats this e2fs... stage???
 
Old 10-16-2004, 10:11 AM   #4
ssba
Member
 
Registered: Mar 2004
Distribution: Slackware 9.1
Posts: 44

Rep: Reputation: 15
if you follow the book, it does mention about additional stages...

Quote:
The i386-pc directory contains a number of *stage1_5 files, different ones for different file systems. Review the files available and copy the appropriate ones to the /boot/grub directory. Most users will copy the e2fs_stage1_5 and/or reiserfs_stage1_5 files.
 
Old 10-16-2004, 11:50 AM   #5
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
post YOUR /boot/grub/menu.lst

we can help better if can we see what, should/should not be there............

post your /etc/fstab also.............
 
Old 10-16-2004, 01:40 PM   #6
gkemper
LQ Newbie
 
Registered: Feb 2004
Distribution: RH 7.3, Mandrake 9.2
Posts: 7

Rep: Reputation: 0
Honestly I don't think you need the stages1_5 file. I am not entirely sure what it does but I was able to get a working system without it.

As for the partition. IF your lfs system is on /dev/hda8 then your file will be setup (hd0,7) is right. I would double check.
run fdisk /dev/hda and hit p for print.

Also you might wanna see if your lfs partition is below the 1024 cylinder range. I think it should work above but my system failed misserably like that.

You could also try booting with a rescue disk or a distro CD (Slackware works awesome). If that doesn't boot it then grub won't be able to either. Maybe you have a hard drive issue.
 
Old 10-24-2004, 12:07 AM   #7
xtrem
LQ Newbie
 
Registered: Oct 2004
Distribution: REd Hat 9
Posts: 9

Original Poster
Rep: Reputation: 0
Hey guy THX for the help but I managed to install grub of a floppy(I read this in an grub tutorial) ....my LFS is now complete ....I'm going Beyond LFS very soon..
 
  


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 mismatched stages? exodist Linux - Software 2 01-24-2005 01:54 PM
downloading gentoo in stages? Zhou Yi Linux - Newbie 2 12-13-2004 12:21 PM
Stages Gentoo instalation Bendert_katier Linux - Software 1 11-02-2004 02:15 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
help me!!..final stages of install..please linfreak Slackware 15 11-09-2003 08:33 AM

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

All times are GMT -5. The time now is 11:17 AM.

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