Italiano English
Modifica History Actions

Differenze per "Hybrid_UEFI_MBR_USB_Drive"

Differenze tra le versioni 2 e 5 (in 3 versioni)
Versione 2 del 2016-09-14 11:20:19
Dimensione: 298
Autore: 104-102rev
Commento:
Versione 5 del 2016-09-14 12:52:12
Dimensione: 2326
Autore: 91
Commento:
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 7: Linea 7:
=== Step 1: get the proper /dev ===
From now on we will use a root shell because almost all commands we will use require it.

`root@debianvm:~#` '''fdisk -l'''<<BR>>

`...............`

`Disk /dev/sdc: 14.9 GiB, 16005464064 bytes, 31260672 sectors`<<BR>>
`Units: sectors of 1 * 512 = 512 bytes`<<BR>>
`Sector size (logical/physical): 512 bytes / 512 bytes`<<BR>>
`I/O size (minimum/optimal): 512 bytes / 512 bytes`<<BR>>
`Disklabel type: dos`<<BR>>
`Disk identifier: 0x00000000`<<BR>>

`Device Boot Start End Sectors Size Id Type`<<BR>>
`/dev/sdc1 2 31260671 31260670 14.9G af HFS / HFS+`<<BR>>


Find the right dev (ie: mine was '''/dev/sdc''' and ''i will use it in the guide'').

=== Step 2: make GUID partition ===
`root@debianvm:~#` '''gdisk /dev/sdc''' <<BR>>
And then we are in gdisk prompt; from now on just give the commands in '''bold''' and the press enter.

`root@debianvm:~#` '''gdisk /dev/sdc'''<<BR>>
`GPT fdisk (gdisk) version 0.8.10`<<BR>>

`Partition table scan:`<<BR>>
  `MBR: MBR only`<<BR>>
  `BSD: not present`<<BR>>
  `APM: not present`<<BR>>
  `GPT: not present`<<BR>>


`***************************************************************`<<BR>>
`Found invalid GPT and valid MBR; converting MBR to GPT format`<<BR>>
`in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by`<<BR>>
`typing 'q' if you don't want to convert your MBR partitions`<<BR>>
`to GPT format!`<<BR>>
`***************************************************************`<<BR>>

`Warning! Main partition table overlaps the first partition by 32 blocks!`<<BR>>
`You will need to delete this partition or resize it in another utility.`<<BR>>

`Warning! Secondary partition table overlaps the last partition by`<<BR>>
`33 blocks!`<<BR>>
`You will need to delete this partition or resize it in another utility.`<<BR>>

`Command (? for help): `'''o'''<<BR>>
`This option deletes all partitions and creates a new protective MBR.`<<BR>>
`Proceed? (Y/N):`''' y'''<<BR>>

An Hybrid UEFI GPT + BIOS GPT/MBR boot USB disk is a disk that works on both UEFI and BIOS PCs.

Requisites:

A working Linux installation with the following packages: grub2, grub2-efi, gdisk (on Debian Jessie: grub-pc-bin, grub-efi, grub-efi-amd64, gdisk) An USB drive Some Linux ISO.

Step 1: get the proper /dev

From now on we will use a root shell because almost all commands we will use require it.

root@debianvm:~# fdisk -l

...............

Disk /dev/sdc: 14.9 GiB, 16005464064 bytes, 31260672 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdc1           2 31260671 31260670 14.9G af HFS / HFS+

Find the right dev (ie: mine was /dev/sdc and i will use it in the guide).

Step 2: make GUID partition

root@debianvm:~# gdisk /dev/sdc
And then we are in gdisk prompt; from now on just give the commands in bold and the press enter.

root@debianvm:~# gdisk /dev/sdc
GPT fdisk (gdisk) version 0.8.10

Partition table scan:

  • MBR: MBR only
    BSD: not present
    APM: not present
    GPT: not present

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************

Warning! Main partition table overlaps the first partition by 32 blocks!
You will need to delete this partition or resize it in another utility.

Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.

Command (? for help): o
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): y