How to Burning a Install Disk of Windows from Ubuntu

sorry durty english. here is english env..

Format to USB

  1. check devices

also sdc is your usb devices


$ df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev            65895136        0  65895136   0% /dev
tmpfs           13184664     2796  13181868   1% /run
/dev/sdb2      459924552 12668192 423823708   3% /
tmpfs           65923304    47888  65875416   1% /dev/shm
tmpfs               5120        4      5116   1% /run/lock
tmpfs           65923304        0  65923304   0% /sys/fs/cgroup
...
/dev/loop5         31104    31104         0 100% /snap/snapd/9279
/dev/sdb1         523248     7944    515304   2% /boot/efi
tmpfs           13184660       32  13184628   1% /run/user/1000
/dev/sdc3       56321568  2180864  54140704   4% /media/fifi/440B-AC16
/dev/sdc1        2719744  2719744         0 100% /media/fifi/Ubuntu 20.04.1 LTS amd64

  1. unmount unmount the target device (not partition)
sudo umount /dev/sdc 
  1. delete partition and make new

$ sudo fdisk /dev/sdc

Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/sdc: 56.33 GiB, 60472426496 bytes, 118110208 sectors
Disk model: Transcend 64GB  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x56f48570

Device     Boot   Start       End   Sectors  Size Id Type
/dev/sdc1  *          0   5439487   5439488  2.6G  0 Empty
/dev/sdc2       5017392   5025327      7936  3.9M ef EFI (FAT-12/16/32)
/dev/sdc3       5439488 118110207 112670720 53.7G 83 Linux

Command (m for help): d
Partition number (1-3, default 3): 1

Partition 1 has been deleted.

Command (m for help): d
Partition number (2,3, default 3): 

Partition 3 has been deleted.

Command (m for help): d
Selected partition 2
Partition 2 has been deleted.

Command (m for help): d
No partition is defined yet!

Command (m for help): d
No partition is defined yet!

Command (m for help): p

Disk /dev/sdc: 56.33 GiB, 60472426496 bytes, 118110208 sectors
Disk model: Transcend 64GB  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x56f48570

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 
First sector (2048-118110207, default 2048): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-118110207, default 118110207): 

Created a new partition 1 of type 'Linux' and of size 56.3 GiB.


Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): c
Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.

Command (m for help): a
Selected partition 1
The bootable flag on partition 1 is disabled now.

Command (m for help): p
Disk /dev/sdc: 56.33 GiB, 60472426496 bytes, 118110208 sectors
Disk model: Transcend 64GB  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x56f48570

Device     Boot Start       End   Sectors  Size Id Type
/dev/sdc1        2048 118110207 118108160 56.3G  c W95 FAT32 (LBA)

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.


format


fifi@fifi-gpu:~$ sudo mkfs.msdos -F 32 /dev/sdc1
mkfs.fat 4.1 (2017-01-24)
fifi@fifi-gpu:~$ sudo mkfs.msdos -F 32 /dev/sdc1 -n win10
mkfs.fat 4.1 (2017-01-24)
mkfs.fat: warning - lowercase labels might not work properly with DOS or Windows

https://sites.google.com/site/androidonbeagle/linuxbootdiskformat/fdisk

Burn Windows Boot Disk

mount and copy

$ sudo mount -t auto -o loop ~/Downloads/Win10_2004_Japanese_x64.iso /mnt/win10/
mount: /mnt/win10/: /home/fifi/Downloads/Win10_2004_Japanese_x64.iso is already mounted.
fifi@fifi-gpu:/media/fifi$ cd /mnt/win10/
fifi@fifi-gpu:/mnt/win10$ ls
autorun.inf  boot  bootmgr  bootmgr.efi  efi  setup.exe  sources  support
fifi@fifi-gpu:/mnt/win10$ sudo df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev            65895136        0  65895136   0% /dev
tmpfs           13184664     2788  13181876   1% /run
/dev/sdb2      459924552 12672800 423819100   3% /
tmpfs           65923304   111372  65811932   1% /dev/shm
tmpfs               5120        4      5116   1% /run/lock
tmpfs           65923304        0  65923304   0% /sys/fs/cgroup
/dev/loop0         56320    56320         0 100% /snap/core18/1880
/dev/loop2        223232   223232         0 100% /snap/gnome-3-34-1804/60
/dev/loop1         56704    56704         0 100% /snap/core18/1885
/dev/loop4         30720    30720         0 100% /snap/snapd/8790
/dev/loop3         51072    51072         0 100% /snap/snap-store/467
/dev/loop6        261760   261760         0 100% /snap/gnome-3-34-1804/36
/dev/loop7         63616    63616         0 100% /snap/gtk-common-themes/1506
/dev/loop5         31104    31104         0 100% /snap/snapd/9279
/dev/sdb1         523248     7944    515304   2% /boot/efi
tmpfs           13184660       32  13184628   1% /run/user/1000
/dev/loop8       5063494  5063494         0 100% /mnt/win10
/dev/sdc1       59039584       32  59039552   1% /media/fifi/win10
fifi@fifi-gpu:/mnt/win10$ sudo cp /mnt/win10/* /media/fifi/win10/
cp: -r not specified; omitting directory '/mnt/win10/boot'
cp: -r not specified; omitting directory '/mnt/win10/efi'
cp: -r not specified; omitting directory '/mnt/win10/sources'
cp: -r not specified; omitting directory '/mnt/win10/support'
fifi@fifi-gpu:/mnt/win10$ sudo cp -r /mnt/win10/* /media/fifi/win10/

memo

so easy. ubuntu

Recommended Posts

How to Burning a Install Disk of Windows from Ubuntu
How to install ImageMagick on Windows 10
How to install WildFly on Ubuntu 18.04
How to open a script file from Ubuntu with VS code
How to install production Metabase on Ubuntu
RDP connection from Windows 10 to Ubuntu Desktop 20.04
How to run a GIF file from the Linux command line (Ubuntu)
I want to mess with Permission of Windows directory from WSL (ubuntu)
How to SSH into Ubuntu from a terminal with public key authentication
How to get a heapdump from a Docker container
How to install network drivers on standalone Ubuntu
How to install NVIDIA driver on Ubuntu 18.04 (Note)
How to install multiple JDKs on Ubuntu 18.04 LTS
How to Install Oracle JDK 1.8 in Ubuntu 18.04 LTS?
How to build a Pytorch environment on Ubuntu
How to get an arbitrary digit from a number of 2 or more digits! !!
How to install Docker
How to install docker-machine
How to install MySQL
How to install ngrok
How to jump from Eclipse Java to a SQL file
How to write Scala from the perspective of Java
How to deploy to Heroku from a local docker image
How to install the root certificate of Centos7 (Cybertrust)
How to install NVIDIA driver on Ubuntu ssh destination
How to remove Ubuntu when dual booting Windows and Ubuntu
[Java] How to erase a specific character from a character string
How to prevent editTextPreference of android PreferenceFragmentCompat from breaking
[Rails] How to install a decorator using gem draper
[Ubuntu20.04] From ROS-noetic installation to SLAM simulation of turtlebot3
How to write a migration from Rails datetime type to date type
[iOS] [Objective-C] How to update a widget from an Objective-C app
[Rails] How to install devise
How to create a form to select a date from the calendar
How to leave a comment
[Java] How to convert a character string from String type to byte type
How to get the longest information from Twitter as of 12/12/2016
How to install Boots Faces
How to move another class with a button action of another class.
[Ruby] How to retrieve the contents of a double hash
How to install JDK 8 on Windows without using the installer
How to install java9 on elementaryOS Freya or Ubuntu 14.04 LTS
How to install GNOME as a desktop environment on CentOS 7
[Rails] How to install simple_calendar
[Rails] How to install reCAPTCHA
How to install JDK8-10 (Mac)
How to migrate from JUnit4 to JUnit5
[jsoup] How to get the full amount of a document
How to insert a video
How to add HDD to Ubuntu
How to create a method
How to set up SSH from scratch without connecting a monitor or keyboard [Raspberry Pi, Ubuntu]
How to remotely debug a javaFX program executed by Raspberry Pi from Windows 10-From environment construction to debug execution ①-
How to remotely debug a javaFX program executed by Raspberry Pi from Windows 10-From environment construction to debug execution ②-
How to install and use Composer on an ECS instance on Ubuntu 16.04
A story of frustration trying to create a penetration environment on Ubuntu 20.04
[Webpacker] Summary of how to install Bootstrap and jQuery in Rails 6.0
Steps to install samba on CentOS 8 and connect from Windows 10 Explorer
How to install and configure the monitoring tool "Graphite" on Ubuntu
How to run a Kotlin Coroutine sample from the command line
How to install the language used in Ubuntu and how to build the environment