Technical article 127576

mount: cannot open /dev/cd0, will mount first session: Not a directory (error 20)

OpenServer 5.0.7

Written · Last revised

Problem

I am trying to mount a CDROM, DVD or ISO image on my OpenServer 5.0.7 system using a command similar to:

# mount /dev/cd0 /mnt
and I am getting the error:
mount: cannot open /dev/cd0, will mount first session: Not a
directory (error 20)

The mount still works but I would like to know if these is a way that I can prevent this message from appearing.

Solution

This error message can be seen sometimes when attempting to
mount ISO, CDROM or DVD images that have been created
as multisession images.

You can avoid this error message by using the following syntax:

# mount -o session=1 /dev/cd0 /mnt

From the Xinuos technical article database, record 127576. Reproduced with permission. The original is at www.sco.com/ta/127576, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.