LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices



Reply
 
Search this Thread
Old 09-21-2005, 06:39 PM   #1
rafaelandy
LQ Newbie
 
Registered: May 2005
Location: Dominican Republic
Distribution: SlackWare 9.1
Posts: 2

Rep: Reputation: 0
Question 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.
 
Old 09-21-2005, 07:02 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,175

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
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.

Last edited by michaelk; 09-21-2005 at 07:09 PM.
 
Old 09-21-2005, 07:02 PM   #3
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
"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
 
Old 09-21-2005, 07:54 PM   #4
polrus
Member
 
Registered: Oct 2004
Location: Poland
Distribution: yoper
Posts: 53

Rep: Reputation: 15
2GB for single file on fat32 partition but the partition itself can be up to 40GB but not more - this is FAT32 proper limitation
 
Old 09-21-2005, 08:24 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,175

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
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.

Last edited by michaelk; 09-21-2005 at 08:29 PM.
 
Old 09-23-2005, 02:32 AM   #6
polrus
Member
 
Registered: Oct 2004
Location: Poland
Distribution: yoper
Posts: 53

Rep: Reputation: 15
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
 
Old 10-16-2005, 01:40 PM   #7
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
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
 
Old 10-16-2005, 02:00 PM   #8
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
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
 
Old 10-16-2005, 02:37 PM   #9
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
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.
 
Old 10-16-2005, 05:14 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,175

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
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
 
Old 10-16-2005, 05:30 PM   #11
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,834

Rep: Reputation: 47
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/
 
Old 10-16-2005, 05:56 PM   #12
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
"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
 
Old 10-16-2005, 07:24 PM   #13
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
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.

Last edited by gbonvehi; 10-16-2005 at 07:33 PM.
 
Old 10-17-2005, 02:26 PM   #14
nukey
Member
 
Registered: Dec 2004
Location: Netherlands
Distribution: Slackware
Posts: 173

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
should i format X partition after creat Y partition No2002 Linux - General 3 07-16-2005 11:13 AM
HDD/Partition Format. TuxToaster Debian 6 09-15-2004 02:55 PM
Format a partition ar1 Linux - General 1 01-28-2004 12:05 PM
How do I format a partition snatale1 Linux - Newbie 2 10-09-2003 12:02 AM
partition w/o format Netrack Linux - General 4 01-14-2003 08:26 PM


All times are GMT -5. The time now is 12:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration