Solved Convert FIle System to FAT32

Microsoft Windows server 2008 r2 enterpr...
July 21, 2014 at 04:48:43
Specs: windows 7, ANY
Good Afternoon,

I have created a script that starts and runs diskpart; and then formats 10 HDDs in one go to the NTFS format, this part works flawlessly; however I need to then convert the disks to fat32 and I cannot use ‘fs=fat32’ option in diskpart as Microsoft has a 32GB limit with the fat32 format. I need to format all HDDs that are 150GB in size; and to the fat32 format in one go.

Does anyone know of a way to accomplish this task?

Your help is much appreciated.

Regards
Tor Fey

message edited by Tor_Fey


See More: Convert FIle System to FAT32

Report •

✔ Best Answer
July 21, 2014 at 08:36:19
That's the basic idea, yeah. I'm not going to dig up a disposable HDD to verify the diskpart script, but I assume you have.

How To Ask Questions The Smart Way



#1
July 21, 2014 at 05:29:52
Pretty sure FORMAT ignores MS' artificial 32GB limit.

How To Ask Questions The Smart Way


Report •

#2
July 21, 2014 at 06:19:57
Good Day Razor,

I have tried the format option: FORMAT FS=fat32, this just gives me the error 'disk or volume is large'

Is there another way to write this in to my script?

Regards
Tor Fey


Report •

#3
July 21, 2014 at 06:53:05
Are you running the DISKPART command FORMAT, or the program FORMAT? You should be using diskpart to create the partitions, create the volumes (don't format), assign drive letters to the volume, then exit diskpart. Then you can run the command:
format <Drive letter>: /fs:fat32 /q
If you're scripting this, it takes a bit more work to automate, but it'll get the job done.

How To Ask Questions The Smart Way


Report •

Related Solutions

#4
July 21, 2014 at 07:42:24
Hi Razor,

So from you are saying should this be the way to script my script?

Batch File 1

DISKPART.EXE /S "BATCH_SCRIPT_DATA_1.TXT"
START BATCH_SCRIPT_DATA_2.BAT
EXIT

Text File 1

SELECT DISK 1
CLEAN
CREATE PARTITION PRIMARY
ASSIGN LETTER=Z
ACTIVE
SELECT DISK 2
CLEAN
CREATE PARTITION PRIMARY
ASSIGN LETTER=Y
ACTIVE
SELECT DISK 3
CLEAN
CREATE PARTITION PRIMARY
ASSIGN LETTER=X
ACTIVE
SELECT DISK 4
CLEAN
CREATE PARTITION PRIMARY
ASSIGN LETTER=W
ACTIVE
SELECT DISK 5
CLEAN
CREATE PARTITION PRIMARY
ASSIGN LETTER=V
ACTIVE
SELECT DISK 6
CLEAN
CREATE PARTITION PRIMARY
ASSIGN LETTER=U
ACTIVE
SELECT DISK 7
CLEAN
CREATE PARTITION PRIMARY
ASSIGN LETTER=T
ACTIVE
SELECT DISK 8
CLEAN
CREATE PARTITION PRIMARY
ASSIGN LETTER=S
ACTIVE
SELECT DISK 9
CLEAN
CREATE PARTITION PRIMARY
ASSIGN LETTER=R
ACTIVE
SELECT DISK 10
CLEAN
CREATE PARTITION PRIMARY
ASSIGN LETTER=Q
ACTIVE
EXIT

Batch FIle 2

FORMAT.COM Z: /FS:FAT32 /V:DISK_1 /Q /X /Y
FORMAT.COM Y: /FS:FAT32 /V:DISK_2 /Q /X /Y
FORMAT.COM X: /FS:FAT32 /V:DISK_3 /Q /X /Y
FORMAT.COM W: /FS:FAT32 /V:DISK_4 /Q /X /Y
FORMAT.COM V: /FS:FAT32 /V:DISK_5 /Q /X /Y
FORMAT.COM U: /FS:FAT32 /V:DISK_6 /Q /X /Y
FORMAT.COM T: /FS:FAT32 /V:DISK_7 /Q /X /Y
FORMAT.COM S: /FS:FAT32 /V:DISK_8 /Q /X /Y
FORMAT.COM R: /FS:FAT32 /V:DISK_9 /Q /X /Y
FORMAT.COM Q: /FS:FAT32 /V:DISK_10 /Q /X /Y
MSG * "All formatting operations have finished!"
EXIT

Kind Regards
Tor Fey


Report •

#5
July 21, 2014 at 08:36:19
✔ Best Answer
That's the basic idea, yeah. I'm not going to dig up a disposable HDD to verify the diskpart script, but I assume you have.

How To Ask Questions The Smart Way


Report •

#6
July 21, 2014 at 23:48:52
Morning Razor,

Many thanks for your help, script has now been tested and is working as expected.

Much appreciated.
Tor Fey


Report •

Ask Question