1jfs_mkfs(8)                JFS file system creation                jfs_mkfs(8)
2
3
4

NAME

6       jfs_mkfs - create a JFS formatted partition
7
8

SYNOPSIS

10       jfs_mkfs [options] device [ blocks ]
11
12

DESCRIPTION

14       jfs_mkfs  is used to create (format) a JFS partition.  jfs_mkfs must be
15       run as root.
16
17
18       device is the special file name  corresponding  to  the  actual  device
19       (e.g.  /dev/hdb1) on which a JFS file system and/or JFS journal will be
20       created.  blocks is the number of blocks to be used for the  file  sys‐
21       tem.  If omitted, jfs_mkfs automatically figures the file system size.
22
23
24       The default block size is 4096.
25
26

WARNING

28       jfs_mkfs will destroy all data on the specified device!
29
30

OPTIONS

32       -c     Check the device for bad blocks before building the file system.
33
34
35
36       -j journal_device
37              (Experimental) Create the external JFS journal on journal_device
38              , create the JFS file system on device , and attach the external
39              journal to the file system.
40
41
42       -J journal-options
43              (Experimental)  Create  the  JFS  journal  on  its own device or
44              attach an external JFS journal to  the  JFS  file  system  using
45              options  specified  on  the command-line.  The following journal
46              options are supported:
47
48                   journal_dev
49                          Create an external JFS journal on the given device.
50
51                   device=external-journal
52                          Attach an existing external JFS journal  located  on
53                          external-journal to the JFS file system that will be
54                          created  on  device.   The  external  journal   must
55                          already have been created using the command
56
57                          jfs_mkfs -J journal_dev external-journal
58
59                          Attach the external journal to the file system being
60                          created by using the command
61
62                          jfs_mkfs -J device=external-journal device
63
64                          Instead of specifying a device name directly, exter‐
65                          nal-journal   can   also   be  specified  by  either
66                          LABEL=label or  UUID=UUID  to  locate  the  external
67                          journal by either the volume label or UUID stored in
68                          the JFS external log superblock at the start of  the
69                          journal.   Use  jfs_tune(8)  to  display  a  journal
70                          device's volume label and UUID.  (See  the  -l,  -L,
71                          and -U options of jfs_tune(8).)
72
73              Only  one of the journal_dev or device= options can be given per
74              jfs_mkfs issuance.
75
76
77       -L volume_label
78              Set the volume label for the newly formatted device.
79
80              If -L volume_label is used along  with  -J  journal_device,  the
81              volume  label  of  the specified external journal device will be
82              set to volume_label.  Otherwise, the volume  label  of  the  JFS
83              file system will be set to volume_label.
84
85
86       -O     Provide case-insensitive support for compatibility with OS/2.
87
88
89       -q     Quiet  execution  -  do not ask for confirmation before creating
90              the file system.
91
92
93       -s log_size
94              Set the log size (in megabytes) of the inline log.   If  the  -s
95              option  is  not used, the default log size is 0.4% of the aggre‐
96              gate size.
97
98
99       -V     Print version information and exit (regardless of any other cho‐
100              sen options).
101
102

EXAMPLES

104       Format 3rd partition on 2nd hard disk with the volume label "JFS_hdb3":
105
106              jfs_mkfs -L JFS_hdb3 /dev/hdb3
107
108       Format 5th partition on 1st hard disk, verifying each block created:
109
110              jfs_mkfs -c /dev/hda5
111
112       Format  3rd  partition on 2nd hard disk as external journal, format 4th
113       partition on 1st hard disk as JFS file system, and attach the  external
114       journal to the file system:
115
116              jfs_mkfs -j /dev/hdb3 /dev/hda4
117

REPORTING BUGS

119       If  you  find  a  bug  in JFS or jfs_mkfs, please report it via the bug
120       tracking system ("Report Bugs" section) of the JFS project web site:
121       http://jfs.sourceforge.net/
122
123       Please send as much pertinent information  as  possible  including  any
124       error messages resulting from running jfs_mkfs.
125
126

SEE ALSO

128       mkfs(8),   jfs_fsck(8),  jfs_fscklog(8),  jfs_tune(8),  jfs_logdump(8),
129       jfs_debugfs(8)
130
131
132

AUTHORS

134       Barry Arndt  (barndt@us.ibm.com)
135       William Braswell, Jr.
136
137       jfs_mkfs is maintained by IBM.
138       See the JFS project web site for more details:
139       http://jfs.sourceforge.net/
140
141
142
143                                 March 9, 2005                     jfs_mkfs(8)
Impressum