Operating System - HP-UX
1832925 Members
2854 Online
110048 Solutions
New Discussion

Re: difference between mkfs and newfs

 
SOLVED
Go to solution
Amit Manna_6
Regular Advisor

difference between mkfs and newfs

Can anybody tell me the difference between mkfs and newfs
3 REPLIES 3
Naveej.K.A
Honored Contributor
Solution

Re: difference between mkfs and newfs

hi,

newfs is a enhanced to mkfs

the man pages says:
The newfs command is a "friendly" front-end to the mkfs command. The newfs command calculates the appropriate parameters and then builds the file system by invoking the mkfs command.

it does almost one and the same

with best wishes
naveej

practice makes a man perfect!!!
sam_111
Trusted Contributor

Re: difference between mkfs and newfs

Hi Amit,

mkfs creates a Linux MINIX file-system on a device.

Newfs replaces mkfs program.

Newfs is much easier in most circumstances.The only time you 'have' to use mkfs is if you are growing an already existing filesystem.

regards,

sam

"Hard Work always Pays off"
Geoff Wild
Honored Contributor

Re: difference between mkfs and newfs

newfs applies defaults to filesystem layout....mkfs allows more granularity...

For example, on a 11i system, the default vxfs version is 4. Say your backup server is 11.0 - and you want to mount the filesystem locally - well, you won't be able to unless you created the file systems like so:

mkfs -F vxfs -o largefiles -o version=3 /dev/vgXX/rlvolX

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.