02-10-2009
mkfs builds a Linux filesystem whilst newfs construct a new UFS file system.
newfs is a "friendly" front-end to the mkfs(1M) program for making UFS file systems on disk partitions. newfs calculates the appropriate parameters to use and calls mkfs.
The newfs utility replaces the more obtuse mkfs(8) program. The newfs utility builds a file system on the specified special device basing its defaults on the information in the disk label. Typically the defaults are reasonable, however newfs has numerous options to allow the defaults to be selectively overridden
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Looking for a good online primer/intro to creating a new file system, mounting, and eventually using NFS. Do you use newfs then mount or mount then newfs, how do you work with a new partition to create a new file system.... it's all a bit confusing.
The man pages are a little too verbose and... (1 Reply)
Discussion started by: charliewade
1 Replies
2. UNIX for Dummies Questions & Answers
I am very interested in filesystems. creating filesystems on my database is almost a function that I apply routinely.. . but recently I have been reading up on filesystems and creating filesystem in The Rute Tutorial and Expo by paul sheer.. and he mentions the use of mkfs and mke2fs as a means... (4 Replies)
Discussion started by: moxxx68
4 Replies
3. AIX
I was wondering why the mkfs command would be defaulted to allocate a minimum of 4096K of space to each file. :confused: (0 Replies)
Discussion started by: vigsgb
0 Replies
4. UNIX for Dummies Questions & Answers
What is the correct mkfs syntax to create mirrored disk files systems? I need to make the file system 20gb. For example:
machine# mkfs -F ufs /dev/md/dsk/d40
size not specified
ufs usage: mkfs special size(sectors) \
-m : dump fs cmd line used to make this partition
-V : print this... (4 Replies)
Discussion started by: GLJ@USC
4 Replies
5. Solaris
what do you make of this ??
all I want to do is newfs a slice of disk.....
# uname -a
SunOS myhost 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V240
# cat /etc/release
Solaris 10 8/07 s10s_u4wos_12b SPARC
Copyright 2007 Sun Microsystems, Inc. All... (4 Replies)
Discussion started by: robsonde
4 Replies
6. Solaris
Hi,
can someone please help me create a newfs on my unix server ?
thankyou
venhart (7 Replies)
Discussion started by: venhart
7 Replies
7. Solaris
Hi All,
While creating the ufs file system with newfs - i where can I see the change, I mean if the density of inode has been increased where I can see it.
I tried with fstyp –v <slice> however not sure as where to look for the information.
Will appreciate if I can get... (0 Replies)
Discussion started by: kumarmani
0 Replies
8. Solaris
On a RAID-5 solaris 9 server, we replaced a bad disk.
Upon boot up, a mount point failed:
vxvm:vxvol: ERROR: Volume IQ_Staging is not startable; some subdisks are
unusable and the parity is stale
With Sun tech support, we tried vxvol start and vxvol resync, but it remained... (3 Replies)
Discussion started by: abstractrick
3 Replies
9. UNIX for Dummies Questions & Answers
Hi i am looking for some help with a question relating to the creation of the ext3 file system.
"Why is it good practice not to have a file system mounted whilst you try to create it?"
I have searched google but not had any luck in finding out what the actual dangers are of creating a file... (1 Reply)
Discussion started by: allan1986
1 Replies
10. UNIX for Advanced & Expert Users
Hi All,
i am getting below error while executing mkfs after creating a new partition in linux
/dev/sda2 is apparently in use by the system ; will not make a filesystem here.
Anyone having any idea , how to solve this problem
thanks (2 Replies)
Discussion started by: Jcpratap
2 Replies
mkfs(1M) System Administration Commands mkfs(1M)
NAME
mkfs - construct a file system
SYNOPSIS
mkfs [-F FSType] [generic_options] [-o FSType-specific_options] raw_device_file [operands]
DESCRIPTION
The mkfs utility constructs a file system on the raw_device_file by calling the specific mkfs module indicated by -F FSType.
Note: ufs file systems are normally created with the newfs(1M) command.
generic_options are independent of file system type. FSType-specific_options is a comma-separated list of keyword=value pairs (with no
intervening spaces), which are FSType-specific. raw_device_file specifies the disk partition on which to write the file system. It is
required and must be the first argument following the specific_options (if any). operands are FSType-specific. See the FSType-specific
manual page of mkfs (for example, mkfs_ufs(1M)) for a detailed description.
OPTIONS
The following are the generic options for mkfs:
-F Specify the FSType to be constructed. If -F is not specified, the FSType is determined from /etc/vfstab by matching the
raw_device_file with a vfstab entry, or by consulting the /etc/default/fs file.
-V Echo the complete command line, but do not execute the command. The command line is generated by using the options and arguments
provided and adding to them information derived from /etc/vfstab or /etc/default/fs. This option may be used to verify and vali-
date the command line.
-m Return the command line which was used to create the file system. The file system must already exist. This option provides a means
of determining the command used in constructing the file system.
-o Specify FSType-specific options. See the manual page for the mkfs module specific to the file system type.
USAGE
See largefile(5) for the description of the behavior of mkfs when encountering files greater than or equal to 2 Gbyte ( 2**31 bytes).
FILES
/etc/default/fs Default file system type. Default values can be set for the following flags in /etc/default/fs. For example:
LOCAL=ufs
LOCAL The default partition for a command if no FSType is specified.
/etc/vfstab List of default parameters for each file system
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
mkfs_ufs(1M), newfs(1M), vfstab(4), attributes(5), largefile(5)
Manual pages for the FSType-specific modules of mkfs.
NOTES
This command might not be supported for all FSTypes.
You can use lofiadm to create a file that appears to a mkfs command as a raw device. You can then use a mkfs command to create a file sys-
tem on that device. See lofiadm(1M) for examples of creating a UFS and a PC (FAT) file system (using mkfs_ufs(1M) and mkfs_pcfs(1M)) on a
device created by lofiadm.
SunOS 5.10 17 Nov 2000 mkfs(1M)