Ken Moffat wrote:
On Wed, Sep 10, 2014 at 01:12:27PM -0500, Bruce Dubbs wrote:
set root='hd0,6'
but ONLY do that in the lfs entry.
Wrong syntax I think. The traditional syntax is:
set root=(hd0,6)
Not wrong, but perhaps different from what you are used to.
OK.
Since we are now mentioning them, for the boot disk (presumably
/dev/sda) on a machine using a bios [ rather than EFI, which is a
hornet's nest of possibilities ] with a GPT partition, the
recommendation in http://www.gnu.org/software/grub/manual [ section
3.4 ] is that partition 1 should be a BIOS Boot Partition. This is
NOT the /boot partition. Unfortunately, links will not let me copy
and paste.
Yes, grub does things differently for GPT. There is what I use:
Number Start (sector) End (sector) Size Code Name
1 34 1987 977.0 KiB EF02 grub
2 1988 392612 190.7 MiB 8300 boot
3 392614 39455114 18.6 GiB 8300 debian
4 39455115 78517615 18.6 GiB 8302 home
5 78517616 82423871 1.9 GiB 8200 Linux swap
6 82423872 124366911 20.0 GiB 8300 lfs-svn
...
10 313112576 355055615 20.0 GiB 8300 lfs-20140511
11 355055616 376027135 10.0 GiB 8200 Big swap
12 376027136 417970175 20.0 GiB 8300 lfs76-rc1
For installing grub, a 1Mb partition with code EF02 is essential.
To boot, I used debian and it didn't create the partitions properly for
partitions 1-5. All partitions should really be aligned on 1 MiB (2^20
byte or 2048 sector) boundaries like this:
Number Start (sector) End (sector) Size Code Name
1 2048 104859647 50.0 GiB 8300 Linux fs
2 104859648 125831167 10.0 GiB 8300 Linux fs
3 125831168 146802687 10.0 GiB 8300 Linux fs
4 146802688 167774207 10.0 GiB 8300 Linux fs
5 167774208 188745727 10.0 GiB 8300 Linux fs
6 188745728 209717247 10.0 GiB 8E00 Linux LVM
7 209717248 230688767 10.0 GiB 8E00 Linux LVM
8 230688768 440403967 100.0 GiB 8300 Linux fs
-- Bruce
--
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