Operating System - HP-UX
1751978 Members
4692 Online
108784 Solutions
New Discussion юеВ

difference between mkfs and newfs

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

difference between mkfs and newfs

Hi

I think both is used to create the file system.

# newfs -F vxfs -o largefiles /dev/rdsk/c0t1d0

#mkfs -F vxfs -o version=4,largefiles /dev/vgqa/lvol1

Am i correct that both above commands are used to create the filesystem.

5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: difference between mkfs and newfs

Shalom,

newfs is a front end for mkfs because people found mkfs a little hard to use.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Pete Randall
Outstanding Contributor

Re: difference between mkfs and newfs

Check the man page:

"The newfs command is a "friendly" front-end to the mkfs command (see mkfs(1M)). The newfs command calculates the appropriate parameters and then builds the file system by invoking the mkfs command."


Pete

Pete
Kranti Mahmud
Honored Contributor

Re: difference between mkfs and newfs

Hi Senthil,

for mkfs:

http://docs.hp.com/en/B2355-60105/mkfs.1M.html

for newfs:

http://docs.hp.com/en/B2355-60105/newfs.1M.html

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!
Suraj K Sankari
Honored Contributor

Re: difference between mkfs and newfs

HI,

The mkfs command creates a file system by writing on the special file special. operands are listed on file system specific manual pages

The newfs command is a "friendly" front-end to the mkfs command (see mkfs(1M)). The newfs command calculates the appropriate parameters and then builds the file system by invoking the mkfs command.

Suraj
Sajjad Sahir
Honored Contributor

Re: difference between mkfs and newfs

Dear Senthil

1 mksf make device file is the device is know in the system.

2newfs create a new file system.

thanks and regards

Sajjad Sahir