How to mount a CD in Darwin!

Discussion in 'macOS' started by Metatron, Jun 9, 2005.

  1. Metatron macrumors 6502


    Jul 2, 2002
    I did not really know were to put this thread. Darwin is the foundation for OS X so i thought this would do.

    I downloaded OpenDarwin 8 for x86 to just play with it. I have X11 on a cd, but I have no clue how to read the thing. I beleive I have to mount it, but I don't know how.

    So how do you mount a cd in Darwin so i can read files on it.

  2. jim. macrumors 6502

    Dec 22, 2004
    C-ville, VA
    Hmm. If it is similar to most unix variants... You would need to first become the root user if you are not already.

    Now you need to create a directory with which to mount the media. I would suggest:

    mkdir /mnt/cdrom

    or something like that.

    Next we need to figure out what the hardware device address is. On Tiger my cd drive is /dev/disk1s2. Hopefully yours is the same, otherwise you'll need to do some footwork to figure it out.

    The command you need would then be:

    mount -t iso9660 /dev/disk1s2 /mnt/cdrom

    Your media should now be displayed in /mnt/cdrom if all went according to plan.

    Sorry if I did this in too basic of a way. I am not sure of your experience with unix variants. I surely hope you are not starting out with Darwin without some knowledge though, as I fear it is going to be an arduous battle for you.

    Tell me if this works or not, so we can try to get it going.

  3. MattPat macrumors newbie

    Mar 26, 2005
    Rhode Island
    I'm trying to do the exact same thing (get X11 on Darwin_x86)... I got my CD to mount using:

    mkdir /cdrom
    mount_cd9660 /dev/disk1s1 /cdrom

    Hope it helps!

Share This Page