[LFS Trac] #2698: Small update on the grub-page (8.4.)

LFS Trac trac at linuxfromscratch.org
Thu Jun 24 22:57:04 PDT 2010


#2698: Small update on the grub-page (8.4.)
----------------------+-----------------------------------------------------
 Reporter:  splotz90  |        Owner:  lfs-book@…                   
     Type:  task      |       Status:  closed                       
 Priority:  normal    |    Milestone:  6.7                          
Component:  Book      |      Version:  SVN                          
 Severity:  normal    |   Resolution:  invalid                      
 Keywords:            |  
----------------------+-----------------------------------------------------

Comment(by splotz90):

 The search command does something for LFS ...

 This command set the root-device for GRUB to hd0,1:
 {{{
 set root=(hd0,1)
 }}}


 After that GRUB will look for a partiton with the UUID ''06910bbb-95ff-
 43f7-ac74-d44fe9caecf1'':

 {{{
 search --no-floppy --fs-uuid --set 06910bbb-95ff-43f7-ac74-d44fe9caecf1
 }}}

 If there's no partition with this UUID, GRUB will use the device set
 before (hd0,1). If a partition with this UUID exists, GRUB will boot from
 this partiton. In the most cases the partition set with the first command
 will have the UUID in the search command.

 This means: GRUB can boot if the device has changed (for example hd0,1 -->
 hd1,1) and if a new filesystem was created.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2698#comment:6>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.



More information about the lfs-book mailing list