We help IT Professionals succeed at work.

mount CD0

RNH4
RNH4 asked
on
trying to load an AIX service pack onto the server but whenever I try to mount the CDrom with the command
# mount -o ro /dev/cd0 /cdrom
I continually get the error,
 "can not mount /dev/cd0 on /cdrom; There is a request to a device or an address that does not exist."

I have also tried mounting through SMIT but get the same results.

Am I missing a step?
Comment
Watch Question

Most Valuable Expert 2013
Top Expert 2013

Commented:
Hi again,

I assume you're talking about an LPAR?

If so, is the device attached properly? Did you rung "cfgmgr" after attaching?

Maybe there was an inactive cd0 device left, and cfgmgr configured the new device as cd1 or so?
Please check with "lsdev -C | grep cd" to check.
The appropriate device must show up as "Available", not "Defined".

And, another possibility - does the mountpoint /cdrom exist? If it doesn't simply issue "mkdir /cdrom" and retry!

By the way, you don't need to (and rather shouldn't) mount the CD device for installp.

installp as well as smitty (and bffcreate) work with the /dev/cdx device rather than with a mounted filesystem (both will mount it on their own, if needed).

If it's not an LPAR, on the other hand, we should suspect a hardware problem. Issue the "lsdev" command from above in this case too, to check the actual status of the device.

wmp


Author

Commented:
# lsdev -C |grep cd
returbed,....
cd0 Available 00-08-00 SATA Optical drive.

I'm using a POWER520 ( 8203 ) server. Only preloaded AIX so far, no specific LPAR as of yet.
Most Valuable Expert 2013
Top Expert 2013

Commented:
How about the mountpoint /cdrom ? Is it there?

Next try to remove and reconfigure the device:

rmdev -dl cd0
cfgmgr

Any error messages?

lsdev -C | grep cd

Still the same?

Try giving mount the correct fstype:

mount -v cdrfs -o ro /dev/cd0 /cdrom






Author

Commented:
no error messages until I try to mount.

"There is a request to a device or an adress that doesn't exist"

If I see the device ( cd0 ) and I see the directory ( /cdrom ) then what "doesn't exist"??
Most Valuable Expert 2013
Top Expert 2013

Commented:
Strange!

What does ls -l /dev/cd0 say?

Author

Commented:
br--r--r--   1   root    system     15,   0 Jun 11  11:14 /dev/cd0
Most Valuable Expert 2013
Top Expert 2013

Commented:
Looks good, and that's even more frustrating.

You wrote that there is an AIX service pack on the CD?

So please insert the CD into the drive (if it's not in there already) - let's see what smitty's fileset listing utility says!

Enter "smitty list_media_sw". At "INPUT device / directory for software" press<F4> and look for "/dev/cd0"

If it's there select this line using the arrow keys and hit <Enter> to go!

If you get the same error as always I really suspect a hardware error!

If you get a fileset listing we will have to investigate further why we can't mount this bugger manually!

wmp


Most Valuable Expert 2013
Top Expert 2013
Commented:
What I forgot ...

in order to check whether it could be a hardware problem please issue

errpt -N cd0 | more

and if you get some output plase issue

errpt -a -N cd0 | more

to see the full text.

You could also post one of those entries for me to check.

Author

Commented:
finally got it with your help, thanks