- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mksf versus insf
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2001 09:08 PM
08-14-2001 09:08 PM
mksf versus insf
i'm not sure about when to use the mksf command and when to use the insf as both are creating the device file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2001 09:52 PM
08-14-2001 09:52 PM
Re: mksf versus insf
Generally 'insf' can be used to generate or
re-generate device files that may have
been accidently deleted. 'insf -e' from
/dev will create all devices that are
recognised by the system kernel.
'mksf' on the other hand can be
used mainly to create a single device file
from say a hardware address and class
e.g.
# mksf -d stape -H 0/0/1/0.3.0 will create
tape drive devices as
/dev/rmt/?m
/dev/rmt/?mn
/dev/rmt/?mb
/dev/rmt/?mnb
/dev/rmt/c0t3dBEST
One item to note is that 'insf' should not be
run in multi-user mode as stated at the end
of the man page, altough I've never had any
problem with using it whether in single or multi-user state.
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2001 06:15 AM
08-15-2001 06:15 AM
Re: mksf versus insf
First of all insf and mksf call mksf. When you run /usr/sbin/insf or /usr/sbin/mksf it calls /sbin/mksf.
One of the major advantages of insf is, it has an option -e which lets you reinstall the special files for psuedo-drivers and existing devices.
For more information look at man pages for insf and mksf.
Actually like Mike said, there is a WARNING for insf, that it should be run in single-user mode, but i never had a problem running in multi-user mode.
-HTH
I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2001 01:25 PM
08-15-2001 01:25 PM
Re: mksf versus insf
When running "insf -e", all device files are recreated even if they already exist.
So, if you are running an application that requires a specific permissions/owner/group on a device file your application will break. This is because on recreation of the device file all the defaults for permissions/owner/group are applied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2001 04:55 PM
08-15-2001 04:55 PM
Re: mksf versus insf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2001 05:10 PM
08-15-2001 05:10 PM
Re: mksf versus insf
insf is the command used at bootup to create device files for new peripherals. insf installs a standard set of device files while mksf has several options to for additional device files. insf is easier to use:
insf -H
insf figures out the driver and the associated device files.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2001 05:23 PM
08-15-2001 05:23 PM
Re: mksf versus insf
First of all you can try
/usr/sbin/ioscan -fnC tape
(This would return if the tape drive is already configured and the device files are existing.
If not you could create the device files using mksf
eg:
mksf -d stape -H 10/12/5.0.0
(This would create the device file for the tape drive at the hardware path 10/12/5.0.0, which happens to be the default path for K-Class system. Notice the stape here is to indicate the driver for the tape drive. To list the device drivers on your system, you can use lsdev)
If its an L/N class, the path would be 0/0/1/0.3.0 ( but check the path on your system)
-HTH
I am RU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 12:36 AM
08-16-2001 12:36 AM
Re: mksf versus insf
is:
ioscan -f # scan hardware
insf -e -H harward_path # create standard special files for that hardware found.
mkfs allows you create 'special' special files as /dev/zero or /dev/async or special files for tapes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2001 12:51 AM
08-16-2001 12:51 AM
Re: mksf versus insf
U will use insf ..say when ur hot swap hard
disk is failed and U replaced or when U want to create more pty's or U have removed some of
the special device file and want the system to automatically build for U..
U will use mksf to ""Customize"" the device
file for U when the driver is already there in the kernel..
So U want to create a non-rewinding tape device file or U might want to enable software compression or density options..
In that case U are going to use mksf..
Hope this clears U..
Sundar