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

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Old 05-16-2013
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?
# 2  
Old 05-16-2013
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

This User Gave Thanks to Scott For This Post:
ravisingh (05-16-2013)
# 3  
Old 05-16-2013
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

This User Gave Thanks to fpmurphy For This Post:
ravisingh (05-16-2013)
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Repair windows 8.0 ntfs partition ppchu99 Windows & DOS: Issues & Discussions 2 01-14-2016 06:42 PM
Shrink LVM partition & create new Linux Primary partition gr8_usk Red Hat 5 09-02-2014 12:33 AM
How to access a NTFS partition on hard drive through Terminal in OSX ? neil.k OS X (Apple) 6 05-16-2012 11:08 AM
No option to create partition using FAT32 harriii Windows & DOS: Issues & Discussions 1 01-02-2012 01:33 PM
Help me to format partition trantuananh24hg Red Hat 2 09-15-2010 03:44 AM
fat32 vs ntfs cokedude Filesystems, Disks and Memory 4 06-02-2010 01:32 AM
problem to format linux partition praneshmishra08 Linux 0 09-02-2008 07:16 AM
NTFS in Linux(fedora) srikumar_cs UNIX for Advanced & Expert Users 2 04-03-2007 09:41 AM
Mount ntfs in linux Amit Deore Linux 4 09-26-2006 08:25 PM
writing on win ntfs partition from linux suyashkunte SuSE 2 09-13-2005 03:21 AM
Find a Fat32 partition under solaris 10 x86 willits Solaris 4 07-07-2005 03:02 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