Results 1 to 9 of 9

Thread: [SOLVED] Access cdrom from terminal

  1. #1
    Join Date
    Dec 2007
    Location
    Shepperton, UK.
    Beans
    2,489
    Distro
    Ubuntu Development Release

    [SOLVED] Access cdrom from terminal

    This is probably easy... How do I access a cdrom using terminal ?

  2. #2
    Join Date
    Mar 2007
    Location
    Netherlands
    Beans
    18
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Access cdrom from terminal

    Cd to the media directory:
    cd /media/
    list the dirs:
    ls
    go to the cdrom dir:
    cd cdrom


    Of just go to the cdrom dir straight away:
    cd /media/cdrom



  3. #3
    Join Date
    Dec 2007
    Beans
    101
    Distro
    Ubuntu

    Re: Access cdrom from terminal

    if the CD is already mounted, just change to the cd directory:
    Code:
    cd /media/cdrom#
    where # is a number starting at 0 depending on which CD-drive you are using
    (ex: the first drive is 0, the 2nd is 1 etc)

    if the cd isn't mounted do this:
    Code:
    mount /media/cdrom#
    and then change to the cd-rom directory using the command above

    *another way to access the first cdrom (or the only one) you can use this directory instead:
    /media/cdrom
    its the same as
    /media/cdrom0

  4. #4
    Join Date
    Dec 2007
    Location
    Shepperton, UK.
    Beans
    2,489
    Distro
    Ubuntu Development Release

    Re: Access cdrom from terminal

    Now thats what I thought...
    I've got a Duke Nukem cdrom. I put the CD in the drive and Sound Juicer comes up (which is set to default for music CDs). I select ignore and close Sound Juicer. I can't use Nautilus as it sees the CD as a music CD. If I use terminal I go to the Media folder and cdrom is displayed in light blue and cdrom0 is dark blue. If I select either directory and then list the files with 'ls' nothing is displayed...

  5. #5
    Join Date
    Dec 2007
    Beans
    101
    Distro
    Ubuntu

    Re: Access cdrom from terminal

    /media/cdrom and /media/cdrom0 are the same things
    try to mount the cdrom before seeing its contents
    Code:
    mount /media/cdrom
    mounting the cd makes the contents accessible to the system by making it a part of the filesystem (i.e. a directory under / ) so all programs see what's there as if it was just another directory

  6. #6
    Join Date
    Dec 2007
    Location
    Shepperton, UK.
    Beans
    2,489
    Distro
    Ubuntu Development Release

    Re: Access cdrom from terminal

    Quote Originally Posted by mbarak View Post
    /media/cdrom and /media/cdrom0 are the same things
    try to mount the cdrom before seeing its contents
    Code:
    mount /media/cdrom
    mounting the cd makes the contents accessible to the system by making it a part of the filesystem (i.e. a directory under / ) so all programs see what's there as if it was just another directory
    Thanks. I was under the impression that as soon as you get the cdrom icon on the desktop you could view the contents of the CD. The disk label (Atomic15) is displayed. If thats correct then surely this is a bug ? It doesn't seem to work the same as a floppy disk (for example). Mounting the CD via terminal works, so thanks again.

  7. #7
    Join Date
    Feb 2013
    Beans
    1

    Re: [SOLVED] Access cdrom from terminal

    Similar question: how would you access a usb from the terminal?

  8. #8
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,820
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: [SOLVED] Access cdrom from terminal

    In exactly the same way: /media/some_identifier. This identifier is the label of the usb drive.

  9. #9
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: [SOLVED] Access cdrom from terminal

    If a post is older than a year or so and hasn't had a new reply in that time, instead of replying to it, create a new thread. In the software world, a lot can change in a very short time, and doing things this way makes it more likely that you will find the best information. You may link to the original discussion in the new thread if you think it may be helpful.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •