Advertisement
Guest User

Untitled

a guest
Jan 8th, 2015
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1.  
  2. CluelessPerson: you should locate your iso first by doing this
  3. ls
  4. ls (hdX,Y)
  5. for example :
  6. ls (hd0,1)
  7.  
  8. now to the main linux partition..
  9. assuming it is: hd0,1
  10.  
  11. assuming your installed linux partition is hd0,1
  12. assuming your iso lives in hd1,1
  13. type this :
  14.  
  15. set prefix=(hd0,1)/boot/grub
  16.  
  17. insmod linux
  18. insmod loopback
  19. insmod iso9660
  20. insmod fat
  21. insmod ntfs
  22. insmod nftscomp
  23.  
  24.  
  25. loopback loop (hd1,1)/<path to ISO>/<ISO-name.iso>
  26.  
  27. set root=(loop)
  28. linux /casper/vmlinuz boot=casper iso-scan/filename=/<ISO-name.iso> noprompt noeject
  29. initrd /casper/initrd.lz
  30.  
  31. boot
  32.  
  33. ---------
  34.  
  35. if it boots,
  36.  
  37. sudo blkid
  38.  
  39. assuming it is /dev/sda:
  40.  
  41. sudo grub-install --boot-directory=/mnt/boot /dev/sda
  42.  
  43. sudo update-grub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement