Today's Posts

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?


Login 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

The Following User Says Thank You to Scott For This Useful 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

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

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Repair windows 8.0 ntfs partition ppchu99 Windows & DOS: Issues & Discussions 2 01-14-2016 07:42 PM
How to access a NTFS partition on hard drive through Terminal in OSX ? neil.k OS X (Apple) 6 05-16-2012 12:08 PM
No option to create partition using FAT32 harriii Windows & DOS: Issues & Discussions 1 01-02-2012 02:33 PM
fat32 vs ntfs cokedude Filesystems, Disks and Memory 4 06-02-2010 02:32 AM
problem to format linux partition praneshmishra08 Linux 0 09-02-2008 08:16 AM
writing on win ntfs partition from linux suyashkunte SuSE 2 09-13-2005 04:21 AM
Find a Fat32 partition under solaris 10 x86 willits Solaris 4 07-07-2005 04:02 AM
converting file systems (FAT32 to NTFS) hdk_mkr Filesystems, Disks and Memory 0 05-22-2004 02:04 PM
File Sharing among NTFS Partition & RH Linux 9 Partitions Jawwad Linux 1 12-13-2003 10:01 AM
Linux/Windows Fat32 Swap partition. djtrippin UNIX for Dummies Questions & Answers 2 12-08-2002 07:37 PM

All times are GMT -4. The time now is 08:35 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
Show Password