sorry durty english. here is english env..
Format to USB
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
sudo umount /dev/sdc 
$ 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