Create bootable UEFI Defrag Flash Drive?

Page 1 of 2 12 LastLast

  1. Posts : 6
    Windows 10/Kali Linux
       #1

    Create bootable UEFI Defrag Flash Drive?


    Here is the issue I am currently at:

    I have a Surface Pro 4 that I want to set up a Dual Boot on. I normally wouldn't have too much of an issue resolving this on my own, but due to the Surface Pro 4 not supporting Legacy flash drives, my standard way (Booting into a MBR Flash Drive w/ an Offline OS on it and doing the defrag/moving the files to the beginning of the drive) of solving this issue has left me baffled. I've attempted downloading Rufus and utilizing a MBR ISO (Which failed, since it didn't have the EFI boot sector on it), going back and forth amongst various methods of removing secure boot (which was a doozy at first, after having to go through recovering my BitLocker key) in order to boot from legacy, all to no avail.

    Basically, I want to take my SSD, and move all the files to the beginning, which I can't do in Windows due to system files being in use (Ironically, a large portion being near the end of the drive). All I am looking for is a method to create a bootable UEFI flash drive that I can use to defrag/do this from. I've dug a little bit around on Linux and didn't find anything that seemed to be able to do it, as most options seemed only relevant to Windows PCs. Is there any options available to do this? Or would formatting and reinstalling it be the only option?

    ~ Thanks in advance
      My Computer


  2. Posts : 1,579
    Windows 10 Pro
       #2

    Welcome to TenForums, QuentinX5.

    Defragging an SSD is the last thing you want to do. There IS no "front of the drive" on an SSD. All you'll do is shorten its useful lifetime unnecessarily.

    If it's actually just moving your partitions around, that's another can of worms - there are free tools available to do that which you can't do (either conveniently or at all) with Windows native Disk Management or without knowing how to use diskpart at a command prompt.

    If it's really just partitioning you want to do, you'll get a more effective help if you post a screen shot of your partition layout in Disk Management and explain what your ultimate goal is. Here's a tutorial on how to do that: https://www.tenforums.com/tutorials/2...creenshot.html


    Do I surmise correctly that you simply want to shrink your OS partition and make room for another partition to put a 2nd OS on?
    Last edited by Word Man; 28 Feb 2016 at 20:45. Reason: Added link to DM screenshot tut - then moved it to the correct placement - doh!
      My Computer


  3. Posts : 18,424
    Windows 11 Pro
       #3

    Make a bootable flash drive of Kyhi's Recovery PE ISO:
    Windows 10 Recovery Tools - Bootable Rescue Disk - Windows 10 Forums

    Follow these instructions - just use his ISO instead of Windows installation ISO:
    USB Flash Drive - Create to Install Windows 10 - Windows 10 Forums

    Then use MiniTool Partition Wizard to shrink your existing partition and add space for your second OS. As Word Man posted - defragging is for disk type Hard Disk Drives, not for SSDs or eMMC.

    You can also probably just install MiniTool Partition Wizard free and use it from within Windows - when shrinking the current OS partition it will tell you it needs to restart to do so.
    Best Free Partition Manager for Windows | MiniTool Partition Free
      My Computer


  4. Posts : 4,131
    Windows 3.1 to Windows 11
       #4

    Make a bootable flash drive of Kyhi's Recovery PE ISO:
    Windows 10 Recovery Tools - Bootable Rescue Disk - Windows 10 Forums

    Follow these instructions - just use his ISO instead of Windows installation ISO:
    USB Flash Drive - Create to Install Windows 10 - Windows 10 Forums
    Never in my life has there every been a need to use RUFUS to create bootable PE Media....

    Just copy contents of ISO to Fat32 formatted USB
      My Computer


  5. Posts : 18,424
    Windows 11 Pro
       #5

    Thank you for the polite correction.
    Last edited by NavyLCDR; 28 Feb 2016 at 21:27.
      My Computer


  6. Posts : 6
    Windows 10/Kali Linux
    Thread Starter
       #6

    Word Man said:
    Welcome to TenForums, QuentinX5.

    Defragging an SSD is the last thing you want to do. There IS no "front of the drive" on an SSD. All you'll do is shorten its useful lifetime unnecessarily.

    If it's actually just moving your partitions around, that's another can of worms - there are free tools available to do that which you can't do (either conveniently or at all) with Windows native Disk Management or without knowing how to use diskpart at a command prompt.

    If it's really just partitioning you want to do, you'll get a more effective help if you post a screen shot of your partition layout in Disk Management and explain what your ultimate goal is. Here's a tutorial on how to do that: https://www.tenforums.com/tutorials/2...creenshot.html


    Do I surmise correctly that you simply want to shrink your OS partition and make room for another partition to put a 2nd OS on?
    That is exactly what I am trying to do; shrink the space on my Windows partition by about 20GB so I can add in a Linux OS. The issue is that there are system files located at the end of the partition, so I can only shrink it by about 1GB (Which isn't enough for me to install an OS on). Here is a picture to better explain why I am trying to migrate those files closer to the front of the partition: Create bootable UEFI Defrag Flash Drive?-space.png


    Kyhi said:
    Never in my life has there every been a need to use RUFUS to create bootable PE Media....

    Just copy contents of ISO to Fat32 formatted USB
    The problem is not so much creating a formatted USB (Trust me, I have plenty of those bootable USBs laying around for legacy support). It's booting from an EFI-enabled flash drive. The Surface Pro doesn't support the use of MBR bootloaders, so I need to create an EFI-bootable flash drive that I can do some sort of disk management from, since the files I need to move are system files and untouchable as long as I am inside the OS. I'm trying to consolidate the free space, so the partition is as small as it can possibly be.
    Attached Thumbnails Attached Thumbnails Create bootable UEFI Defrag Flash Drive?-space.png  
      My Computer


  7. Posts : 1,579
    Windows 10 Pro
       #7

    I haven't got first hand experience with Bitlocker Encrypted drives to know all the ins and outs. However, my gut tells me you are better off turning off Bitlocker AND un-encrypting the drive before manipulating that partition.

    Once you do that, it is best if you make a complete image of the disk (with a reliable imager like, for instance, Macrium Reflect Free) to an external drive.

    Then, it would be a simple matter (if Disk Management can't shrink that C: partition further than now) to shrink the partition with the free MiniTool Partition wizard by 20 GB to make room for Linux. It will go off-line if need be to shrink the partition as ordered.

    You should be able to then re-encrypt the drive once you're done with changing the partitions.

    You wouldn't necessarily want to mess with the EFI System Partition as UEFI is using that to boot.
      My Computer


  8. Posts : 18,424
    Windows 11 Pro
       #8

    QuentinX5 said:
    That is exactly what I am trying to do; shrink the space on my Windows partition by about 20GB so I can add in a Linux OS. The issue is that there are system files located at the end of the partition, so I can only shrink it by about 1GB (Which isn't enough for me to install an OS on). Here is a picture to better explain why I am trying to migrate those files closer to the front of the partition:
    MiniTool Partition Wizard Free will move the files that it needs to in order to shrink the partition.
      My Computer


  9. Posts : 6
    Windows 10/Kali Linux
    Thread Starter
       #9

    Word Man said:
    I haven't got first hand experience with Bitlocker Encrypted drives to know all the ins and outs. However, my gut tells me you are better off turning off Bitlocker AND un-encrypting the drive before manipulating that partition.

    Once you do that, it is best if you make a complete image of the disk (with a reliable imager like, for instance, Macrium Reflect Free) to an external drive.

    Then, it would be a simple matter (if Disk Management can't shrink that C: partition further than now) to shrink the partition with the free MiniTool Partition wizard by 20 GB to make room for Linux. It will go off-line if need be to shrink the partition as ordered.

    You should be able to then re-encrypt the drive once you're done with changing the partitions.

    You wouldn't necessarily want to mess with the EFI System Partition as UEFI is using that to boot.
    Wasn't even considering the BitLocker Encryption when I first thought of doing this project... That may explain why the drive and some of it's system files are unmovable... I'm going to try turning that off first, and then move on from there. Thank you!
      My Computer


  10. Posts : 15,441
    Windows10
       #10

    Kyhi said:
    Never in my life has there every been a need to use RUFUS to create bootable PE Media....

    Just copy contents of ISO to Fat32 formatted USB
    The issue is subtle. It is how the flash drive is setup that is important ie mbr or gpt format.

    If the pc does not support legacy bios, they will not boot from an mbr based flash drive at all. You have to convert the flash drive to gpt format first, or use the 'gpt format for uefi install' option in rufus.

    Then you can simply copy contents of iso as you say.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:49.
Find Us




Windows 10 Forums