LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-16-2011, 08:48 PM   #1
bhismnarayan
Member
 
Registered: Jul 2010
Location: Jalgaon,India
Distribution: Ubuntu 10.04
Posts: 36

Rep: Reputation: 0
grub related problem for lfs 6.6


hello
whenever i run
root:/# grub-install --grub-setup=/bin/true /dev/sda
grub-probe: error: cannot find a device for /boot/grub.

No path or device is specified.
Try ``grub-probe --help'' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.

i get the above error.suggest me what to do
 
Old 02-17-2011, 01:51 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Are you still working on the following problem posted earlier: problem related to grub on lfs6.6?? (which you seem to have abandoned).
 
Old 02-17-2011, 10:35 AM   #3
bhismnarayan
Member
 
Registered: Jul 2010
Location: Jalgaon,India
Distribution: Ubuntu 10.04
Posts: 36

Original Poster
Rep: Reputation: 0
no I am not working on that.I started it all again and now I don't have multiple os installed just have ubuntu 10.04.
 
Old 02-17-2011, 11:16 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Are you replacing the boot-loader that came with Ubuntu with a specific reason? Why not let that boot-loader do all the work (a suggestion I also made in the other thread).

Hope this helps.
 
Old 02-17-2011, 11:39 AM   #5
bhismnarayan
Member
 
Registered: Jul 2010
Location: Jalgaon,India
Distribution: Ubuntu 10.04
Posts: 36

Original Poster
Rep: Reputation: 0
So from which command should I start that I am not clear about it
 
Old 02-17-2011, 11:56 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

If you've decided to let Ubuntu take care of the boot process you need to add LFS to grub.cfg (on Ubuntu).

Something like this (explained here: LFS Grub (8.4.2. Setting Up the Configuration):

Code:
menuentry "GNU/Linux, LFS 6.6" {
        insmod ext2
        set root=(hd0,2)
        linux   /boot/vmlinux-2.6.32.8-lfs-6.6 root=/dev/sda2 ro
}
menuentry "GNU/Linux, LFS 6.6 (recovery mode)" {
        insmod ext2
        set root=(hd0,2)
        linux   /boot/vmlinux-2.6.32.8-lfs-6.6 root=/dev/sda2 ro single
}
Make sure the blue parts reflect your setup, the above are just examples!!

If all went well you should now be able to boot into Ubuntu or LFS.

Hope this helps.
 
Old 02-17-2011, 12:12 PM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Note that Ubuntu keeps the "fixed" stuff in /etc/grub.d/, and you need to run grub-mkconfig to create the grub.cfg file. Failure to do this will cause you to lose your LFS settings every time Ubuntu updates its configuration files. (Note that the mkconfig script searches all drives for valid boot images, so your LFS installation might be automatically in the cgf file.)

Oh, the mkconfig output defaults to stdout, and needs to be redirected to /boot/grub/grub.cfg.
 
Old 02-17-2011, 01:47 PM   #8
bhismnarayan
Member
 
Registered: Jul 2010
Location: Jalgaon,India
Distribution: Ubuntu 10.04
Posts: 36

Original Poster
Rep: Reputation: 0
Hello
what does (hd0,2) signify .i have lfs in sda8 so what should I write there.

Last edited by bhismnarayan; 02-17-2011 at 01:49 PM.
 
Old 02-17-2011, 01:50 PM   #9
bhismnarayan
Member
 
Registered: Jul 2010
Location: Jalgaon,India
Distribution: Ubuntu 10.04
Posts: 36

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by PTrenholme View Post
Note that Ubuntu keeps the "fixed" stuff in /etc/grub.d/, and you need to run grub-mkconfig to create the grub.cfg file. Failure to do this will cause you to lose your LFS settings every time Ubuntu updates its configuration files. (Note that the mkconfig script searches all drives for valid boot images, so your LFS installation might be automatically in the cgf file.)

Oh, the mkconfig output defaults to stdout, and needs to be redirected to /boot/grub/grub.cfg.
hello sir,
How will I redirect it then,,,,
 
Old 02-17-2011, 02:41 PM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Originally Posted by bhismnarayan View Post
Hello
what does (hd0,2) signify .i have lfs in sda8 so what should I write there.
That is explained in chapter 8.4.1.

sda8 -> hd0,8

But do try PTrenholme's method(s) first! I'm not that familiar with Ubuntu and the info given is important.

Redirection is accomplished by putting a > between the command and the file you want to write the output to.

grub-mkconfig > /boot/grub/grub.cfg

You can also use the -o option which comes with grub-mkconfig: grub-mkconfig -o /boot/grub/grub.cfg (covered in chapter 8.4.2)

Hope this helps.
 
Old 02-17-2011, 03:41 PM   #11
bhismnarayan
Member
 
Registered: Jul 2010
Location: Jalgaon,India
Distribution: Ubuntu 10.04
Posts: 36

Original Poster
Rep: Reputation: 0
its solved ,,,,,,,,,,,,,,,,,,,,thank u
 
Old 02-18-2011, 01:05 AM   #12
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You're welcome

Hope you have fun with LFS.
 
  


Reply



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
problem related to grub on lfs6.6 bhismnarayan Linux From Scratch 6 11-10-2010 03:26 AM
grub related problem in ubuntu asinghpu Linux - Newbie 7 07-16-2010 02:11 AM
GRUB error 2 and possibly related problem cajunaggie Linux - General 4 08-31-2007 04:08 AM
Need help fixing grub related problem joint Linux - Software 4 12-08-2006 09:20 AM
linux /boot backup problem related with GRUB kvv_bne Linux - General 2 02-21-2006 01:04 PM

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

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