[comp.sys.hp] Root file system has no raw device file

seligman@CS.Stanford.EDU (Scott Seligman) (01/12/90)

I'm running HP-UX 6.5 on a 350.

I'd like to use the dump (1M) program, which seems to
work only for raw device files.  The root file system,
however, has no raw device file (/dev/rdsk/0s0) associated 
with it. 

Can I create /dev/rdsk/0s0 with the mknod command?
Can I convince /etc/dump to use the block file? 

Is there any hope?


tnx,
Scott Seligman

Internet:  seligman@cs.stanford.edu
UUCP:      ...{apple,decwrl}!cs.stanford.edu!seligman

rob@hp-ses.SDE.HP.COM (Robert Oyung) (01/13/90)

/ hp-ses:comp.sys.hp / seligman@CS.Stanford.EDU (Scott Seligman) / 10:00 pm  Jan 11, 1990 /

>  I'd like to use the dump (1M) program, which seems to
>  work only for raw device files.  The root file system,
>  however, has no raw device file (/dev/rdsk/0s0) associated 
>  with it. 
>  
>  Can I create /dev/rdsk/0s0 with the mknod command?

Yes.

     1) % ls -l /dev/dsk

           This should produce something that looks like:

	   total 0
	   brw-r-----   1 root     sys        0 0x070400 Dec 29 16:07 0s0
	   brw-r-----   1 root     sys        0 0x070300 Aug 30 15:12 1s0
	   brw-r-----   1 root     sys        0 0x070000 Oct 19 12:21 2s0

           Note for root device 0s0:
	         Major number = 0
	         Minor number = 0x070400 (remember this)

           Your numbers will vary.

    2) % ls -l /dev/rdsk

	  Which produces:

	  total 0
	  crw-r-----   1 root     sys        4 0x070300 Dec 29 16:09 1s0
	  crw-r-----   1 root     sys        4 0x070000 Oct 19 12:34 2s0

	  Note: Major number = 4 (remember this)

    3) % cd /dev/rdsk

    4) % /etc/mknod 4 0x070400

         REPLACE THE MAJOR AND MINOR NUMBERS SPECIFIC TO YOUR SYSTEM.

    Finally make sure permissions and ownerships are correct and you should
    be in business.

>  Can I convince /etc/dump to use the block file? 

Probably not but now you don't need to! :-)

>  
>  Is there any hope?
>  
Always.
>  
>  tnx,
>  Scott Seligman
>  
>  Internet:  seligman@cs.stanford.edu
>  UUCP:      ...{apple,decwrl}!cs.stanford.edu!seligman
>  ----------

yr wlcm,
-Rob

Robert Oyung
Integrated Office Systems
HP Corporate Offices