Can I format a partition in Linux with FAT32 or NTFS? | Unix Linux Forums | Filesystems, Disks and Memory

  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


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-16-2013
ravisingh ravisingh is offline
Banned
 
Join Date: Feb 2013
Last Activity: 25 November 2013, 2:56 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

Code:
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
Code:
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
    #2  
Old 05-16-2013
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Last Activity: 31 July 2014, 8:30 PM EDT
Location: Zürich
Posts: 8,445
Thanks: 328
Thanked 1,031 Times in 902 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.


Code:
# 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:

Code:
# 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
    #3  
Old 05-16-2013
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
who?
 
Join Date: Dec 2003
Last Activity: 30 July 2014, 5:10 AM EDT
Location: /dev/ph
Posts: 4,773
Thanks: 59
Thanked 423 Times in 392 Posts
Linux does not natively support NFTS. You can format a FAT32 filesystem in Fedora using something like the following

Code:
mkfs.vfat -F 32 /dev/sdb3

or

Code:
mkfs.msdos -F 32 /dev/sdb3

The Following User Says Thank You to fpmurphy For This Useful Post:
ravisingh (05-16-2013)
Sponsored Links
Closed 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
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:48 AM.