Re: ":/cdrom": An I/O error occurred while performing this task. (860 Views)
Reply
Advisor
Tushar_hiwase
Posts: 29
Registered: ‎08-20-2012
Message 1 of 7 (861 Views)
Accepted Solution

":/cdrom": An I/O error occurred while performing this task.

Hi,

 

I have mounted one cd (approx. 200mb) to install some softwares.

 

/dev/dsk/c1t0d0    7846572 7846572       0  100% /cdrom
# cd /cdrom
# ls -l |wc -l
1207
#
# fstyp /dev/dsk/c1t0d0
cdfs
#


 

But when i am trying to install packages from that mounted /directory  (/cdrom), getting below error.

 

#swinstall -s /cdrom

 

 

 "mymachine:/cdrom":  An I/O error occurred while performing this task.

 

 

Any idea, why it is giving me I/O error ?

Am i doing something wrong ?

 

Thanks in advance.

 

tushar

HP Pro
pradeep m
Posts: 154
Registered: ‎12-08-2010
Message 2 of 7 (860 Views)

Re: ":/cdrom": An I/O error occurred while performing this task.

 

Run the below command to check the software available on the CD.

# swlist -l product -s /cdrom

 

If the above command fails, then there might be issue in reading the software installation files and you would need to try a different software media. 

Regards,
Pradeep

I am an HP Employee
Advisor
Tushar_hiwase
Posts: 29
Registered: ‎08-20-2012
Message 3 of 7 (855 Views)

Re: ":/cdrom": An I/O error occurred while performing this task.

Hi Pradeep,

 

thanks for quick reply.

 

As per you have mentioned above, I have executed the command.

 

/dev/dsk/c1t0d0    7846572 7846572       0  100% /cdrom
# swlist -l product -s /cdrom
# Initializing...
# Contacting target "mymachine"...
ERROR:   The depot "mymachine:/cdrom" exists but is currently empty.
#


I also have iso of these softwares.  After mounting the iso, still facing the issue.

 

# lvcreate -L 1024 -n iso /dev/vg00
Logical volume "/dev/vg00/iso" has been successfully created with
character device "/dev/vg00/riso".
Logical volume "/dev/vg00/iso" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
#


# dd if=/opt/hp-ivm/image.iso of=/dev/vg00/riso bs=1024k
I/O error
167+1 records in
167+1 records out
#


# mount /dev/vg00/iso /mnt
# swlist -l product -s /mnt
# Initializing...
# Contacting target "mymachine"...
ERROR:   The depot "mymachine:/mnt" exists but is currently empty.
#

 

Could you please help me.

 

Regards,

tushar

 

HP Pro
pradeep m
Posts: 154
Registered: ‎12-08-2010
Message 4 of 7 (853 Views)

Re: ":/cdrom": An I/O error occurred while performing this task.

>> # dd if=/opt/hp-ivm/image.iso of=/dev/vg00/riso bs=1024k
>> I/O error

 

Above dd command failed with io error. I think the iso image file might be corrupted too.. so I would recommend to check with different software media.. 

Once you have the replaced media, run the "swlist -l product -s /cdrom" if this command succeed then swinstall would work.. 

 

Regards,
Pradeep

I am an HP Employee
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 5 of 7 (825 Views)

Re: ":/cdrom": An I/O error occurred while performing this task.

It may be a media error. The cd may be scratched or something. See if you can have someone take a look at the thing.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Acclaimed Contributor
Dennis Handly
Posts: 25,094
Registered: ‎03-06-2006
Message 6 of 7 (820 Views)

Re: ":/cdrom": An I/O error occurred while performing this task.

[ Edited ]

>ERROR:   The depot "mymachine:/cdrom" exists but is currently empty.

 

What does "ll /cdrom" show?  (don't list all 1,200 files)

 

>After mounting the iso, still facing the issue.

 

If you are on 11.31, there are easier ways to mount ISO images.

 

>I/O error

 

Hmm, was the error on the input or output file?

dd if=/opt/hp-ivm/image.iso of=/dev/null bs=1024k

 

>ERROR:   The depot "mymachine:/mnt" exists but is currently empty.

 

What does "ll /mnt" show?  (The same 1,200 files?)  You may have to go deeper.

Honored Contributor
Bill Hassell
Posts: 14,205
Registered: ‎05-29-2000
Message 7 of 7 (808 Views)

Re: ":/cdrom": An I/O error occurred while performing this task.

I/O error means media error. You have a smudged CD or your CDROM drive is dusty or simply defective. For a 'normal' CD, there is no software error that will create an I/O error. HOWEVER, if you created the CD on a PC, be very aware that a lot of PC-based software tries to make a CD into floppy that you can append (write) more records at a later time. This packet writing technique is completely incompatible with HP-UX (and even other PCs if you don't properly close the open CD).

 

So start by putting a standard HP-UX CD in your drive and see if you can mount it. If it also gets an I/O error, replace the CDROM drive. (you could try using a 'cleaner-CD' with little brushes). If it does work, then the recoding software used to burn the CD is incompatible. Get a copy of ImgBurn. Roxio, Nero, even Windows is too far removed from reality to be useful except to save some photos and movies for other PCs.

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.