LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-13-2003, 05:55 PM   #1
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Rep: Reputation: 16
Partition Help


I know this queestion has been answered a million times on this forum (mainly because I was reading the answers about a month ago). Unfortunately, now that I need the answers I can't find them. If someone would be willing to point me to the relevant documentation I would be forever grateful...

I have my windows and linux partitions set up but would like some space that they can share (for media files, db files and the like). For some reason, I cannot create a valid FAT32 partition.

Current partitions:
hda1 10G HPFS/NTFS
hda2 9G Linux
hda3 1G Linux swap
hda4 100G Extended
hda5 20G Linux

Wanted Partitions:
hda6 20G FAT32
hda7 20G FAT32
hda8 20G FAT32
hda9 20G FAT32

I had these last few partitions created, but created them with linux fdisk. I remeber reading somewhere that after linux has created the partition, windows cannot read it. The fix described was to write 0 to the first 256 bytes:

dd if=/dev/zero of=/dev/hda6 bs=256 count=1

This did not fix it (I also tried bumping the count to 100 just in case I was using more space for some freakish reason). When I opened windows and attempted to format I got an error message, which I wrote down and then filed in the garbage (sorry...something about it being invalid or full).

Help or redirects to documentation would be appreciated.

Also, if anyone sees any posts that I have left unattended, please point them out to me, I remember making some posts and am not sure if I just abandoned them (death in the family distracted me for a couple weeks but I think I got them all).

If it helps, I am running Win2000 and Slackware 8.1 (is that same as 9?).
 
Old 04-13-2003, 06:02 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I take it you did run mkfs after you created the partitions?
 
Old 04-14-2003, 10:06 AM   #3
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
Of course not. That would have made sense.

Actually, I didn't even consider mkfs. I was under the impression that it only did linux files systems so didn't even consider it. I read the man pages last night, suffered a system lock (grrr....not sure what is causing that), and went to bed. I will try it tonight.

mkfs -t dos -n Media -F 32 -I /dev/hda6

Can anyone see anything wrong with this? If not I will run it when I get home from work.
 
Old 04-14-2003, 02:41 PM   #4
yngwin
Member
 
Registered: Dec 2002
Location: China
Distribution: Arch
Posts: 359

Rep: Reputation: 33
You should use mkfs.vfat not dos.
 
Old 04-14-2003, 02:43 PM   #5
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
Thanks. I kinda thought that but the man pages I was looking at for man.vfat had man.dos in their usage.

So you say it should look like this:

mkfs -t vfat -n Media -F 32 /dev/hda6

or

mkfs.vfat -nMedia -F 32 /dev/hda6
 
Old 04-14-2003, 10:17 PM   #6
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
I do not have mkfs.vfat. I do have mkfs.msdos and mkdosfs. Both returned the same error message:

Attempting to create a too large filesystem

I used the same parameters for both:

mkdosfs -c -v -n media /dev/hda6
 
Old 04-14-2003, 10:34 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
The max FAT filesystem is 2gb.

The easy answer since you don't have mkfs.vfat is to format the FAT32 partitions from W2K.
 
Old 04-15-2003, 11:47 AM   #8
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
And since that is where all of these problems started.... I don't get any larger partitions.

I did try it with a 2G partition after submitting my last reply. With the reboot I didn't quite get back.

It looks like I have to resign myself to 2G partitions under windows. That should be interesting since I have 100G of space to partition. hmmm....

100G / 2GperP = 50Partitions.

Looks like I may have a problem.

Well... thanks for everybodies help. I'm better off than when I started. If anyone has any other ideas let me know.

As a side note, I was looking at mkfs.vfat online and it is listed as a link to mkdosfs. Don't know if that holds true for all systems (I think that was a Debian system) but it's there none the less.
 
Old 04-15-2003, 01:10 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
W2K should be able to create a fat32 partition and format any partition size you desire. But since you created the partitions with linux you probably just used the wrong ID. Make sure that it is c which is FAT32 lba.

All you need to do is change the filesystem type and reformat the partition. I can verify this when I get home from work.
 
Old 04-15-2003, 01:38 PM   #10
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
That was what I thought the original problem was.

Before writing to the forum, I had originally created the partitions with Linux and attempted to format them with Windows. When that failed, I deleted all of the FAT32 partitions and used ms fdisk to try to create the virtual partitions.

It would only allow me to create an 8M partition at the end of the drive.

Rereading your post, I notice that you said to set it to type 'c'. I had it set to type 'b'. I will also attempt to verify this when I get home. I will recreate the partition as type c and attempt to format under windows.

What is the difference between FAT32 and FAT32 lba? I have a feeling that I know and am going to kick myself if I am right.
 
Old 04-15-2003, 02:05 PM   #11
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
MS info.
http://support.microsoft.com/default...;en-us;126855I

Actually, I don't know if FAT32 max size is 8gb but it could be. FAT32 lba max size I thought was 137gb but also read that its 2 terabytes.
 
Old 04-15-2003, 02:11 PM   #12
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
8G is better than 2G. I will experiment with sizes. Will also try the FAT32 lba. My drive is a lot smaller than 137G so it doesn't really matter.

I would like 10G but 8 is close enough, if it comes right down to it.

BTW: the link didn't work for me.
 
Old 04-15-2003, 04:17 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Still don't have a good understanding of the difference between b and c filetypes. The 137gb limit is the BIOS int13 and FAT32 itself is 2TB. Without int13 support the fileystem is limited to 8.4GB.

Here is another link
http://averstak.tripod.com/fatdox/bootsec.htm
 
Old 04-24-2003, 10:42 PM   #14
kavius
Member
 
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71

Original Poster
Rep: Reputation: 16
Just to let everybody know (and sorry it took so long), I now have a whole bunch of 20G FAT32 partitions on my harddrive (just like I wanted).

The problem was that I did not have the type set to 'c' on the partition. Set the flag to 'c' and the whole thing formatted quit nicely.

Thanks for all the help.
 
  


Reply



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
Copy files from partition to partition too slow, SATA hard disk.What should I do£¿ Ryanlee SUSE / openSUSE 20 10-31-2005 07:30 AM
Deleted ntfs partition - added linux partition in its place - corrupt! eklhad Linux From Scratch 2 06-28-2005 01:31 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
How do I install slackware on a partition made by partition magic in windows bling bling Slackware 4 06-28-2003 11:16 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:08 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
Open Source Consulting | Domain Registration