Dan McGhee | 1 Apr 02:57 2005
Picon

Do I Need to <setup> GRUB

I have been following LFS 6.0 religiously and am almost at the "make 
bootable" point.  My host system is Mandrake 10 (on /dev/hdb1), LFS is 
on /dev/hdb5, and I also run XP (on hda1).  My objective is to trash 
Mandrake after I get LFS up, running and configured.

In preparation for making LFS bootable, I switched from LILO to GRUB in 
my host system.  That means, I think, that GRUB is already in the MBR.  
(OT--That's one of the things that Mandrake hides from the user-- what 
is actually what's going on and is one reason why I'm switching to 
LFS.)  Based on what I've learned from the GRUB Manual and the hints, I 
think that the only thing I need to do is put the appropriate statements 
in /boot/grub/menu.lst  in EACH distro.  The "power" lines would be:

title LFS 6.0
root (hd1, 4)
kernel /boot/lfskernel-2.6.8.1 root=/dev/hdb1

title Mandrake
root (hd1,0)
kernel /boot/kernel-2.6.8.1-1-1mdk

title Windows
rootnoverify (hd0,0)
chainloader +1

I would have identical entries in each /boot/grub/menu.lst file for both 
Mandrake and LFS.  This would be done without running <setup>.

Is my logic correct?  (Have I begun to learn GRUB :)?

(Continue reading)

Andrew Benton | 1 Apr 08:47 2005
Picon

Re: Do I Need to <setup> GRUB

Dan McGhee wrote:
> 
> title LFS 6.0
> root (hd1, 4)
> kernel /boot/lfskernel-2.6.8.1 root=/dev/hdb1
> 
> title Mandrake
> root (hd1,0)
> kernel /boot/kernel-2.6.8.1-1-1mdk
> 
> title Windows
> rootnoverify (hd0,0)
> chainloader +1
> 
> I would have identical entries in each /boot/grub/menu.lst file for both 
> Mandrake and LFS.  This would be done without running <setup>.
> 
> Is my logic correct?  (Have I begun to learn GRUB :)?
> 
Looks good, sounds like you know what you're doing, but your Mandrake entry looks a 
bit bare. I think it should at least need a root=/dev/hdb1
I have something like this for Mandrake

title Mandrake
kernel (hd0,12)/boot/vmlinuz root=/dev/hda13 devfs=nomount splash=silent
initrd (hd0,12)/boot/initrd.img

Yes, you're right , you don't need to run grub, just edit /boot/grub/menu.lst
I have a separate partition with sources, documents, photos and stuff on which 
doesn't change. I installed grub's menu.lst on that partition so I don't need to 
(Continue reading)

Marko Helle | 1 Apr 09:57 2005
Picon

Re: Do I Need to <setup> GRUB

Hi Dan,

My host system is debian sarge (grub is default boot loader for it).

I cheked what menu.lst says about

title Debian GNU/Linux, kernel 2.6.8-2-686-smp
        root (hd1,2)
        kernel /boot/vmlinuz-2.6.8-2-686-smp root=/dev/hdb3 ro
        initrd /boot/initrd.img-2.6.8-2-686-smp

title Debian GNU/Linux, kernel 2.6.8-2-686-smp (recovery mode)
        root (hd1,2)
        kernel /boot/vmlinuz-2.6.8-2-686-smp root=/dev/hdb3 ro single
        initrd /boot/initrd.img-2.6.8-2-686-smp

title Windows XP
        rootnoverify (hd0,0)
        makeactive
        chainloader +1

So, I guess You may want to add that "makeactive" to Your windows
section. I'm still strugling with compiling tool chain, so I cannot
tell whether initrd is needed to boot lfs.

:)Marko

On Apr 1, 2005 9:47 AM, Andrew Benton <andy <at> benton987.fsnet.co.uk> wrote:
> Dan McGhee wrote:
> >
(Continue reading)

Matthias Berndt | 1 Apr 11:10 2005
Picon

Bootscripts Question

Greetings,

I hope it may be a little question. In /etc/rc.d/init.d/cleanfs at line
90 there is a command '> /var/run/utmp'. What does this command do? I've
read the man-pages, but I couldn't get behind it.

Thanks
Matthias Berndt
--

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

Dan McGhee | 1 Apr 12:55 2005
Picon

Re: Do I Need to <setup> GRUB

Andrew Benton wrote:

> Dan McGhee wrote:
>
>> title Mandrake
>> root (hd1,0)
>> kernel /boot/kernel-2.6.8.1-1-1mdk
>>
> Looks good, sounds like you know what you're doing, but your Mandrake 
> entry looks a bit bare. I think it should at least need a root=/dev/hdb1
> I have something like this for Mandrake
>
> title Mandrake
> kernel (hd0,12)/boot/vmlinuz root=/dev/hda13 devfs=nomount splash=silent
> initrd (hd0,12)/boot/initrd.img
>
Thanks Andrew, and Marko too, for the response.  Yes, I know the 
Mandrake entry is "thin," as you said. I put the "trimmed down" versions 
of the lines here just to check my logic.

I also must apologize to the list.  When I made the original post for 
this thread, I didn't check the properties of the message, and it got 
sent with some HTML attributes.  It was an oversight on my part.

Once again, thanks for the replies.

Dan
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
(Continue reading)

Frank Schafer | 1 Apr 15:31 2005
Picon

Re: Bootscripts Question

``>'' means shell redirection (see the bash man pages), so
'> /var/run/utmp' says: redirect nothing to /var/run/utmp. As the result
of this this file will be emptied.

Regards
Frank

On Fri, 2005-04-01 at 11:10 +0200, Matthias Berndt wrote:
> Greetings,
> 
> I hope it may be a little question. In /etc/rc.d/init.d/cleanfs at line
> 90 there is a command '> /var/run/utmp'. What does this command do? I've
> read the man-pages, but I couldn't get behind it.
> 
> Thanks
> Matthias Berndt

--

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

Ken Moffat | 1 Apr 15:39 2005
Picon

Re: Bootscripts Question

On Fri, 1 Apr 2005, Matthias Berndt wrote:

> Greetings,
>
> I hope it may be a little question. In /etc/rc.d/init.d/cleanfs at line
> 90 there is a command '> /var/run/utmp'. What does this command do? I've
> read the man-pages, but I couldn't get behind it.
>
> Thanks
> Matthias Berndt
>

It recreates the file with a length of zero - a convenient alternative
to rm followed by touch.

Ken
-- 
 das eine Mal als Tragödie, das andere Mal als Farce

--

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

Jeremy Huntwork | 1 Apr 17:43 2005
Picon

LFS News Server

Hi all:

Posting this to the main lists so that all can see. As you're likely 
aware, there has been some trouble lately with our news server here. As 
of Wednesday, we had the server back online and the mail > news gateway 
was working effectively. However, the news > mail gateway was still not 
functioning properly for all lists. In order that as few postings as 
possible are lost, at least for the time being, the news lists have been 
made read only.  If you want to post to a list, you can still do so via 
email at the corresponding list address.

Apologies for any trouble this may cause, but hopefully you'll agree 
that this is better than having "lost" posts that show up on the 
newslists, but are not reflected in the mailman archives or to 
email-only subscribers.

--
Jeremy Huntwork
--

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

bakermd@ameritech.net | 1 Apr 19:48 2005
Picon
Picon

TCL Compile Problem

Hello,

First, let me thank everyone for LFS.  I'm very much enjoying using it, and
I'm learning a lot.

I'm using LFS Version 6.0.  

My host distro is Slackware 10.  As a result, I had to upgrade the kernel,
but I think I managed to upgrade properly.  Okay, so I had a lilo disaster
(I forgot to run "lilo -v"), but everything seems to be running properly
now.

I'm not deviating from the LFS directions (to my knowledge anyway).

Until now, everything has gone well with LFS.  However, upon compiling
tcl-8.4.7, I'm receiving the following error upon "make".  Could anyone
tell me what's going on here?:

gcc -pipe -c -O2  -DTCL_DBGX= -Wall -Wno-implicit-int -fno-strict-aliasing
-fPIC -I./../generic -I. -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1
-DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1
-DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1
-DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1
-DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1
-DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1
-DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1
-DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1
-DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1        
-DTCL_SHLIB_EXT=\".so\" -DTCL_LIBRARY=\"/mnt/lfs/tools/lib/tcl8.4\" \
-DTCL_PACKAGE_PATH="\"/mnt/lfs/tools/lib\"" \
(Continue reading)

Justin Julian | 1 Apr 20:31 2005
Picon

Re: Do I Need to <setup> GRUB

You should not have to re-run grub every time you change your
grub.conf file (one of the many advantages of grub over LiLo). If you
have properly installed grub, and can boot your host system with it,
then you should just change your grub.conf file with the new
information.

Just make sure that the arguments you pass in the <kernel> statement
are correct. Always be sure to back up the file before you modify it,
and always make sure you have a boot / rescue disk handy. Always leave
your host system as the default, and add the new system in a
non-default position. If you select a non-default option at the grub
menu, and grub cannot boot that OS, grub is usually quite good at
kicking you back to the grub menu, and allowing you to choose another
OS.

Clear as mud?

On Mar 31, 2005 7:57 PM, Dan McGhee <farmerdan <at> i-rule.net> wrote:
> I have been following LFS 6.0 religiously and am almost at the "make
> bootable" point.  My host system is Mandrake 10 (on /dev/hdb1), LFS is
> on /dev/hdb5, and I also run XP (on hda1).  My objective is to trash
> Mandrake after I get LFS up, running and configured.
> 
> In preparation for making LFS bootable, I switched from LILO to GRUB in
> my host system.  That means, I think, that GRUB is already in the MBR.
> (OT--That's one of the things that Mandrake hides from the user-- what
> is actually what's going on and is one reason why I'm switching to
> LFS.)  Based on what I've learned from the GRUB Manual and the hints, I
> think that the only thing I need to do is put the appropriate statements
> in /boot/grub/menu.lst  in EACH distro.  The "power" lines would be:
(Continue reading)


Gmane