On Tue, 16 Aug 2011 17:52:44 +0200
Giorgio Cittadini <gioci...@gmail.com> wrote:

> All is OK, but when I've booted the first time using Grub, I found only
> "Linux 2.6.37-lfs-6.8" and "its recovery mode". I tried to make
> recognizable the presence of Windows 7, but I got no success.
> When I control the structure of Grub directories and files, I see:
> 
> (1) /boot/grub/grub.cfg is present and in the usual directory;
> (2) "grub.d" files are all in "/usr/etc/" instead of "/etc" (their usual
> place in my other Linux distributions, but this probably is uninfluent);
> (3) the problem is that I don't have any "/usr/etc/default/grub".
> 
> If I introduce in "/usr/etc/grub.d/40_custom" the data on Windows 7,
> nothing changes: "grub-mkconfig -o /boot/grub/grub.cfg" finds always
> only linux-lfs.
> I created the "/usr/etc/default" dir, and the underlying "grub" file
> into which I manually introduced the usual configuration, but nothing
> changed.
> What to do? Could you suggest where I mistook? What to do now: remove
> (but how?) Grub and reinstall it?

You don't need to reinstall grub. If it's working Ok and you can boot
into LFS then just edit grub.cfg to make an entry for windows,
something like this:

menuentry "Windows" {
   set root=(hd0,1)
   chainloader +1
}

(hd0,1) is the first partition on the first disk, /dev/sda1 on linux.
If Windows is on the second hard disk change that to root=(hd1,1)

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to