Make Win7 USB disk boot mirror under openSUSE

Source: Internet
Author: User
Tags mkdir

First prepare a clean USB disk with a capacity above 4G and Win7 ISO image.

Install Ms-sys

sudo zypper in Ms-sys

General U disk plug in the computer, the corresponding device name is/DEV/SDB. The/DEV/SDB can be partitioned with Cfdisk or FDISK. It is recommended that all spaces be placed in a single partition, that is, only/dev/sdb1. The most important thing is to set the/DEV/SDB1 as a bootable mode (bootable flag set)

Sudo/sbin/cfdisk/dev/sdb

The/DEV/SDB1 format is then formatted as NTFS

Sudo/sbin/mkfs.ntfs-f/DEV/SDB1

Then write the Win7 master boot record on the/dev/sdb with Ms-sys

sudo ms-sys-7/dev/sdb

Mount the ISO Win7 to a temporary directory

sudo mkdir/mnt/iso

sudo 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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.