LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   How do I format a partition? (https://www.linuxquestions.org/questions/slackware-installation-40/how-do-i-format-a-partition-365728/)

rafaelandy 09-21-2005 05:39 PM

How do I format a partition?
 
Here's the thing. I have a new 80GB hd on my HP laptop. I installed WinXP on a small portion of the disk (10GB). The rest is RAW, right? So I install SlackWare 10.2 on a 12GB partition and a swap of 512MB. I have around 58GB or so that are RAW.

Since I need that part in FAT32 to be accesable from both OS's I tried to format the space with XP and it only gave me the NTFS option, so I went to the command prompt and did a:

C:\>format e: /FS:FAT32

It started to format, but after it finished it said: "volume is too big for FAT32" ??

I want to know what command to use in Linux if I want to format this section in FAT32. Can anyone help please?

P.S.
I'm a newbie just in case.

michaelk 09-21-2005 06:02 PM

Microsoft has set a size limit for a FAT32 partition that XP can create and format to 32GB.

You can use the mkfs.vfat (or mkdosfs) command to format the partition. Example:
mkfs.vfat -F 32 /dev/hdxy

(where hdxy is the actual device ID of the partition).

See man pages for more detals.

jailbait 09-21-2005 06:02 PM

"I want to know what command to use in Linux if I want to format this section in FAT32."

mkdosfs -F 32 /dev/hda4

"It started to format, but after it finished it said: "volume is too big for FAT32" ??"

FAT32 can only support up to 2G. This 2G limit holds true whether you format in Windows or format in Linux. So I suggest that you create one or more logical partitions of size 2G and leave the rest of your hard drive available as RAW.

----------------------------
Steve Stites

polrus 09-21-2005 06:54 PM

2GB for single file on fat32 partition but the partition itself can be up to 40GB but not more - this is FAT32 proper limitation

michaelk 09-21-2005 07:24 PM

AFAIK a FAT32 volume size can be on the order of 2TB.

The max size of a FAT16 partition is 2GB.

I do not know if mkdosfs is limited in partition size.

polrus 09-23-2005 01:32 AM

theoreticaly it can be up to 2TB but for example using windoze tools will not let You format a fat32 partition larger than 32GB - although with some tricks u can use larger than 32GB partitions in windoze

perry 10-16-2005 12:40 PM

if mkfs.vfat is for formatting dos partitions...

what do you use to format a swap partition, mkfs.swap ???

and if it's not mkfs.vfat then what is it???

yes, i made the idiot mistake of reformatting my swap partition and now it won't mount properly. i've run e2fsck on it and it makes corrects but it still does not mount. or if it does, it reports a size of 0.

please help, i do not want to have to re-%$#-install slackware over this.

thanks

- perry

perry 10-16-2005 01:00 PM

Quote:

Unfortunately, /dev/hda2 is not big enough that using it would be worth your trouble.
The next one over is /dev/hda3 ( Extended ) and you can't remove that without messing with 5 and 6.
If it was my system, I'd fix the partitions on /dev/hdb and use a livecd with partimage . Save the partimage image to someplace on /dev/hdb and also save your jpg and mp3 stuff in a folder on /dev/hdb .
From a livecd still...
I would remove all partitions on /dev/hda and create /dev/hda1 to the larger size which you desire.
Next, restore the partimage image to the new /dev/hda1.
Next, run the command: e2fsck -f /dev/hda1
Next, run the command: resize2fs -f /dev/hda1
Next, create the swap partition and run the command: mkswap /dev/hda2
Next, create the Extended partition
EDIT: If partitions 5 and 6 are used for something like /home and /usr then you will want to backup those partitions and restore them with partimage.
and that's why i keep coming back to LQ.org

thanks (again) for being there guys

- perry

SlackerLX 10-16-2005 01:37 PM

Quote:

Originally posted by michaelk
Microsoft has set a size limit for a FAT32 partition that XP can create and format to 32GB.
I have backup partition of 80GB of Fat32

If you use MS Windows it has Disk management program. Create partition with it and format it within windows.

michaelk 10-16-2005 04:14 PM

Windows is still capable of supporting a FAT32 partition greater then 32GB but it can not create one greater then 32GB.

To quote Microsoft.
http://support.microsoft.com/default...;EN-US;q314463

SlackerLX 10-16-2005 04:30 PM

Quote:

Originally posted by michaelk
Windows is still capable of supporting a FAT32 partition greater then 32GB but it can not create one greater then 32GB.
For all who disbelieve I posted new shot of my partitioner.
Seeing is believing - right?
http://slackerlx.blogspot.com/

jailbait 10-16-2005 04:56 PM

"if mkfs.vfat is for formatting dos partitions...

what do you use to format a swap partition, mkfs.swap ???

and if it's not mkfs.vfat then what is it???"

swap is not a file system. You format swap with mkswap. See:

man mkswap

-----------------------------
Steve Stites

gbonvehi 10-16-2005 06:24 PM

Quoting the link michaelk posted:
Quote:

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.
As you can see, you can't create it during Setup, but you can after it :)

And here, a description of FAT32 from http://support.microsoft.com/kb/310525/EN-US/
Quote:

FAT32 supports drives up to 2 terabytes in size.
And jailbait is right, swap has it's own filesystem, so you can use a partition for it, or format a file and use a swap file instead of a partition.
vfat is a FAT filesystem, not a Swap one, you could however, put a Swap formated FILE under vfat.

nukey 10-17-2005 01:26 PM

Quote:

Originally posted by michaelk
Windows is still capable of supporting a FAT32 partition greater then 32GB but it can not create one greater then 32GB.

To quote Microsoft.
http://support.microsoft.com/default...;EN-US;q314463

I recently bought a new 200GB Hard Drive. Installed it, booted windows, create a new FAT32 partition, but heee.... it didn't take the complete disk space/size (don't know exactly what it was but I remember it being bigger than than 32GB).

Ah well, I just booted my Slackware install on the same machine, created the partition, and booted Windows, and there it was, my 200 GB :)


All times are GMT -5. The time now is 09:25 PM.