On Tue, Sep 09, 2014 at 06:35:41PM -0700, Michael Havens wrote:
> On Tue, Sep 9, 2014 at 6:14 PM, Michael Havens <[email protected]> wrote:
> 
> >
> > okay.... I got the GUI computer going again. So I type in:
> >
> >    pico /boot/grub/grub.cfg
> >
> > and the very first lines say:
> >
> >    #
> >    # DO NOT EDIT THIS FILE
> >    #
> >    # It is automatically generated by grub-mkconfig using templates
> >    # from /etc/grub.d and settings from /etc/default/grub
> >    #

 Don't believe it ;-)  Actually, chmod +w probably helps.  In LFS we
don't normally use grub-mkconfig.  If somebody has a machine where
they are trying to keep at least one non-LFS distro up-to-date, then I
guess grub-mkconfig might be worth exploring.  But for normal LFS
users, vim /boot/grub/grub.cfg is the way to go.

 The grub-mkconfig script is an interesting beast, and occasionally
useful : my experience is that it generally tries to match every
kernel it can find, to every linux system it finds, with two
versions (normal and recovery, or something like that).  But a few
days ago I changed one of my disks to GPT partitions and it was
reassuring to know what grub was calling my /boot partition -
something like hd0,gpt2 I think.
> >
> > I inspected the two files it mentions to see if there was an obvious way
> > to add:
> >
> >      menuentry "GNU/Linux, Linux 3.13.3-lfs-7.5" {
> >         linux   /boot/vmlinuz-3.13.3-lfs-7.5 root=/dev/sda2 ro
> >      }
> >
> > but I didn't see one. (I am thinking I need to change the '/dev/sda2' to
> > '.../sda6' because that is the partition I put lfs on)

 Yes, add it at the end of grub.cfg but change it to the LFS partition.

> > Maybe I should do a boot partition.

 If you do not already have a suitable small partition, you will
need to repartition.  In that case, it is probably best to get as
much as you can from the current build - I don't think you have
booted LFS yet, so it is possible that your kernel config might be
less than perfect.  In any case, a completed LFS is sparse, most
people want quite a lot of other things - until your LFS/BLFS is as
useful to you as your debian system, keep both of them.

 When you repartition, make good backups and understand that the
partition numbers might change (for LFS, the root= on the grub
command line, and any partitions mentioned in fstab).  Planning is
useful, so is flexibility - in the last fortnight I have
repartitioned all three of my desktop systems (BLFS nowadays is so
big ;) - the first was a breeze, the second had problems using a
particular external disk on a current kernel (still haven't checked
if that is a continuing problem - I fell back to 3.14), and for the
third my network did not work with SystemRescueCD which was a
surprise (most of my backups are on nfs).  So, I guess that
repartitioning is not something to do without some prior thought.
> >
> > :-)~MIKE~(-:
> >
> 
> I  just noticed something in grub.conf:
> 
>    ### BEGIN /etc/grub.d/40_custom ###
>    # This file provides an easy way to add custom menu entries.  Simply
>    type
>    the
>    # menu entries you want to add after this comment.  Be careful not to
>    change
>    # the 'exec tail' line above.
>    ### END /etc/grub.d/40_custom ###
> 
> So is this blurb telling us TO edit the file even though the first lines in
> the file tell us not to?
> I think I need a boot partition because I plan on reformatting the debian
> partition when I finish with this.
> :-)~MIKE~(-:

 No, it is telling you to put weird things (e.g. memtest86) in the
40_custom file.

ĸen
-- 
Nanny Ogg usually went to bed early. After all, she was an old lady.
Sometimes she went to bed as early as 6 a.m.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to