Doing "Format /s" from XP on CF media

Hi,

I have to implement the DOS command “Format /s” but under XP.

I ran “Format /s” on 64MB CF media under DOS. Under XP I saved the first sector (MBR) and the 32nd sector to different files using dd for windows. Then I restored the first and 32nd sectors from those files on a new CF that was previously formatted under XP using “Format /FS:FAT”.

The reason I saved the 32nd sector: The first partition descriptor (16 bytes starting from 0x1BE) in MBR points to this sector.

After those steps, the new CF had read/write access under XP.

The last step was to copy the files: IO.sys, MSDOD.sys and Command.com on the new CF.

I also checked the HP format utility. It seems that this utility puts 0xE as partition type. I need 0x6.

Should this be enough ?

Thanks.

Hi,

0x6 denotes FAT16 partition (Normal partition with 2gb max size) and 0xE
(FAT16 extended partition) will be marked when you create a FAT16 partition
with 4gb size (It is possible only from WinXP).

Also that 32nd sector is based on the SPAU (Sector per allocation cluster)
normally it will be 63 sectors and I have seen for the Flash media /
Removable medias it will be 32 sectors.

-Elango C

On Mon, Oct 4, 2010 at 9:30 AM, wrote:

> Hi,
>
> I have to implement the DOS command “Format /s” but under XP.
>
> I ran “Format /s” on 64MB CF media under DOS. Under XP I saved the first
> sector (MBR) and the 32nd sector to different files using dd for windows.
> Then I restored the first and 32nd sectors from those files on a new CF that
> was previously formatted under XP using “Format /FS:FAT”.
>
> The reason I saved the 32nd sector: The first partition descriptor (16
> bytes starting from 0x1BE) in MBR points to this sector.
>
> After those steps, the new CF had read/write access under XP.
>
> The last step was to copy the files: IO.sys, MSDOD.sys and Command.com on
> the new CF.
>
> I also checked the HP format utility. It seems that this utility puts 0xE
> as partition type. I need 0x6.
>
> Should this be enough ?
>
> Thanks.
>
> —
> 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
>


Elango C (இளங்கோ சொக்கலிங்கம்)
Chennai, India.
website:http://celango.blogspot.com

“Obstacles are those frightful things you see
when you take your eyes off your goal.”