Hi Nathan,
thanks for your time . follow the steps in hint is able to install . but I got 
another problems when I did at Step 2 . following is my error message .

==========message begin====================
root:/boot/grub# fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000764ec

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       38195   306801306   83  Linux
/dev/sda2           38196       38913     5767335    5  Extended
/dev/sda5           38196       38913     5767303+  82  Linux swap / Solaris

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         100      803218+  83  Linux
/dev/sdb2             101       38913   311765422+  83  Linux

root:/boot/grub# grub-install --grub-setup=/bin/true /dev/sdb1
grub-probe: error: Cannot find a GRUB drive for /dev/sdb2.  Check your 
device.map.

Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.



root:/boot/grub# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/lfskernel-2.6.30.5
grub-probe: error: Cannot find a GRUB drive for /dev/sdb2.  Check your 
device.map.

grub-probe: error: Cannot find a GRUB drive for /dev/sdb2.  Check your 
device.map.

done
==========message end ====================

/dev/sdb1 is partition (8xxM bytes) I except for grub as hint mention . I can 
see a lot of mod under /boot/grub after grub-install . but I fail at 
grub-mkconfig . the name of my kernel is lfskernel-2.6.30.5 and map is 
lfskernel-2.6.30.5








--- 09/10/19 (一),Nathan Coulson <conat...@gmail.com> :

> On Mon, Oct 19, 2009 at 12:52 AM,
> kevin631012 <kevin631...@yahoo.com.tw>
> wrote:
> > Hi all,
> > I almost done all steps in LFS but I got a error when
> install grub
> >
> > here is paragraph in chapter 8.4
> > Caution
> > This package will only build for x86 and x86_64
> architectures containing 32-bit libs. If you chose to build
> on x86_64 without 32-bit libraries (no multilib), then you
> must use LILO instead. Information on “boot loading” for
> other architectures should be available in the usual
> resource-specific locations for those architectures.
> >
> > Q1: my computer is X86_64 , but I wonder how to know
> what 32-bit libraries is or not ?
> >
> > Q2: following is error message I got in config.log
> when I do "configure --prefix=/usr" , and I am confused
> about it .
> 
> Q1: If you compile LFS from a i386 distribution (32bit),
> LFS will be
> 32bit.  If you compile it from a X86_64 distribution,
> LFS will be
> 64bit.
> 
> Q2: Grub has to be compiled with a 32bit compiler. 
> The way the book
> is currently written, it only builds either 32bit, or
> 64bit.  [The
> reason why you would want 32bit over 64bit is mostly due
> to
> compatibility for programs that do not support 64bit. 
> At this time,
> Wine, and Grub1 are the only two programs I know of that
> only run w/
> 32bit compilers.  If I had to guess, binary only
> codec's may want
> 32bit as well].
> 
> The simplest approach would be to download & install
> another
> bootloader such as LILO or Grub2 (At this time, Grub1 is in
> the book)
> 
> I believe grub2 can be compiled 64bit, (You can download it
> at
> http://www.gnu.org/software/grub/grub-2-download.en.html). 
> Bruce has
> recently written a hint on how to compile & install
> this, viewable at
> http://www.linuxfromscratch.org/hints/downloads/files/grub2.txt
> 
> P.S. Sorry if I am misrepresenting the 32bit vs 64bit
> battle.
> 
> -- 
> Nathan Coulson (conathan)
> ------
> Location: Brittish Columbia, Canada
> Timezone: PST (-8)
> Webpage: http://www.nathancoulson.com
> -- 
> http://linuxfromscratch.org/mailman/listinfo/lfs-dev
> FAQ: http://www.linuxfromscratch.org/faq/
> Unsubscribe: See the above information page
> 

___________________________________________________ 
 您的生活即時通 - 溝通、娛樂、生活、工作一次搞定! 
 http://messenger.yahoo.com.tw/
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to