mkfs.ntfs -f /dev/sdf1 mkfs.vfat /dev/sdf2
mount MB2k10_5.9.0.iso /mnt/ext -t iso9660 -o loop mount /dev/sdf1 /mnt/test/
cp -R /mnt/ext/* /mnt/test
sync;umount /mnt/test/
ms-sys -7 /dev/sdf
dd if=MB2k10_5.9.0.iso of=/dev/sdf1 bs=4096
[root@oops ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT ...... sdf 8:80 1 14,7G 0 disk ......
[root@oops ~]# fdisk /dev/sdf Welcome to fdisk (util-linux 2.28.2). 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/sdf: 14,7 GiB, 15804137472 bytes, 30867456 sectors 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: 0xcd11c6b4 Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): Using default response p. Partition number (1-4, default 1): First sector (2048-30867455, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-30867455, default 30867455): +4G Created a new partition 1 of type 'Linux' and of size 4 GiB. Command (m for help): n Partition type p primary (1 primary, 0 extended, 3 free) e extended (container for logical partitions) Select (default p): Using default response p. Partition number (2-4, default 2): First sector (8390656-30867455, default 8390656): Last sector, +sectors or +size{K,M,G,T,P} (8390656-30867455, default 30867455): Created a new partition 2 of type 'Linux' and of size 10,7 GiB. Command (m for help): p Disk /dev/sdf: 14,7 GiB, 15804137472 bytes, 30867456 sectors 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: 0xcd11c6b4 Device Boot Start End Sectors Size Id Type /dev/sdf1 2048 8390655 8388608 4G 83 Linux /dev/sdf2 8390656 30867455 22476800 10,7G 83 Linux Command (m for help): t Partition number (1,2, default 2): Partition type (type L to list all types): b Changed type of partition 'Linux' to 'W95 FAT32'. Command (m for help): t Partition number (1,2, default 2): 1 Partition type (type L to list all types): 7 Changed type of partition 'Linux' to 'HPFS/NTFS/exFAT'. Command (m for help): p Disk /dev/sdf: 14,7 GiB, 15804137472 bytes, 30867456 sectors 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: 0xcd11c6b4 Device Boot Start End Sectors Size Id Type /dev/sdf1 2048 8390655 8388608 4G 7 HPFS/NTFS/exFAT /dev/sdf2 8390656 30867455 22476800 10,7G b W95 FAT32 Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Re-reading the partition table failed.: Device or resource busy The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).
[root@oops ~]# mkfs.ntfs -f /dev/sdf1 Cluster size has been automatically set to 4096 bytes. Creating NTFS volume structures. mkntfs completed successfully. Have a nice day. [root@oops ~]# mkfs.vfat /dev/sdf2 mkfs.fat 3.0.28 (2015-05-16) [root@oops ~]# mount /d/e/Win10_1607_Russian_x64.iso /mnt/tmp -t iso9660 -o loop mount: /dev/loop0 is write-protected, mounting read-only [root@oops ~]# mount /dev/sdf1 /mnt/tmp2 [root@oops ~]# cp -R /mnt/tmp/* /mnt/tmp2 [root@oops ~]# umount /mnt/tmp [root@oops ~]# mount /d/e/Win10_1607_Russian_x64.iso /mnt/tmp -t udf -o loop mount: /dev/loop0 is write-protected, mounting read-only [root@oops ~]# cp -R /mnt/tmp/* /mnt/tmp2 [root@oops ~]# sync [root@oops ~]# umount /mnt/tmp2 [root@oops ~]# fdisk /dev/sdf Welcome to fdisk (util-linux 2.28.2). 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/sdf: 14,7 GiB, 15804137472 bytes, 30867456 sectors 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: 0xcd11c6b4 Device Boot Start End Sectors Size Id Type /dev/sdf1 2048 8390655 8388608 4G 7 HPFS/NTFS/exFAT /dev/sdf2 8390656 30867455 22476800 10,7G b W95 FAT32 Command (m for help): m Help: DOS (MBR) a toggle a bootable flag b edit nested BSD disklabel c toggle the dos compatibility flag Generic d delete a partition F list free unpartitioned space l list known partition types n add a new partition p print the partition table t change a partition type v verify the partition table i print information about a partition Misc m print this menu u change display/entry units x extra functionality (experts only) Script I load disk layout from sfdisk script file O dump disk layout to sfdisk script file Save & Exit w write table to disk and exit q quit without saving changes Create a new label g create a new empty GPT partition table G create a new empty SGI (IRIX) partition table o create a new empty DOS partition table s create a new empty Sun partition table Command (m for help): a Partition number (1,2, default 2): 1 The bootable flag on partition 1 is enabled now. Command (m for help): p Disk /dev/sdf: 14,7 GiB, 15804137472 bytes, 30867456 sectors 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: 0xcd11c6b4 Device Boot Start End Sectors Size Id Type /dev/sdf1 * 2048 8390655 8388608 4G 7 HPFS/NTFS/exFAT /dev/sdf2 8390656 30867455 22476800 10,7G b W95 FAT32