Guest User

Untitled

a guest
Jan 3rd, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. gdisk /dev/sdx
  2.  
  3. GPT fdisk (gdisk) version 0.6.14
  4.  
  5. Partition table scan:
  6. MBR: MBR only
  7. BSD: not present
  8. APM: not present
  9. GPT: not present
  10.  
  11.  
  12. ***************************************************************
  13. Found invalid GPT and valid MBR; converting MBR to GPT format.
  14. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by typing 'q' if
  15. you don't want to convert your MBR partitions to GPT format!
  16. ***************************************************************
  17.  
  18.  
  19. Command (? for help):
  20.  
  21. Command (? for help): n
  22. Partition number (2-128, default 2): 2
  23. First sector (34-7831518, default = 34) or {+-}size{KMGTP}:
  24. Information: Moved requested sector from 34 to 2048 in
  25. order to align on 2048-sector boundaries.
  26. Use 'l' on the experts' menu to adjust alignment
  27. Last sector (2048-421887, default = 421887) or {+-}size{KMGTP}:
  28. Current type is 'Linux/Windows data'
  29. Hex code or GUID (L to show codes, Enter = 0700): L
  30. 0700 Linux/Windows data 0c01 Microsoft reserved 2700 Windows RE
  31. 4200 Windows LDM data 4201 Windows LDM metadata 7501 IBM GPFS
  32. 7f00 ChromeOS kernel 7f01 ChromeOS root 7f02 ChromeOS reserved
  33. 8200 Linux swap 8301 Linux reserved 8e00 Linux LVM
  34. a500 FreeBSD disklabel a501 FreeBSD boot a502 FreeBSD swap
  35. a503 FreeBSD UFS a504 FreeBSD ZFS a505 FreeBSD Vinum/RAID
  36. a800 Apple UFS a901 NetBSD swap a902 NetBSD FFS
  37. a903 NetBSD LFS a904 NetBSD concatenated a905 NetBSD encrypted
  38. a906 NetBSD RAID ab00 Apple boot af00 Apple HFS/HFS+
  39. af01 Apple RAID af02 Apple RAID offline af03 Apple label
  40. af04 AppleTV recovery be00 Solaris boot bf00 Solaris root
  41. bf01 Solaris /usr & Mac Z bf02 Solaris swap bf03 Solaris backup
  42. bf04 Solaris /var bf05 Solaris /home bf06 Solaris alternate se
  43. bf07 Solaris Reserved 1 bf08 Solaris Reserved 2 bf09 Solaris Reserved 3
  44. bf0a Solaris Reserved 4 bf0b Solaris Reserved 5 c001 HP-UX data
  45. c002 HP-UX service ef00 EFI System ef01 MBR partition scheme
  46. ef02 BIOS boot partition fd00 Linux RAID
  47. Hex code or GUID (L to show codes, Enter = 0700): ef00
  48. Changed type of partition to 'EFI System'
  49.  
  50. Command (? for help): p
  51. Disk /dev/sdd: 7831552 sectors, 3.7 GiB
  52. Logical sector size: 512 bytes
  53. Disk identifier (GUID): 669247F2-37F7-4797-98F9-9CE56F7EA8C8
  54. Partition table holds up to 128 entries
  55. First usable sector is 34, last usable sector is 7831518
  56. Partitions will be aligned on 2048-sector boundaries
  57. Total free space is 4029 sectors (2.0 MiB)
  58.  
  59. Number Start (sector) End (sector) Size Code Name
  60. 1 421888 7829503 3.5 GiB 0700 Linux/Windows data
  61. 2 2048 421887 205.0 MiB EF00 EFI System
  62.  
  63. Command (? for help): w
  64.  
  65. Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
  66. PARTITIONS!!
  67.  
  68. Do you want to proceed, possibly destroying your data? (Y/N): y
  69. OK; writing new GUID partition table (GPT).
  70. The operation has completed successfully.
  71.  
  72. ioreg -l -p IODeviceTree | grep firmware-abi
  73.  
  74. sudo apt-get install <package name>
  75.  
  76. menuentry "Windows 7" {
  77. set root='(hd0,gpt1)'
  78. chainloader /EFI/microsoft/bootmgfw.efi
  79. }
  80.  
  81. update-grub
  82.  
  83. /dev/sdb3 /boot/efi vfat defaults 0 1
  84.  
  85. $ ls /dev/disk/by-uuid -lah
  86. total 0
  87. drwxr-xr-x 2 root root 100 Dec 5 09:12 .
  88. drwxr-xr-x 6 root root 120 Dec 5 09:12 ..
  89. lrwxrwxrwx 1 root root 10 Dec 5 09:12 27fae347-4c7f-45cb-92d6-5f3d410599a1 -> ../../sda3
  90. lrwxrwxrwx 1 root root 10 Dec 5 09:12 4405-64C8 -> ../../sda1
  91. lrwxrwxrwx 1 root root 10 Dec 5 09:12 5243e250-8da5-4fea-aa63-61466022661d -> ../../dm-0
  92.  
  93. UUID=4405-64C8 /boot/efi vfat defaults 0 1
Add Comment
Please, Sign In to add comment