Thread: Общие вопросы (General Questions)/Installing Windows Server 2008, 2016 or 2019 on a bootable USB

Installing Windows Server 2008, 2016 or 2019 on a bootable USB

source


Start a command line utility called diskpart. This can be done directly from start/run or from a command prompt. Comments are between {}.

diskpart {This will start diskpart from a command prompt}
list disk {This will list all available disks in the system}
select disk 1 {This will select your usb disk, if it is called 1 in your system}
clean {This will erase ALL information on the currently selected disk}
create partition primary 
select partition 1 
active 
format fs=fat32 
assign 
exit

Now we need to copy the boot sector.  Make sure that you are still within the command prompt window

D:  (this is moubnted ISO image as a CD of the WIndows server media)

cd boot

Note: Run “bootsect /help” for detailed usage instructions.

bootsect /nt60 e:

Target volumes will be updated with BOOTMGR compatible bootcode.

Bootcode was successfully updated on all targeted volumes.


When you are finished with diskpart, all you need to do is copy all files from your Windows Vista / Windows Server 2008 installation media to the usb disk.

xcopy d:\*.* /s/e/f e:\

, 2016



Re: Installing Windows Server 2008 on a bootable USB
To create a bootable USB flash drive



Re: Installing Windows Server 2008 on a bootable USB
Advice from Dell



Re: Installing Windows Server 2008 or 2016 on a bootable USB

Windows 2016


To create a bootable USB flash drive

  1. Insert a USB flash drive into a running computer.

  2. Open a Command Prompt window as an administrator.

  3. Type diskpart.

  4. In the new command line window that opens, to determine the USB flash drive number or drive letter, at the command prompt, type list disk, and then click ENTER. The list disk command displays all the disks on the computer. Note the drive number or drive letter of the USB flash drive.

  5. At the command prompt, type select disk <X>, where X is the drive number or drive letter of the USB flash drive, and then click ENTER.

  6. Type clean, and the click ENTER. This command deletes all data from the USB flash drive.

  7. To create a new primary partition on the USB flash drive, type create part pri, and then click ENTER.

  8. To select the partition that you just created, type select part 1, and then click ENTER.

  9. To format the partition, type format fs=ntfs quick, and then click ENTER.

     Important

    If your server platform supports Unified Extensible Firmware Interface (UEFI), you should format the USB flash drive as FAT32 rather than as NTFS. To format the partition as FAT32, type format fs=fat32 quick, and then click ENTER.

  10. Type active, and then click ENTER.

  11. Type exit, and then click ENTER.

  12. When you finish preparing your custom image, save it to the root of the USB flash drive.





Re: Installing Windows Server 2008, 2016 or 2019 on a bootable USB

source


To create the USB drive to install Windows Server 2019 on BIOS (MBR) systems.


Use PowerShell with Administrative priveleges:


# Define Path to the Windows Server 2019 ISO
$ISOFile = "C:\Temp\WindowsServer2019.iso"
 
# Get the USB Drive you want to use, copy the friendly name
Get-Disk | Where BusType -eq "USB"
 
# Get the right USB Drive (You will need to change the FriendlyName)
$USBDrive = Get-Disk | Where FriendlyName -eq "Kingston DT Workspace"
 
# Replace the Friendly Name to clean the USB Drive (THIS WILL REMOVE EVERYTHING)
$USBDrive | Clear-Disk -RemoveData -Confirm:$true -PassThru
 
# Convert Disk to MBR
$USBDrive | Initialize-Disk -PartitionStyle MBR
 
# Create partition primary and format to NTFS
$Volume = $USBDrive | New-Partition -UseMaximumSize -AssignDriveLetter | Format-Volume -FileSystem NTFS -NewFileSystemLabel WS2019
 
# Set Partiton to Active
$Volume | Get-Partition | Set-Partition -IsActive $true
 
# Mount ISO
$ISOMounted = Mount-DiskImage -ImagePath $ISOFile -StorageType ISO -PassThru
 
# Driver letter
$ISODriveLetter = ($ISOMounted | Get-Volume).DriveLetter
 
# Copy Files to USB
Copy-Item -Path ($ISODriveLetter +":\*") -Destination ($Volume.DriveLetter + ":\") -Recurse
 
# Dismount ISO
Dismount-DiskImage -ImagePath $ISOFile




Re: Installing Windows Server 2008, 2016 or 2019 on a bootable USB

Another explanation how to create bootable USB for Windows 2016 server:


How-to Create Bootable Windows Server 2016 USB Thumb Drive for Installing OS