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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-13-2003, 05:55 PM
|
#1
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Rep:
|
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?).
|
|
|
04-13-2003, 06:02 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
I take it you did run mkfs after you created the partitions?
|
|
|
04-14-2003, 10:06 AM
|
#3
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
04-14-2003, 02:41 PM
|
#4
|
Member
Registered: Dec 2002
Location: China
Distribution: Arch
Posts: 359
Rep:
|
You should use mkfs.vfat not dos.
|
|
|
04-14-2003, 02:43 PM
|
#5
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Original Poster
Rep:
|
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
|
|
|
04-14-2003, 10:17 PM
|
#6
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Original Poster
Rep:
|
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
|
|
|
04-14-2003, 10:34 PM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,750
|
The max FAT filesystem is 2gb.
The easy answer since you don't have mkfs.vfat is to format the FAT32 partitions from W2K.
|
|
|
04-15-2003, 11:47 AM
|
#8
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
04-15-2003, 01:10 PM
|
#9
|
Moderator
Registered: Aug 2002
Posts: 26,750
|
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.
|
|
|
04-15-2003, 01:38 PM
|
#10
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
04-15-2003, 02:11 PM
|
#12
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
04-15-2003, 04:17 PM
|
#13
|
Moderator
Registered: Aug 2002
Posts: 26,750
|
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
|
|
|
04-24-2003, 10:42 PM
|
#14
|
Member
Registered: Feb 2003
Location: Halifax, NS, CAN
Distribution: Ubuntu
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|