Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fomat Fat32 1

Status
Not open for further replies.

Noip

IS-IT--Management
Apr 25, 2002
240
MU
hI,

I have just created a Fat32 Partition on my RH80 system and I would like to fomat it.

which command should be used?
 
mkfs -c -t fat32 /dev/hda1

which roughly means
makefilesystem check type=fat32 partition

hda -- first ide master (whole disk)
hda1 -- first ide master (first partition)
 
Thanks I've tried it up, look the results:

root@localhost root]# mkfs -c -t fat32 /dev/hda5
mke2fs 1.27 (8-Mar-2002)
mkfs.ext2: bad blocks count - /dev/hda5

Any more help
 
looks like it has mistaken your partition with an ext2 filesystem, are you sure /dev/hda5 is fat32?
you can check it with fdsik /dev/hda and then press to print the partition table
 
Hi thanks for the input.
Check my partition table below.
I have already deleted and recreated the partition several times..

Disk /dev/hda: 255 heads, 63 sectors, 4982 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 3200 25599577+ 83 Linux
/dev/hda3 3201 3265 522112+ 82 Linux swap
/dev/hda4 3266 4982 13791802+ 5 Extended
/dev/hda5 3266 3903 5124703+ b Win95 FAT32
 
But does this next bit actually mean there is a problem or is it just telling you there are no bad blocks.

root@localhost root]# mkfs -c -t fat32 /dev/hda5
mke2fs 1.27 (8-Mar-2002)
mkfs.ext2: bad blocks count - /dev/hda5

what happens if you now try to mount it
 
Check:

[root@localhost root]# mount -t vfat /dev/hda5 /mnt/hda5
mount: wrong fs type, bad option, bad superblock on /dev/hda5,
or too many mounted file systems
[root@localhost root]# mount -t ext3 /dev/hda5 /mnt/hda5
mount: wrong fs type, bad option, bad superblock on /dev/hda5,
or too many mounted file systems
[root@localhost root]# mount -t ext2 /dev/hda5 /mnt/hda5
mount: wrong fs type, bad option, bad superblock on /dev/hda5,
or too many mounted file systems
[root@localhost root]#
 
Try this:
[tt]mkfs.vfat -c /dev/hda5
mount -t vfat /dev/hda5 /mnt/hda5[/tt]

//Daniel
 
Check:

[root@localhost root]# mkfs.vfat -c /dev/hda5
mkfs.vfat 2.8 (28 Feb 2001)
mkfs.vfat: Attempting to create a too large file system
[root@localhost root]# mount -t vfat /dev/hda5 /mnt/hda5
mount: wrong fs type, bad option, bad superblock on /dev/hda5,
or too many mounted file systems

Thanx for any more help...
 
How big is the partition?
Try a smaller one maybe.I'm not sure what the limit is sorry.
 
Thanks but same output with a 200Mb partition.

Is the command 'mkfs.vfat' supposed to format the partition?

Thanks
 

But can't the problem be due to the no.of partitions?

It should be able to understand 3 primary: swap, boot and /
and 1 extended partition with its logical partitions! Right?

Thanks

 
Why not delete the partition including the extended one and do it from inside linux. That way we know its ok! (not holding my breath though)

check out



also have a read of


especially the bit on Partition Naming Scheme
See if you can create it as a primary rather than inside an extended. It implies up to 4 primarys are supported.
do a "man parted" to see if its on your box and read the documentation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top