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

EXAMPLES

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

REPORTING BUGS

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

SEE ALSO

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

AUTHORS

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