LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 11-27-2005, 05:40 AM   #1
bonniehandi
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Rep: Reputation: 15
How to format to FAT32, and how to mount my FAT32 partition.


Situation:
I am trying to have a 40Gb partition formatted to FAT32, so that both my XP and Fedora Core 4 can access it (to share file). There are two problems.
1. I can't/don't know how to format that partition into FAT32. It is hda6 on my partiton table posted below. (XP cannot format it to FAT32, I tired)
2. I can't mount hda6 to /osshare. I get the error posted below.

my partition table
[root@localhost lineak_kdeplugins-0.8.3]# fdisk /dev/hda -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/hda2 1913 1925 104422+ 83 Linux
/dev/hda3 1926 2053 1028160 82 Linux swap / Solaris
/dev/hda4 2054 9729 61657470 5 Extended
/dev/hda5 2054 3831 14281753+ 83 Linux
/dev/hda6 3832 9728 47367621 e W95 FAT16 (LBA)

my /etc/fstab file
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/hda6 /osshare vfat umask=000 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
LABEL=
*�
1`� swap swap defaults 0 0
/dev/hdb /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0

thing that appears when I mount hda6
[root@localhost lineak_kdeplugins-0.8.3]# mount /osshare
mount: wrong fs type, bad option, bad superblock on /dev/hda6,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Thank you very very much.
 
Old 11-27-2005, 08:44 AM   #2
Haystack
Member
 
Registered: Nov 2005
Location: Utrecht, Netherlands
Distribution: Gentoo, Ubuntu
Posts: 65

Rep: Reputation: 15
First: Read the manpage for Mount, the command you typed to mount de partition is wrong. typing 'mount --help' and 'man mount' will help you a lot.

Second: read the partition-howto (search for it with google, i don't know by head where you can find it) You want to mount a fat32 filesystem, but your partitiontable tells you having only fat16... not recommended, but possible though...
Maybe it's a good idea to read the 'filesystem-howto' (again, search for it) too...

Learing linux is learning to read.
 
Old 11-27-2005, 08:45 AM   #3
lacerto
Member
 
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Rep: Reputation: 30
Easy peesy:

1. Use fdisk to create the filesystem: fdisk /dev/hda - follow the prompts
2. Format it using mkfs.vfat -F 32 /dev/hda6
3. Add it to fstab

L

Edit: Ooops - too late.

Last edited by lacerto; 11-27-2005 at 08:48 AM.
 
Old 11-27-2005, 08:38 PM   #4
bonniehandi
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Original Poster
Rep: Reputation: 15
I was able to use mkfs to format the partition to FAT32.
But.... Now.... windoze does not reconzie that partition.
 
Old 11-28-2005, 03:17 AM   #5
Haystack
Member
 
Registered: Nov 2005
Location: Utrecht, Netherlands
Distribution: Gentoo, Ubuntu
Posts: 65

Rep: Reputation: 15
Hmm, if you're sure you made a FAT32-partition, it's a Windowsproblem that it not recognizes the partition...

How sure are you?
 
Old 11-28-2005, 03:36 AM   #6
bonniehandi
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Original Poster
Rep: Reputation: 15
I am very sure it is FAT32. I checked it from the partition table in linux, and I also checked it using diskpart in msdos.
 
Old 11-28-2005, 12:14 PM   #7
Haystack
Member
 
Registered: Nov 2005
Location: Utrecht, Netherlands
Distribution: Gentoo, Ubuntu
Posts: 65

Rep: Reputation: 15
Quote:
Originally posted by bonniehandi
I also checked it using diskpart in msdos.
So MSDOS shows you the partition but Windows doesn't? You gotta call Bill for that I guess...
 
Old 11-28-2005, 01:13 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,175

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
For a SWAG I would try changing the partition ID type from 0xe to 0xb. i.e. from FAT16 to FAT32.
 
Old 11-28-2005, 07:55 PM   #9
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
For xp see partitions made by linux i think it needs to be fat32 LBA id 0c. IIRC winxp cant see fat32 partitions above 32gigs so your gonna have to chopped it up. Any feel free to correct me if im wrong.

Last edited by Boow; 11-28-2005 at 08:00 PM.
 
Old 11-28-2005, 10:45 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,175

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
Correct, that was supposed to be a 0xc not a 0xb.

XP can read / write to a FAT32 partition of any size. It is only limited in creating and formating a partition of up to 32GB.
 
Old 11-29-2005, 03:50 AM   #11
bonniehandi
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Thank you very much.
It was the id problem. It works now.
 
Old 02-04-2006, 01:17 AM   #12
vortex08
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
I cannot access FAT32 file system fro fedora core 4.Fedora core 4 has ext3 file system ,though i know fedora can access FAT32 but not working.
 
Old 03-03-2006, 02:22 AM   #13
lunlun
Member
 
Registered: Jul 2005
Posts: 41

Rep: Reputation: 15
Quote:
Originally Posted by michaelk
For a SWAG I would try changing the partition ID type from 0xe to 0xb. i.e. from FAT16 to FAT32.
I have this exact problem,

Can someone please tell how to change partition IDtype ?
 
Old 03-03-2006, 07:41 AM   #14
smiley_lauf
Member
 
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344

Rep: Reputation: 30
this is quite interested thread to follow. I am a total noob with command line. So when I had a similar issue, I tried using QTParted from MEPIS live CD and selected the partition I wanted to format in FAT32. It did the trick, and windows could see and write to partition (and can linux). I thought I should jsut throw this. Interesting how many ways are there to skin a cat...
regards,
smiley
 
Old 03-03-2006, 01:07 PM   #15
lunlun
Member
 
Registered: Jul 2005
Posts: 41

Rep: Reputation: 15
Thankyou and good to hear it works for you~~


but i just wanna learn more stuff for my own knowledge~


so it would be nice if someone could tell me how to change partition IDtype
 
  


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
Sharing files between linux and windoze. Re format NTFS partition to FAT32? baldox Linux - Newbie 6 12-22-2006 12:01 AM
Format ext3 partition to FAT32? Moses420ca Linux - Newbie 14 09-16-2005 01:31 PM
Can't mount FAT32 partition EcceVery Debian 5 09-13-2004 06:53 AM
mount of fat32 partition mys71 Red Hat 2 05-09-2004 03:54 PM
I need to format a fat32 partition through a redhat 9 shell rendaimedia Linux - General 1 04-27-2004 10:50 AM


All times are GMT -5. The time now is 11:07 PM.

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