Win 8.1: Format a SD card with multiple partitions, make it GPT/UEFI bootable, make ANY removable storage/USB appear permanent

Discussion in 'Windows 8' started by MarkTwain, Dec 3, 2013.

  1. MarkTwain

    MarkTwain Pen Pal - Newbie

    Messages:
    10
    Likes Received:
    17
    Trophy Points:
    6
    Title says it all.
    Works for Win 7 x64 (also mandatory driver signing) too.

    [video=youtube;KeLTrgkm57U]http://www.youtube.com/watch?v=KeLTrgkm57U[/video]

    Abbreviated instructions:

    1. Prepare the following downloads:


      [*]MAKE A SYSTEM RESTORE POINT OR SYSTEM IMAGE
    2. Disable SecureBoot
    3. Disable signature checking/enable testsigning with the following commands in an elevated command prompt:
      • bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS
      • bcdedit -set TESTSIGNING ON
    4. Install the diskmod driver by right clicking the .inf
    5. (Reboot and hold onto your knickers)
    6. Enable the filter driver in the registry either targeted or universally:

      Code:
      [LIST][*]Universally by changing HKLM\SYSTEM\CurrentControlSet\Services\diskmod\Parameters "Removable" DWORD to 0
      [*]Targeted by creating a key HKLM\SYSTEM\CurrentControlSet\Services\diskmod\Parameters\MBR_[B][color='#FF0000']78563412[/COLOR][/B] and adding DWORD "Removable" as 0
      (The MBR signature can be read using BootIce on the target disk's offset 0x1B8 ([color='#FF0000']12345678[/COLOR]) and endian-swapped  -- create it yourself if needed)[/LIST]
      ^^ Just found a forum bug, the word "Parameters" is split into "Par ameters" unless I put it in a code box
    7. Safe eject the SD card/USB and reinsert
    8. (Disk now recognized as permanent)
    9. Format disk as needed using math:
      • Read partition size by right clicking in Disk Management and getting the # (e.g. 64068)
      • Subtract 300 for Recovery, 100 for EFI, 128 for MSR (528 total) = 63540
      • Divide 63540 / 128 = 496.40
      • Round down to 496, re-multiply by 128 = 63488 = main storage partition size
    10. Format using diskpart tool in elevated command prompt
      I TAKE NO RESPONSIBILITY FOR FAT-FINGER SYNDROME
      • list disk
      • select disk #
        MAKE SURE IT MATCHES THE DISK # IN DISK MANAGER YOU WANT TO NUKE
      • clean
      • convert gpt
      • list part
      • select part 1
      • delete part override
      • create part pri size=63488
        (or whatever you calculated)
      • format quick fs=ntfs label="SD Storage"
      • create part efi size=100
      • format quick fs=fat32 label="SDsystem"
      • create part msr size=128
      • create part pri
      • format quick fs=ntfs label="SD Recovery"
      • exit
    11. Eject the SD card
    12. Uninstall the driver by right clicking the uninstall.inf
    13. Re-enable signature checking/disable testsigning with the following commands in an elevated command prompt:
      • bcdedit -set loadoptions ENABLE_INTEGRITY_CHECKS
      • bcdedit -set TESTSIGNING OFF
    14. Re-enable secure boot

    Donations :


    (BootIce too large to attach)
    View attachment TestSignRootCA.zip
    View attachment diskmod_uninstall.zip
    View attachment diskmod_0.0.2.2.zip
    View attachment diskmod_manual.txt
     
    Last edited by a moderator: May 18, 2015
    WillAdams likes this.
  2. Steve S

    Steve S Pen Pro - Senior Member Super Moderator

    Messages:
    6,014
    Likes Received:
    1,777
    Trophy Points:
    331
    ...Going to pin this thread for now, since it may be of recurring interest.

    Nice work, MarkTwain!
     
  3. Steve S

    Steve S Pen Pro - Senior Member Super Moderator

    Messages:
    6,014
    Likes Received:
    1,777
    Trophy Points:
    331
    Last edited: Jan 18, 2014
    WillAdams likes this.
  4. testplayer

    testplayer Scribbler - Standard Member

    Messages:
    321
    Likes Received:
    26
    Trophy Points:
    41
    I don't think you need to use diskpart command line to partition the SD card. Bootice will do everything except the diskmod driver.
     
  5. bigmatt

    bigmatt Pen Pal - Newbie

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    I apologize if this isn't thread specific but its the closest I've come to answering my issue after alot of time spent browsing through various forums.

    The company i work for is very behind times tech wise, I've been hounding my bosses to join modern times and put down the paper and pencil and switch to tablets.

    So here's my problem and why I'm posting it on this forum:

    The program that we would be putting on the tablet is designed for windows ce, I know that traditionally this is only a pocket pc based OS, I need to find out weather or not windows 8 or other windows based tablet os's will run a program made for windows ce. If not other information I've found suggest that i could manually put windows ce on a tablet, the reason i'm posting all of this on this forum is because from what I've read I could potentially use this info to duel boot the tablet (if that's even possible). My last question that I'm just going to throw on here, you know just because, is if i do all of this, if any of this is even possible, is this program just going to run on the tablet in a pocket pc sized window? Again i apologize, i realize that most of this is off topic but if someone could at least point me in the right direction it would be greatly appreciated.
     
  6. calebut

    calebut Pen Pal - Newbie

    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    5
    You can also use the free tool ISO2Disc. It allows you to make a GPT/UEFI bootdisk directly from an ISO file.
     
  7. okieiam

    okieiam Scribbler - Standard Member

    Messages:
    174
    Likes Received:
    47
    Trophy Points:
    41
    Excellence
    Thank you
    Hitachi microdriver filter is banned after X 1607 due to unsigned INF
    BTW my 2 cents
    MSB_sig HKLM\CurrentControlSet\Enum\MountedVolumes\DosXXXXXX
     
    Last edited: Mar 23, 2017
Loading...

Share This Page