Sponsored Content
Special Forums Hardware Filesystems, Disks and Memory Can I format a partition in Linux with FAT32 or NTFS? Post 302808259 by Scott on Thursday 16th of May 2013 09:24:03 AM
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:

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Linux/Windows Fat32 Swap partition.

I run a dual boot WinXP/Red Hat 8 system on my laptop. Since my hard drive is inherently small(laptop) I am trying to creat a swap partition for keeping mutually used files such as music/video etc... I have created a 2.5GB Fat32 partition with Partition Magic Pro and have windows recognizing the... (2 Replies)
Discussion started by: djtrippin
2 Replies

2. Linux

File Sharing among NTFS Partition & RH Linux 9 Partitions

Well Guys, will anybody solve my problem? I have installed Win XP and RH Linux 9 (Dual Boot) on an Intel x86 Machine. Everything is going fine except that I cannot share files among the two operating systems. For example, if I download a PDF file from internet and save it in my Win XP partition... (1 Reply)
Discussion started by: Jawwad
1 Replies

3. Filesystems, Disks and Memory

converting file systems (FAT32 to NTFS)

People who still have FAT32, usaly have 2 or more operating systems running on their computer. An example of that is like runnging OS x over Windows 95 or XP. Stuff like that. On one of my lap tops, I have Linux, Unix, and OS x running on one HD. The OS x runs really really slow thought...I hardly... (0 Replies)
Discussion started by: hdk_mkr
0 Replies

4. Solaris

Find a Fat32 partition under solaris 10 x86

Hello, I use Sun Solaris 10 under a x86 computer, and I want to mount a Fat32 partition who are stored in the same disk with the UFS filesystem. But, before mount this partition, I need to know is location in /dev/dsk Because there are a lot of file "c0t0d0" etc..., and I didn't find my... (4 Replies)
Discussion started by: willits
4 Replies

5. SuSE

writing on win ntfs partition from linux

Is it possible to save a file from linux environment to a windows ntfs partition? I use SUSE 8.3 and I can access win ntfs files only as read only. I want to know whether writing is possible on win ntfs partition. (2 Replies)
Discussion started by: suyashkunte
2 Replies

6. Linux

problem to format linux partition

hi friends one week ago, i have installed fedoa 9 on my home pc. i already have windows xp on that machine. unfortunately my windows xp has corrupted. again i want to install windows xp but it is not installing. will i format my linux partition or some other option is there. please help me... (0 Replies)
Discussion started by: praneshmishra08
0 Replies

7. Filesystems, Disks and Memory

fat32 vs ntfs

http://wiki.linuxquestions.org/wiki/Interoperability Is this no longer accurate about fat32? I just used a 4 gb flash drive to share several video files between Windows XP and Linux Mint. I also plan on sharing several files in the future with that 4 gb flash drive between XP and Mint so I... (4 Replies)
Discussion started by: cokedude
4 Replies

8. Windows & DOS: Issues & Discussions

No option to create partition using FAT32

Hi, i have a new laptop without any OS. I'm about to install win 7. i have a FreeDos CD and I'm currently trying to install it. My hard drive has about 610 000 GB space. I'm unable to create a partition bigger than ~2 GB. I know that normally when you start FDISK, you're asked if you want... (1 Reply)
Discussion started by: harriii
1 Replies

9. OS X (Apple)

How to access a NTFS partition on hard drive through Terminal in OSX ?

Hi , I have a Mac OS X Lion mac book pro. I have a hard drive which I have partitioned in two (a) OSX Partition - Mac OS Extended Journaled format. Mount point: / (b) Data Partition - Windows NT Filesystem format. Mount point: /Volumes/Data I need to access the NTFS partition (I have a... (6 Replies)
Discussion started by: neil.k
6 Replies

10. Windows & DOS: Issues & Discussions

Repair windows 8.0 ntfs partition

I have a 1TB HD, suspect it had bad sectors and blocks... it was pre-installed with windows 8.0.. I was able to boot up ubuntu and looked at the partitions and run a badblocks comand to verify secotors, after getting a serious of Input and Output errors mounting the partition and doing any... (2 Replies)
Discussion started by: ppchu99
2 Replies
MOUNT_NTFS(8)						    BSD System Manager's Manual 					     MOUNT_NTFS(8)

mount_ntfs -- mount an NTFS file system SYNOPSIS
mount_ntfs [-a] [-i] [-u uid] [-g gid] [-m mask] special node DESCRIPTION
The mount_ntfs command attaches the NTFS filesystem residing on the device special to the global filesystem namespace at the location indi- cated by node. Both special and node are converted to absolute paths before use. This command is normally executed by mount(8) at boot time, but can be used by any user to mount an NTFS file system on any directory that they own (provided, of course, that they have appropri- ate access to the device that contains the file system). The supported NTFS versions include both NTFS4, as used by Microsoft Windows NT 4.0, and NTFS5, as used by Microsoft Windows 2000 and XP. The options are as follows: -a Force behaviour to return MS-DOS 8.3 names also on readdir(). -i Make name lookup case insensitive for all names except POSIX names. -u uid Set the owner of the files in the file system to uid. The default owner is the owner of the directory on which the file system is being mounted. -g gid Set the group of the files in the file system to gid. The default group is the group of the directory on which the file system is being mounted. -m mask Specify the maximum file permissions for files in the file system. FEATURES
NTFS file attributes NTFS file attributes can be accessed in the following way: foo[[:ATTRTYPE]:ATTRNAME] 'ATTRTYPE' is one of identifier listed in $AttrDef file of volume. Default is $DATA. 'ATTRNAME' is an attribute name. Default is none. Examples: To get volume name (in Unicode): # cat /mnt/$Volume:$VOLUME_NAME To read directory raw data: # cat /mnt/foodir:$INDEX_ROOT:$I30 Limited support for writing There is limited writing ability for files. Limitations: o file must be non-resident o file must not contain any holes (uninitialized areas) o file can't be compressed Note that it's not currently possible to create or remove files on NTFS filesystems. Warning: do not mount NTFS filesystems read-write. The write support is not very useful and is not tested well. It's not safe to write to any file on NTFS; you might damage the filesystem. Unless you want to debug NTFS filesystem code, mount the NTFS filesystem read-only. SEE ALSO
mount(2), unmount(2), fstab(5), disklabel(8), mbrlabel(8), mount(8) HISTORY
Support for NTFS first appeared in FreeBSD 3.0. It was ported to NetBSD and first appeared in NetBSD 1.5. AUTHORS
NTFS kernel implementation, mount_ntfs and this manual were originally written by Semen Ustimenko <semenu@FreeBSD.org>. The NetBSD port was done by Christos Zoulas <christos@NetBSD.org> and Jaromir Dolecek <jdolecek@NetBSD.org>. BUGS
The write support should be enhanced to actually be able to change file size, and to create and remove files and directories. It's not very useful right now. If the attempt to mount NTFS gives you an error like this: # mount -t ntfs /dev/wd0k /mnt mount_ntfs: /dev/wd0k on /mnt: Invalid argument make sure that appropriate partition has correct entry in the disk label, particularly that the partition offset is correct. If the NTFS partition is the first partition on the disk, the offset should be '63' on i386 (see disklabel(8)). mbrlabel(8) could help you to set up the disk label correctly. If the NTFS partition is marked as 'dynamic' under Microsoft Windows XP, it won't be possible to access it under NetBSD anymore. BSD
October 31, 2001 BSD

Featured Tech Videos

All times are GMT -4. The time now is 04:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy