Create a Win7 U disk boot image

  
under OpenSUSE First, prepare a clean U disk with a capacity of 4G or more, and an ISO image of Win7.
Install ms-sys
sudo zypper in ms-sys
After the U disk is plugged into the computer, the corresponding device name is /dev/sdb. You can use cfdisk or fdisk to make partition adjustments for /dev/sdb. It is recommended to put all the space in one partition, that is, only one partition /dev/sdb1. The most important thing is to set /dev/sdb1 to bootable mode (set the bootable flag)
sudo /sbin/cfdisk /dev/sdb
and then format /dev/sdb1 to ntfs format
Sudo /sbin/mkfs.ntfs -f /dev/sdb1
Then use ms-sys to write Win7's master boot record to /dev/sdb
sudo ms-sys -7 /dev/sdb
Mount Win7 ISO to a temporary directory
sudo mkdir /mnt/isosudo mount -o loop win7.iso /mnt/iso
mount /dev/sdb1
sudo mkdir /mnt /usb
mount /dev/sdb1 /mnt/usb
Copy the contents of ISO to USB
cp -r /mnt/iso/* /mnt/usb/
Get it!

Copyright © Windows knowledge All Rights Reserved