Link Station > Section Technique > Software >

[HOWTO] Formater une partition superieur à 32Go en FAT32




Aller au Forum:
Notez ce sujet :

  Sujet précédent   Sujet suivant
Auteur
Sujet    Tout développer | Tout contracter NOUVEAU SUJET    RÉPONDRE
Réduire ce messageGguegouliExpertNiveau 16 · Critique de comptoirRéférenceur Assidu
Membre depuis
2002
Messages
2186
Plus
Membre n°
3977
Inscription
27 Aug 2002
Localisation
fr
Âge
51 ans
Sujets lancés
330
Ancienneté
98 %
Participation
65 %
[HOWTO] Formater une partition superieur à 32Go en FAT32Ancien message 15-08-2006 10:47
Hop, je vous le blah blah en anglais, mais en gros ce petit soft vous permet de formater vos disques ou partitions en FAT32, quelque soit la taille (ici le gars a formaté son Serial-ATA 250Go en une partition fat32.. )
Si, ca peut etre utile! pour linux par exemple, lire/ecrire sur une partition NTFS semble encore problematique..

Citation
I recently got a SATA 250GB disk for testing FATLIB. It turns out that Windows XP won't let you format a volume bigger than 32GB with FAT32. I could use NTFS, but that's not what I FATlib supports. In fact, NTFS can only be written safely by Windows XP - there are as far as I know no other drivers for other OS's, unlike FAT which is supported by virtually anything.

As Microsoft put it here


You cannot format a volume larger than 32 gigabytes (GB) in size using the FAT32 file system during the Windows XP installation process. Windows XP can mount and support FAT32 volumes larger than 32 GB (subject to the other limits), but you cannot create a FAT32 volume larger than 32 GB by using the Format tool during Setup. If you need to format a volume that is larger than 32 GB, use the NTFS file system to format it. Another option is to start from a Microsoft Windows 98 or Microsoft Windows Millennium Edition (Me) Startup disk and use the Format tool included on the disk.
Using Windows 98 obviously opens up other issues - It doesn't support USB 2.0 or SATA as far as I know. Formatting a huge disk will take ages. It suports IDE, but not 48bit LBA, which is required for drives greater than 137GB. Also, you need to patch format.exe and fdisk to work with disks greater than 64GB. Even then scandisk will corrupt large disks unless you disable it. It can be done, but basically, this is ancient 16 bit code, and using it on modern hardware is not a good idea. There is a port of mkdosfs from Linux to Win32. I tried it, and chkdsk complained about being unable to test a RAW filesystem. It also uses funny cluster sizes, only 4K for normal sized disks.

Actually, looking back at the Microsoft comment, if I could format the volume myself, all would be OK. Fat32 is pretty simple, so it occured to me to write a fast format routine to do the job. Note that the 32GB limit is a limit of the formatter in Windows XP. FAT32 itselft should be OK to 2TB, limited by a 32 bit sector count in the boot sector. XP comes with a partitioning tool, called Disk Management. It even has Wizards for partitoning. This should be a cinch.

I've tested this with a SATA disk as follows. Power off the computer and connect the disk. Power up again - check the Bios finds it. If you have a IDE or SATA disk, make sure you power off before connecting, USB and Firewire ones can be connected with the power on.

Click Start menu, select Run and enter diskmgmt.msc

If it asks you to initialise the disk, make sure you select a Basic disk, as opposed to a Dynamic.

There's a guide on Disk Management here You need to find the disk with unallocated space. Right click on it and select "New Partition" and follow these steps, clicking "Next" to get move on at each stage.
Partition Wizard starts, just click next to move on
Select Primary Partition.
Enter the maximum size for the Partition Size
Choose assign a drive letter. I used F:
Select "Do not Format this partition"
There will be a dialog box, summarising all the previous stuff. Click Finish
Now you have a drive letter, this is what we will pass to the formatter

Now download a copy of fat32format. Extract the single EXE file to somewhere suitable, like C:\. Click Start->Run and enter cmd. CD to the where you extracted the fat32format exe, e.g. by typing CD /D c:\

Now you're almost done.

Type this

fat32format f:

You should see this displayed

Warning ALL data on drive 'f' will be lost irretrievably, are you sure (y/n)

Now when it says this, it really means it. If you format the boot sector, FATs and root directory will be filled with zeros. By typing pressing Y and hitting return, you're also absolving me of liability for whatever was on the disk before.


Assuming you don't bail out at this point you should see something like this -

Warning ALL data on drive 'f' will be lost irretrievably, are you sure
(y/n) :y
Size : 250GB 488392002 sectors
512 Bytes Per Sector, Cluster size 32768 bytes
Volume ID is 1bdb:2c1d
32 Reserved Sectors, 59604 Sectors per FAT, 2 fats
7629261 Total clusters
7629260 Free Clusters
Formatting drive f:...
Clearing out 119304 sectors for Reserved sectors, fats and root cluster...
Wrote 61083648 bytes in 0.988463 seconds, 61796609.106193 bytes/sec
Initialising reserved sectors and FATs...
Done

This means that all has gone according to plan. It should take about 4 seconds per Terabyte to format the disk. You can run chkdsk f: at this point if you're curious, and see something like this -

The type of the file system is FAT32.
Volume Serial Number is 1BDB-2C1D
Windows is verifying files and folders...
File and folder verification is complete.
Windows has checked the file system and found no problems.
244,136,352 KB total disk space.
244,136,320 KB are available.

32,768 bytes in each allocation unit.
7,629,261 total allocation units on disk.
7,629,260 allocation units available on disk.

This shows that my calculations match up with the ones inside Windows, which is good news

It is also possible to set the cluster size with a -cN parameter where N is the number of sectors per cluster. On a hard disk, which is the only sort we support, one sector is 512 bytes. The cluster size will be N times 512. I played around with this, and it seems that Windows XP supports small cluster sizes, except that chkdsk runs very slowly, presumably because it needs to read the huge FAT that results from these settings. Given the nature of FAT32, you can't reduce the cluster size such that the number of clusters is more than 228. I'd recommend using the default cluster sizes, which are the Microsoft recommended ones, unless you need to force them for testing or something


You can download either just the fat32format binary ~20K or the fat32format binary and source ~30K The source code can be compiled with Vistual Studio 6.0 or later. The current version number is 1.01.

There are a couple of things you need to know before running fat32format. You need to have Administrator rights on XP for it to work, since it opens the drive in raw write mode. You also need to make sure that there are no open files on the volume - if there are you will see a message like this -

Warning ALL data on drive 'f' will be lost irretrievably, are you sure
(y/n) :y
Failed to open device - close any files before formatting
Are you SURE you're formatting the RIGHT DRIVE!!!

This should make it a bit harder to lose data, assuming that you have at least one open file on the drives with data you want to keep. The drive that Windows is currently running from will have lots of files open - the pagefile, registry etc. I usually keep an Explorer.exe open in the root directory of any other drives to block format from running. Finally, it will only work with hard disks with 512 bytes per sector. If you have a DVD-Ram disk, format using the Windows formatter. If you have an optical disk drive bigger than 32GB, send me a sample and I'll port to it.

One last thing - fat32format is designed to format disks quickly. It doesn't check for bad sectors. If you need integrity checks, run a chkdsk /R f: after the format.

Finally and most importantly, it isn't possible to recover your data if you format the wrong disk, be careful using it. It is licensed under the GPL license - you may distribute source and binaries. You can build it into an open source application. If you want to build it into a closed source application you should approach me for licensing it under a BSD style license for a fee.



le soft:
http://www.ridgecrop.demon.co.uk/do...fat32format.zip

source:
http://www.ridgecrop.demon.co.uk/in...fat32format.htm

Signaler ce message à un modérateur | IP: Logguée

Réduire ce messagesoul^keeperConnectéAdministrateurNiveau 50 · OscariséRéférenceur Légendaire
Membre depuis
2002
Messages
17300
Plus
Membre n°
1
Inscription
22 Feb 2002
Localisation
La Défense
Âge
49 ans
Sujets lancés
2916
Ancienneté
100 %
Participation
100 %
Ancien message 15-08-2006 11:12
Attention toutefois à ne pas dépasser les 1024 premiers cylindres pour la première partition active (partition système), car sinon ça ne bootera pas

Signaler ce message à un modérateur | IP: Logguée

Réduire ce messageRRhEcKGuruNiveau 19 · ChroniqueurRéférenceur Novice
Membre depuis
2002
Messages
7657
Plus
Membre n°
5548
Inscription
31 Oct 2002
Localisation
amiens
Âge
42 ans
Sujets lancés
66
Ancienneté
98 %
Participation
88 %
Ancien message 15-08-2006 23:21
euh j'ai reussi a formater 120Go en fat 32 avec juste un petit Fdisk de msdos... (en IDE)

j'ai jamais essayé de faire plus haut par contre mais c'est sur que l'on peut dépasser alégrement les 32 Go sans logiciel particulier

__________________
mess with the best, die like the rest


<<~~=!!!RhEcK!!!=~~>>

Signaler ce message à un modérateur | IP: Logguée

Réduire ce messageJjeff932GuruNiveau 22 · PerchisteRéférenceur Aguerri
Membre depuis
2002
Messages
5276
Plus
Membre n°
5654
Inscription
04 Nov 2002
Localisation
Region parisienne
Âge
62 ans
Sujets lancés
325
Ancienneté
98 %
Participation
81 %
Ancien message 15-08-2006 23:29
Bizarre,il y a pas si longtemps,j'ai formaté un disque 80 go en Fat32 avec windows
je l'ai repassé tout recemment en NTFS
Je n'ai jamais eu de probléme !!
Donc +1 avec Rheck,je n'avais pas non plus de logiciel particulier !!

__________________
Vaincre la pauvreté n'est pas un geste de charité. C'est un acte de justice.Nelson Mandela

Signaler ce message à un modérateur | IP: Logguée

Réduire ce messageSshakes808080GuruNiveau 27 · FigurantRéférenceur Appliqué
Membre depuis
2002
Messages
8978
Plus
Membre n°
517
Inscription
08 Mar 2002
Sujets lancés
354
Ancienneté
100 %
Participation
91 %
Ancien message 16-08-2006 10:29
la limitation de 32Go pour le formattage FAT32 est apparue avec windows NT.

Il s'agissait pour microsoft de promouvoir le NTFS.

Une disquette de boot win98 ou linux n'ont pas cette limitation toute artificielle.

__________________
Racket logiciel

Signaler ce message à un modérateur | IP: Logguée

Réduire ce messageRRhEcKGuruNiveau 19 · ChroniqueurRéférenceur Novice
Membre depuis
2002
Messages
7657
Plus
Membre n°
5548
Inscription
31 Oct 2002
Localisation
amiens
Âge
42 ans
Sujets lancés
66
Ancienneté
98 %
Participation
88 %
Ancien message 16-08-2006 12:59
merci shakes808080 pour cette info...


comme quoi l'évolution ne va pas tjs dans le bon sens... pour transporter des données de manière sure et efficace, il n'y a rien de tel que de la FAT : ca passe partout

__________________
mess with the best, die like the rest


<<~~=!!!RhEcK!!!=~~>>

Signaler ce message à un modérateur | IP: Logguée

Réduire ce messageSsoopajudMaitreNiveau 19 · ChroniqueurRéférenceur Aguerri
Membre depuis
2003
Messages
3883
Plus
Membre n°
8629
Inscription
28 Jan 2003
Localisation
Cunnilingus
Âge
53 ans
Sujets lancés
383
Ancienneté
97 %
Participation
76 %
Ancien message 22-09-2009 10:36
pour info le formatage en ligne de commande marche pour fat32, meme sous xp et nt

format c: /fs:fat32

__________________

Aimez nous ! ---->> facebook.com/lesmonstroplantes

Signaler ce message à un modérateur | IP: Logguée

Réduire ce messageRrioloboGuruNiveau 25 · Chef opérateurRéférenceur Assidu
Membre depuis
2002
Messages
6445
Plus
Membre n°
3373
Inscription
29 Jul 2002
Localisation
var
Sujets lancés
434
Ancienneté
99 %
Participation
85 %
Ancien message 10-12-2009 14:10
Dans le même esprit, est-il possible de contourner la taille limitée à 4 go d'un fichier sur une partition fat32 ( sans avoir recours au NTFS) ?

Si oui comment ?

Signaler ce message à un modérateur | IP: Logguée

Réduire ce messageKkarpathExpertNiveau 14 · Jury du publicRéférenceur Assidu
Membre depuis
2005
Messages
2947
Plus
Membre n°
13342
Inscription
02 May 2005
Âge
47 ans
Sujets lancés
82
Ancienneté
88 %
Participation
71 %
Ancien message 10-12-2009 17:42
Message écrit par riolobo, le 10-12-2009 à 14:10
Dans le même esprit, est-il possible de contourner la taille limitée à 4 go d'un fichier sur une partition fat32 ( sans avoir recours au NTFS) ?

Si oui comment ?


impossible

__________________
Same same, but different

Signaler ce message à un modérateur | IP: Logguée

Réduire ce messageRRhEcKGuruNiveau 19 · ChroniqueurRéférenceur Novice
Membre depuis
2002
Messages
7657
Plus
Membre n°
5548
Inscription
31 Oct 2002
Localisation
amiens
Âge
42 ans
Sujets lancés
66
Ancienneté
98 %
Participation
88 %
Ancien message 10-12-2009 18:44
Je confirme, impossible

Dans le cas des 32Go pour la fat, c'est une fonction ajouté a windows xp afin de favoriser le ntfs au détriment de la fat

pour les fichiers de 4Go c'est un problème du système lui-même qui ne peut pas allouer plus de 2^32 adresses mémoires pour un même fichier

__________________
mess with the best, die like the rest


<<~~=!!!RhEcK!!!=~~>>

Signaler ce message à un modérateur | IP: Logguée

Réduire ce messageRrioloboGuruNiveau 25 · Chef opérateurRéférenceur Assidu
Membre depuis
2002
Messages
6445
Plus
Membre n°
3373
Inscription
29 Jul 2002
Localisation
var
Sujets lancés
434
Ancienneté
99 %
Participation
85 %
Ancien message 11-12-2009 10:25
Ok merci de l'info


Il n'y a donc que le NTFS qui gère les fichiers volumineux sur windows.

Le problème c'est que les disques durs multimédias qui gèrent maintenant toutes sortes de fichiers sont en FAT32 et la conversion en NTFS n'est pas compatible avec le firmware ( je précise pour le disque dur multimédia qui embarque les logiciels maisons de lecture et gestion des données ).
Avec l'arrivée des rip blu-ray en format iso ou mkv qui ont des tailles supérieures à 10 go , il n'y a donc aucune possibilité de les envoyer sur les DD multimédias classiques, il faut absolument passer au DD multimédia HD qui gère le NTFS.


Sur Mac et Linux c'est pareil ou il y a aussi une alternative à cette limitation à 4 GO en FAT32?

Signaler ce message à un modérateur | IP: Logguée

Réduire ce messageMMygaloExpertNiveau 10 · Cinéphile
Membre depuis
2004
Messages
1806
Plus
Membre n°
13158
Inscription
18 Apr 2004
Localisation
Ile de France
Sujets lancés
13
Ancienneté
92 %
Participation
62 %
Ancien message 11-12-2009 11:11
d'où une étude plus approfondie avant d'acheter des boitiers multimédia au prix bas ou au peu d'émulation/effervescence lors de leur sortie.

Tous ces boitiers "merdiques" qui ont des ports USB en veux-tu-en-voila, qui n'ont parfois même par la compatibilité usb2, ou ne gèrent pas les partitions ntfs ou autres... sont à proscrire désormais que la HD est beaucoup plus présente et commence à être un peu mature.

En effet, il n'est pas rare de se retrouver avec de gros fichiers, et le BluRay se "démocratisant", les rip vont être (ou sont) gros... très gros.


Le format ext3 est un format ouvert qui gère des fichiers plus gros que 4 go.

Signaler ce message à un modérateur | IP: Logguée

Réduire ce messageKkarpathExpertNiveau 14 · Jury du publicRéférenceur Assidu
Membre depuis
2005
Messages
2947
Plus
Membre n°
13342
Inscription
02 May 2005
Âge
47 ans
Sujets lancés
82
Ancienneté
88 %
Participation
71 %
Ancien message 11-12-2009 11:21
Message écrit par riolobo, le 11-12-2009 à 10:25


Sur Mac et Linux c'est pareil ou il y a aussi une alternative à cette limitation à 4 GO en FAT32?


sous mac et linux c'est pas pareil (sauf pour le fat32 qui reste limité à 4go/fichier)
si ça t'interresse tu peux trouver un tableau comparatif des systèmes de fichiers à cette adresse.

__________________
Same same, but different

Signaler ce message à un modérateur | IP: Logguée

Il est actuellement 18:09 (GMT) NOUVEAU SUJET    RÉPONDRE   
  Sujet précédent   Sujet suivant
Link Station > Section Technique > Software > [HOWTO] Formater une partition superieur à 32Go en FAT32

Aller au Forum:
Notez ce sujet :


Réponse rapide
Afficher une version imprimable | Chercher dans ce sujet | Envoyer cette page par email | S'inscrire à ce sujet | Télécharger ce sujet
Règles du forum :
Créer de nouveaux sujets
Répondre aux messages
Attacher des fichiers
Editer vos messages
: not autorisé
: not autorisé
: not autorisé
: not autorisé
Le Code HTML est OFF
Le BBCode est ON
Les Smileys sont ONs
Le code [IMG] est ON
Page générée en 0.075123 secondes en exécutant 49 requêtes SQL.
Apache - Compression GZIP : Activée.