Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie Question - MAKEDEV

admin1979
Super Advisor

Newbie Question - MAKEDEV


Hello Experts,

I am here to ask a newbie question. But i need to know this as I could not find its reference anywhere.

In order to create a device file in TRU64 older versions , they say use ,

cd /dev
./MAKEDEV rz# {Where # is (Bus X 8)+ Target}

So that it can then be accessed via device file.

So far so good. But I have came across of a command in the history where the old admin guy used following command during a disk replacement.

cd /dev/
./MAKEDEV rz20 rz20

Now the question is why 2 times?? I have no idea. And moreover I have been told that , when he used single rz20 , he was not able to add the device files.

Could someone point it out?? Any guesses?


Thanx,
admin
2 REPLIES
Martin Moore
HPE Pro

Re: Newbie Question - MAKEDEV

You shouldn't need to specify the disk twice. I have no idea what happened with the old admin. When you run MAKEDEV, it will show you which device files it's creating, for example:

# ./MAKEDEV rz20
MAKEDEV: special file(s) for rz20:
rz20a rrz20a rz20b rrz20b rz20c rrz20c rz20d rrz20d rz20e rrz20e rz20f rrz20f rz20g rrz20g rz20h rrz20h

As you can see, I only specified rz20 once, but it created all the device files for rz20.

Martin
I work for HP
A quick resolution to technical issues for your HP Enterprise products is just a click away HP Support Center Knowledge-base
See Self Help Post for more details

Rob Leadbeater
Honored Contributor

Re: Newbie Question - MAKEDEV

Hi admin,

As Martin says there is no need to specify the device twice.

If you do, the second rz20 will simply try to create the device files again, which will fail silently because they already exist.

You would usually specify two (or more) devices as arguments to MAKEDEV if you wanted to create more than one...For example:

./MAKDEV rz0 rz1 rz2

would create the files for those three disk devices.

If the command returns without showing the list of devices that it created, then they (probably) already exist.

Cheers,

Rob