How to write a folder on usb drive after I put .iso image on it?
0
votes
1
answer
58
views
I want to create a bootable USB and to put drivers folder beside my .iso image. Firstly, I wrote zeroes on my USB drive using this command:
dd if=/dev/zero of=/dev/sda bs=4096 conv=fsync oflag=direct status=progress
, got this output:
1907201+0 records in
1907200+0 records out
7811891200 bytes (7.8 GB, 7.3 GiB) copied, 2188.11 s, 3.6 MB/s
then I unmounted and formatted it:
sudo umount /dev/sda
sudo mkfs.vfat /dev/sda
Then I created a partition on it using
, and got this output in
:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 7.3G 0 disk
└─sda1 8:1 1 7.3G 0 part
Then I wrote an .iso file into my USB using dd bs=4M if=/home/alex/Downloads/Win10_22H2_EnglishInternational_x64v1.iso of=/dev/sda conv=fsync oflag=direct status=progress
command and got this output:
1462+1 records in
1462+1 records out
6135633920 bytes (6.1 GB, 5.7 GiB) copied, 1396.19 s, 4.4 MB/s
As I understood later,
command overwrites partition table, so now my partition is gone. I'm still need to put a folder with drivers on to my USB drive beside .iso
image. I don't know how to do it, because I can't copy my folder into USB drive, or create a new folder inside it. My partition
is disappeared, and when I try to mount
itself, it says "source write-protected, mounted read-only"
. I heard I can use
for this kind of things, but is there any other way? I don't know what to do now and where is the problem. Would be thankful for your help.
Asked by Bernadette
(13 rep)
Jul 2, 2025, 06:53 AM
Last activity: Jul 2, 2025, 10:50 AM
Last activity: Jul 2, 2025, 10:50 AM