Changes

Jump to navigation Jump to search
no edit summary
Line 100: Line 100:  
   
 
   
 
  unused devices: <none>
 
  unused devices: <none>
 +
 +
With a new disk it might be interesting to fix the grub to avoid a problem of grub error at the starting
 +
 +
== HowTo: Write the GRUB boot sector ==
 +
 +
[root@ ~]# '''grub'''
 +
 +
    GNU GRUB  version 0.95  (640K lower / 3072K upper memory)
 +
 +
  [ Minimal BASH-like line editing is supported.  For the first word, TAB
 +
    lists possible command completions.  Anywhere else TAB lists the possible
 +
    completions of a device/filename.]
 +
 +
grub> '''device (hd0) /dev/sdb'''
 +
 +
grub> '''root (hd0,0)'''
 +
  Filesystem type is ext2fs, partition type 0xfd
 +
 +
grub> '''setup (hd0)'''
 +
  Checking if "/boot/grub/stage1" exists... no
 +
  Checking if "/grub/stage1" exists... yes
 +
  Checking if "/grub/stage2" exists... yes
 +
  Checking if "/grub/e2fs_stage1_5" exists... yes
 +
  Running "embed /grub/e2fs_stage1_5 (hd0)"...  16 sectors are embedded.
 +
succeeded
 +
  Running "install /grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/grub/stage2 /grub/grub.conf"... succeeded
 +
Done.
 +
 +
grub> '''quit'''

Navigation menu