Hi All,
I am trying to initialize the disk in windows using IOCTL_DISK_CREATE_DISK and them i am creating partitions. but when i use the IOCTL_DISK_CREATE_DISK it is not creating any bootstrap code so i am not able to use this disk as boot disk. is there any API IOCTL to force create bootstrap code ?
regards,
VIjay
you need to write MBR from sector 0-510 +2 for signature.
No api for writing mbr to raw disk.
Hope this may help.
You can use bootsect.exe or write the pre-saved MBR to disk using a write handle.
-----Original Message-----
From: “xxxxx@gmail.com”
Sent: 01-07-2015 16:18
To: “Windows System Software Devs Interest List”
Subject: RE:[ntdev] Initialzing disk
you need to write MBR from sector 0-510 +2 for signature.
No api for writing mbr to raw disk.
Hope this may help.
—
NTDEV is sponsored by OSR
Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars 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