LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-10-2006, 09:00 AM   #1
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
Grub error right at end


I've got to the very last part of this lfs install and have a grub problem. I'm doing LFS 6.1.1 using mandriva LE2005.

All has worked up till now. Trying to put the boot loader onto a floppy appeared not to work. There was no noise from the floppy drive, although no errors on screen. Just the usual files in, files out etc.

Anyway, I launched the grub screen, and telling it

root (hd0,2)

(For /dev/hda3) returns error 21, device not found. Somethings wrong here. I'd prefer jsut to put it on a floppy anyway, as mandriva uses lilo. I'm not familiar with grub either.

At the moment my /boot/grub directory has this in it:

e2fs_stage1_5 iso9660_stage1_5 reiserfs_stage1_5 stage1 stage2

I stopped yesterday at the end of chapter 6, so perhaps I've missed something when chrooting back into the build.

Thanks.

-----------------------------------------

Just to add here that using tab in the grub screen after typing 'root' gives me the possible options of 'fd0' or 'cd'.

Last edited by simcox1; 02-10-2006 at 09:04 AM.
 
Old 02-10-2006, 09:55 AM   #2
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
do not know about LFS but do you have write powers to a floppy drive.....check your /etc/fstab or use the manual mount command b4 dumping stuff using the dd command.

if that fails check if you have a /boot/grub/map.device or similar named file then you may need to start grub with a force command ....since you have the manual do a search under device
 
Old 02-10-2006, 10:26 AM   #3
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Original Poster
Rep: Reputation: 30
I've got write permissions as I'm root. I'd prefer it on a floppy as well. But my boot/grub looks empty. Should I have a menu.lst in there? I don't know grub much. LFS is all about following instructions.
 
Old 02-11-2006, 08:25 AM   #4
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
normally you have a number of files under /boot/grub including the menu.lst as per tutorial.

some distros prefer to use /etc/grub.conf but this is normally a linked file to /boot/grub/menu.lst so not a good sign that you have no menu.

search the syntax of what commands you need to boot your kernel and initrd in the appropiate forum and just create the file......when you run a live cd to setup grub.....grub will search for a menu.lst file and the booting files especially the stage 1 and 2 file.....stage 1 is actually a replacement for your mbr.....but stage 2 files are the real booting files.


since you like instructions.....grab a kanotix cd and boot it and then have a look at how KANO has his structured. Basically you can use the live cd to copy all of /boot/grub from cd to your /boot and then amend his menu.lst so that it points to the correct kernel and initrd (if used) and the correct syntax for the root=/dev/hdx or sdY

Last edited by aus9; 02-11-2006 at 08:26 AM.
 
Old 02-11-2006, 02:21 PM   #5
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Original Poster
Rep: Reputation: 30
The main problem with LFS is following instructions. You can build an entire linux system from scratch, and still not have a clue what you're doing. I got it to boot, which was quite good, via a floppy. I think it was a permissions problem before as I was in a chroot but with a different password. The grub boot floppy put me at a grub prompt from where I had to tell it the root partition (hd0,2), the kernel image file, and finally tell it to boot. It's a bit cumbersome but I don't want grub on the mbr just yet. I did try adding lfs to my lilo.conf but it didn't like it.

The menu.lst is the equivalent of lilo.conf I guess.
 
Old 02-13-2006, 08:15 AM   #6
aus9
Guru
 
Registered: Oct 2003
Posts: 5,060

Rep: Reputation: Disabled
try reading my tutorial on how to create bootable floppies with your own menu that will do it all for you if you like to stay with floppy for awhile
 
Old 02-16-2006, 02:39 AM   #7
ToK
Member
 
Registered: Nov 2005
Posts: 107

Rep: Reputation: 17
Maybe it's simple: try to mount proc (mount -t proc proc /mnt/lfs/proc) since grub needs the infos from /proc. Then chroot to /mnt/lfs and try to install grub

ToK
 
Old 02-16-2006, 05:53 AM   #8
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
Are there any device nodes under /dev?
 
  


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
LXer: Wily Technology Extends End-to-End Application Visibility to oracle(R) Databases LXer Syndicated Linux News 0 12-14-2005 08:46 AM
Error at the end of a yum upgrade to FC2 stefaandk Fedora 1 07-26-2005 03:43 AM
Odd error at the end of my C++ program myrrdyn Programming 5 04-07-2005 02:28 PM
no / at the end of address gives error doralsoral Linux - Software 3 05-27-2004 10:47 AM
mandrake 8 error at end of install rmac501 Linux - Software 1 11-09-2003 12:36 PM


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