Hi Friends,
I want to know how to format and write to boot sector of USB pen drive programmitically.
Thanks,
Sunil.
Hi Friends,
I want to know how to format and write to boot sector of USB pen drive programmitically.
Thanks,
Sunil.
This has nothing to do with file systems. This is a simple application task
where access to the drive is obtained with CreateFile.
wrote in message news:xxxxx@ntfsd…
Hi Friends,
I want to know how to format and write to boot sector of USB pen drive
programmitically.
Thanks,
Sunil.
Form the FAT(32) boot sector manually and write it to sector 0 of the drive using WriteFile.
Also write empty FAT and root directory.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntfsd…
> Hi Friends,
>
> I want to know how to format and write to boot sector of USB pen drive programmitically.
>
> Thanks,
> Sunil.
>
Thanks for reply.
But how to format the USB pen drive programatically.
Thanks,
Sunil.
> But how to format the USB pen drive programatically.
Windows quick format is exactly what I have described - just quickly write the empty filesystem.
Full format has one more long step - IOCTL_DISK_VERIFY for all sectors on the disk.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
You might want to take a look at the ‘ramdisk’ driver in the wdk
(src/storage/ramdisk).
In particular, ‘RamDiskFormatDisk()’ in ‘ramdisk.c.’
Good luck,
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Monday, December 20, 2010 6:15 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Writing to boot sector of USB Mass Storage Device
But how to format the USB pen drive programatically.
Windows quick format is exactly what I have described - just quickly write
the empty filesystem.
Full format has one more long step - IOCTL_DISK_VERIFY for all sectors on
the disk.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer