Maluvia

Grub2 Syntax for Chainloading

Nov 13th, 2012
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. To chainload a Windows OS: (on partition 2 of drive 0)
  2.  
  3. # Entry (5) WinOS
  4. menuentry "WinOS" {
  5. insmod chain
  6. insmod ntfs
  7. set root=(hd0,2)
  8. chainloader +1
  9. }
  10.  
  11. To chainload grub on a different partition:
  12.  
  13. # Entry (3) TinyCore - Test
  14. menuentry "TC-Test" {
  15. insmod chain
  16. set root=(hd0,7)
  17. chainloader +1
  18. }
  19.  
  20. You should not have do an insmod 'filesystem' if it is any ext2,ext3,ext4
  21.  
  22. Otherise include insmod filesystem.mod after insmod chain, where 'filesystem' is one of the following:
  23.  
  24. affs,afs,afs_be,befs,befs_be,btrfs,cpio,ext2,fat,hfs,hfsplus,iso9660,
  25. jfs,minix,minix2,nilfs2,ntfs,pxe,reiserfs,sfs,tar,udf,ufs1,ufs2,xfs,zfs
Advertisement
Add Comment
Please, Sign In to add comment