Advertisement
Guest User

bootable usb drive info...

a guest
Jul 7th, 2016
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. bootable usb thumb drive with 2 partitions
  2.  
  3. partition 1 - ntfs
  4. partition 2 - ext4
  5.  
  6. copy boot folder to partition 2.
  7.  
  8. set partition 2 as bootable
  9.  
  10. from linux box
  11.  
  12. CAN use gparted to create partitions
  13.  
  14. 1 setup partitions
  15. 2 format partitions
  16. 3 mount ext4 partition on linux box
  17. 4 mkdir "/mnt/usbp2/boot/grub"
  18. 5 from linux box run "grub-install --boot-directory /mnt/partition2/boot /dev/usbp2"
  19. 6 replace "/mnt/usbp2/boot/grub/grub.cfg" with this grub.cfg
  20. 7 copy overwriting /"mnt/usbp2" with this stuff (memdisk, *.iso, etc)
  21.  
  22. -----------------------------------------
  23. version 2.0
  24.  
  25. zero out partition table
  26. sudo dd if=/dev/zero of=/dev/sdx bs=512 count=4
  27.  
  28. gparted
  29. device --> create partition table "msdos"
  30. create 2 partitions
  31. p1 = ntfs (7.xGB)
  32. p2 = ext4 (500MB)
  33. exit
  34.  
  35. install grub bootloader to usb device
  36. sudo grub-install --boot-directory /mnt/usbp2/boot /dev/sdx
  37.  
  38. copy boot folder to usb p2
  39. sudo cp -r ./boot /mnt/usbp2
  40.  
  41. reboot to usb and test.
  42. ------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement