Operating System - HP-UX
1855947 Members
3311 Online
104107 Solutions
New Discussion

i want to know what's the difference between mksf and newfs

 
SOLVED
Go to solution
常有慈悲心
Regular Advisor

i want to know what's the difference between mksf and newfs

is mksf a old command?
7 REPLIES 7
Sundar_7
Honored Contributor

Re: i want to know what's the difference between mksf and newfs

I guess you wanted to know the difference between mkfs (not mksf) and newfs. however, here is both.

mksf vs newfs
=============
both are used for completely different functionality. mksf creates device files with custom attributes. newfs creates filesystems on logical volumes/whole disks

mkfs vs newfs
=============

As far as my understanding goes, newfs is just a wrapper for mkfs. newfs inturn calls mkfs and get the job done. You have very good control over the filesystem metadata structures with mkfs but u r better off using newfs.

Learn What to do ,How to do and more importantly When to do ?
Patrick Wallek
Honored Contributor

Re: i want to know what's the difference between mksf and newfs

First try the man pages.

mksf = make special file. That can be used to create new device files if you need to.

newfs = new filesystem. That creates the filesystem layout on a new logical volume.

# man mksf

# man newfs
Michael Tully
Honored Contributor

Re: i want to know what's the difference between mksf and newfs

mksf: Makes special files for most/all types of devices.
newfs: Creates a new file system on top of a designated logical volume.
Anyone for a Mutiny ?
常有慈悲心
Regular Advisor

Re: i want to know what's the difference between mksf and newfs

thanks,
i write wrong.
it's the difference between mkfs,newfs

.
can i use mkfs to create a file system directly?
Sundar_7
Honored Contributor
Solution

Re: i want to know what's the difference between mksf and newfs

Sure you can use mkfs to create the file system directly, though I am not aware of any problems you might face.

But preferred and suggested way would be to use newfs.
Learn What to do ,How to do and more importantly When to do ?
R. Sri Ram Kishore_1
Respected Contributor

Re: i want to know what's the difference between mksf and newfs

Hi,

A new filesystem can be created using either the mkfs command or the newfs command. newfs is actually a more user-friendly front-end to mkfs.

Also, check out this thread (same topic has been discussed there as well):
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=605059

HTH.
Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."
Geoff Wild
Honored Contributor

Re: i want to know what's the difference between mksf and newfs

mkfs is called by newfs.

mkfs allows you more options when creating file systems.

For example, say you have a backup server running 11.0 and a database server on 11.i.

Well, default filesystem type is different - and you won't be able to mount a 11.i filesystem on 11.0 - unless you created the file system on 11i like so:

mkfs -F vxfs -o largefiles -o version=3 /dev/vg30/rsapdata01

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.