R.Wieser
2021-03-19 08:25:58 UTC
Hello all,
I just read the "testing USB-ZIP images" post, and would like to ask a
question that has some relation to it.
Some time ago on Win XP I wrote some code to make an USB stick bootable
(either as FDD or HDD), which worked (using the DeviceIOControl function and
stuff like IOCTL_DISK_CREATE_DISK).
The idea was that I could (re)create USB sticks to look like any old OS
(from DOS upto W98).
The thing is I always needed to eject the stick and re-inserted it before
being able to place files onto it (starting with MSDOS.SYS and the like), as
I've never found how to tell the OS to re-initialize what it knew about the
stick ...
tl;dr:
Does anyone perhaps know how programmatically to tell the OS to
re-initialize an USB stick (so it becomes aware of newly created, removed or
resized volumes etc.) ?
Regards,
Rudy Wieser
I just read the "testing USB-ZIP images" post, and would like to ask a
question that has some relation to it.
Some time ago on Win XP I wrote some code to make an USB stick bootable
(either as FDD or HDD), which worked (using the DeviceIOControl function and
stuff like IOCTL_DISK_CREATE_DISK).
The idea was that I could (re)create USB sticks to look like any old OS
(from DOS upto W98).
The thing is I always needed to eject the stick and re-inserted it before
being able to place files onto it (starting with MSDOS.SYS and the like), as
I've never found how to tell the OS to re-initialize what it knew about the
stick ...
tl;dr:
Does anyone perhaps know how programmatically to tell the OS to
re-initialize an USB stick (so it becomes aware of newly created, removed or
resized volumes etc.) ?
Regards,
Rudy Wieser