Unix/Linux Go Back    

Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

Can I format a partition in Linux with FAT32 or NTFS?

Filesystems, Disks and Memory

Thread Tools Search this Thread Display Modes
Old Unix and Linux 05-16-2013
ravisingh ravisingh is offline
Banned User ID
Join Date: Feb 2013
Last Activity: 4 December 2015, 5:17 AM EST
Location: Mumbai
Posts: 106
Thanks: 7
Thanked 2 Times in 2 Posts
Can I format a partition in Linux with FAT32 or NTFS?

I tried in fedora 9 to format a partition with FAT32 or NTFS but failed

mkfs -t NTFS /dev/sdb3
mkfs -t FAT32 /dev/sdb3

In both the output says the the device isn't present.
the output is something like this:
mkfs.FAT32: no device present
mkfs.NTFS: no device present

I am able to format in Linux with ext3/4 and so I expected the format type to be visible in the below command output but isn't present in the output
fdisk /dev/sdb
command (m for help): l

I pressed l so as to list the diff. format types
I don't find ext3 or ext4 present. There is a type named 'Extended' but when I run the mkfs command with this type the same error I get. Why so?
Sponsored Links
Old Unix and Linux 05-16-2013
Scott's Unix or Linux Image
Scott Scott is offline Forum Staff  
Join Date: Jun 2009
Last Activity: 18 September 2017, 4:38 AM EDT
Location: Zürich
Posts: 8,627
Thanks: 347
Thanked 1,111 Times in 959 Posts
ext3 and ext4 are filesystem types, not partition types as shown by fdisk. FAT partition types shown by fdisk exist for mostly historical reasons and have nothing to do with Linux. You likely want to create a Linux of Linux LVM type of partition, and then format it using ext3 or ext4.

# ls /sbin/mkfs.*
/sbin/mkfs.cramfs  /sbin/mkfs.ext2  /sbin/mkfs.ext3  /sbin/mkfs.ext4  /sbin/mkfs.ext4dev  /sbin/mkfs.xfs

# mkfs -t ext4 /dev/sdb
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
393216 inodes, 1572864 blocks
78643 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1610612736
48 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736

While I've never had cause (or wanted to) create an MSDOS filesystem, there is a package you can install to do so:

# yum install dosfstools
# ls /sbin/mkfs
[root@test1 ~]# ls /sbin/mkfs.*
/sbin/mkfs.cramfs  /sbin/mkfs.ext3  /sbin/mkfs.ext4dev  /sbin/mkfs.vfat
/sbin/mkfs.ext2    /sbin/mkfs.ext4  /sbin/mkfs.msdos    /sbin/mkfs.xfs

The Following User Says Thank You to Scott For This Useful Post:
ravisingh (05-16-2013)
Sponsored Links
Old Unix and Linux 05-16-2013
fpmurphy's Unix or Linux Image
fpmurphy fpmurphy is offline Forum Advisor  
Join Date: Dec 2003
Last Activity: 12 June 2016, 11:03 PM EDT
Location: /dev/ph
Posts: 4,996
Thanks: 73
Thanked 475 Times in 437 Posts
Linux does not natively support NFTS. You can format a FAT32 filesystem in Fedora using something like the following

mkfs.vfat -F 32 /dev/sdb3


mkfs.msdos -F 32 /dev/sdb3

The Following User Says Thank You to fpmurphy For This Useful Post:
ravisingh (05-16-2013)
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
fat32 vs ntfs cokedude Filesystems, Disks and Memory 4 06-02-2010 01:32 AM
writing on win ntfs partition from linux suyashkunte SuSE 2 09-13-2005 03:21 AM
converting file systems (FAT32 to NTFS) hdk_mkr Filesystems, Disks and Memory 0 05-22-2004 01:04 PM
File Sharing among NTFS Partition & RH Linux 9 Partitions Jawwad Linux 1 12-13-2003 09:01 AM
Linux/Windows Fat32 Swap partition. djtrippin UNIX for Dummies Questions & Answers 2 12-08-2002 06:37 PM

All times are GMT -4. The time now is 03:53 PM.