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 |
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.
|
|
|
11-27-2005, 04:40 AM
|
#1
|
LQ Newbie
Registered: Nov 2005
Posts: 27
Rep:
|
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.
|
|
|
11-27-2005, 07:44 AM
|
#2
|
Member
Registered: Nov 2005
Location: Utrecht, Netherlands
Distribution: Gentoo, Ubuntu
Posts: 65
Rep:
|
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.
|
|
|
11-27-2005, 07:45 AM
|
#3
|
Member
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297
Rep:
|
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 07:48 AM.
|
|
|
11-27-2005, 07:38 PM
|
#4
|
LQ Newbie
Registered: Nov 2005
Posts: 27
Original Poster
Rep:
|
I was able to use mkfs to format the partition to FAT32.
But.... Now.... windoze does not reconzie that partition.
|
|
|
11-28-2005, 02:17 AM
|
#5
|
Member
Registered: Nov 2005
Location: Utrecht, Netherlands
Distribution: Gentoo, Ubuntu
Posts: 65
Rep:
|
Hmm, if you're sure you made a FAT32-partition, it's a Windowsproblem that it not recognizes the partition...
How sure are you?
|
|
|
11-28-2005, 02:36 AM
|
#6
|
LQ Newbie
Registered: Nov 2005
Posts: 27
Original Poster
Rep:
|
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.
|
|
|
11-28-2005, 11:14 AM
|
#7
|
Member
Registered: Nov 2005
Location: Utrecht, Netherlands
Distribution: Gentoo, Ubuntu
Posts: 65
Rep:
|
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...
|
|
|
11-28-2005, 12:13 PM
|
#8
|
Moderator
Registered: Aug 2002
Posts: 26,255
|
For a SWAG I would try changing the partition ID type from 0xe to 0xb. i.e. from FAT16 to FAT32.
|
|
|
11-28-2005, 06:55 PM
|
#9
|
Member
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669
Rep:
|
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 07:00 PM.
|
|
|
11-28-2005, 09:45 PM
|
#10
|
Moderator
Registered: Aug 2002
Posts: 26,255
|
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.
|
|
|
11-29-2005, 02:50 AM
|
#11
|
LQ Newbie
Registered: Nov 2005
Posts: 27
Original Poster
Rep:
|
Thank you very much.
It was the id problem. It works now.
|
|
|
02-04-2006, 12:17 AM
|
#12
|
LQ Newbie
Registered: Feb 2006
Posts: 1
Rep:
|
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.
|
|
|
03-03-2006, 01:22 AM
|
#13
|
Member
Registered: Jul 2005
Posts: 41
Rep:
|
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 ?
|
|
|
03-03-2006, 06:41 AM
|
#14
|
Member
Registered: Jan 2006
Location: NY
Distribution: Fedora 15 x64
Posts: 344
Rep:
|
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
|
|
|
03-03-2006, 12:07 PM
|
#15
|
Member
Registered: Jul 2005
Posts: 41
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 10:18 PM.
|
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
|
|