RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    how to make cdrom drive auto remount or make it work without having to mount it

    Scheduled Pinned Locked Moved Help and Support
    dosboxmount cdrommount disc
    9 Posts 2 Posters 3.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • edmaul69E
      edmaul69
      last edited by

      so i am on a raspberry pi 3 with retropie 4.1.12. so in the basilisk the mac emulator i can insert and eject disks witout any issues. the only way i could get the commandline or dosbox to recognize a disk was to mount the drive. however, as soon as you eject the disk the drive unmounts and you have to remount it again. even if i ssh into the pi and mount it, dosbox wont recognize the disk. so i cant install multi disk games this way. so i am curious if there was a way to make it auto remount maybe putting something in /etc/fstab or something? or a better method? the commands i did:

      mkdir /media/cdrom 
      

      then:

      mount -t iso9660 /dev/sr0 /media/cdrom
      
      B 1 Reply Last reply Reply Quote 0
      • B
        backstander @edmaul69
        last edited by backstander

        @edmaul69
        This has spark my interest! Most users just have the ISOs of all the discs needed and use IMGMOUNT to mount all the ISOs at launch and just use Ctrl+F4 to toggle through the virtual discs. Like this:

        imgmount d image1.cue image2.cue image3.cue -t cdrom
        

        Are you talking about an actually physical disc drive that you are swapping out the actual CD-ROMs in? Then you do something like this:

        mount d /mnt/cdrom -t cdrom -usecd 0
        

        "-usecd # use sdl lowlevel cdrom routines to support more lowlevel stuff."
        http://www.vogons.org/viewtopic.php?t=3563

        More information here:
        http://www.sierrahelp.com/Utilities/Emulators/DOSBox/DOSBoxGuide-Mount.html

        Not sure if that works but that's what I found on The Internets.

        edmaul69E 1 Reply Last reply Reply Quote 0
        • edmaul69E
          edmaul69 @backstander
          last edited by edmaul69

          @backstander well you helped me with something possibly. Using a bin and cue. I have it running from the disk. My issue is that i got it to mount on boot by modifying fstab. But i cannot get it to automount the drive after you eject and put a new disk in. I have also tried to chown -R pi:pi /media/cdrom0 plus /dev/sr0 and /dev/cdrom so i can eject without permissions but on reboot the files revert back to root. I wonder if their is a way to put in autostart to chown /media/cdrom0 or 0777 permissions?

          B 1 Reply Last reply Reply Quote 0
          • B
            backstander @edmaul69
            last edited by backstander

            @edmaul69

            I wonder if their is a way to put in autostart to chown /media/cdrom0 or 0777 permissions?

            You probably want to use 0555 since you can't actually write to the CD but yeah I have done this a long long time ago when I used Red Hat linux but I can't remember exactly what I did.

            I think in your fstab you need to add something like user

            update
            maybe post your fstab file.

            edmaul69E 3 Replies Last reply Reply Quote 0
            • edmaul69E
              edmaul69 @backstander
              last edited by edmaul69

              @backstander so playing a cd works fine in dosbox. To solve my mounting issue i just made a .sh file that i put with my dos .sh files with this in it:

              sudo mount -t iso9660 /dev/sr0 /media/cdrom 
              

              Then i make the directory in /media/ called cdrom. So now i can mount it while i am in emulationstation. So i am satisfied. This is actually a better way. Because unless you set permissions or change ownership to /media/cdrom/ after every boot then you cant eject and reload new discs in basilisk. You dont need to mount the disc for it to work in the mac os. But you do for both linux and dosbox. Also @backstander if you didnt before get windows for workgroups 3.11 instead of just windows 3.1. Also do custom install so you get all your apps and control panel and stuff. Not sure why control panel isnt on by default. Kind of useless without it.

              1 Reply Last reply Reply Quote 1
              • edmaul69E
                edmaul69 @backstander
                last edited by edmaul69

                @backstander also, i forgot to say thanks for the good info and help. So thank you.

                1 Reply Last reply Reply Quote 1
                • edmaul69E
                  edmaul69 @backstander
                  last edited by edmaul69

                  @backstander so here is the .sh i made for the 7th guest. first i tell linux to mount the cd. then you have to tell dosbox to mount the d:\ drive before the c:\ drive. and because this game looks for the soundblaster drivers you need to mount your c:\ drive and then "cd" change the directory to where your executable is and then the executable.

                  sudo mount -t iso9660 /dev/sr0 /media/cdrom
                  #!/bin/bash 
                  /opt/retropie/emulators/dosbox/bin/dosbox -c "mount d /media/cdrom -t cdrom" -c "mount c /home/pi/RetroPie/roms/pc/cdrive" -c "C:" -c "cd/ID/T7G" -c "T7G.BAT" 
                  
                  B 1 Reply Last reply Reply Quote 1
                  • B
                    backstander @edmaul69
                    last edited by

                    @edmaul69
                    Nice! Great choice of game! I also own the original version of The 7th Guest on a CD-ROM! I have actually never beat that game because I couldn't get the very last puzzle. I've heard that the iPad version has a much easier last puzzle and a few other bug fixes and tweaks.

                    edmaul69E 1 Reply Last reply Reply Quote 0
                    • edmaul69E
                      edmaul69 @backstander
                      last edited by

                      @backstander yeah it has 3 less puzzles. I beat it on dos several times but i didnt play through as many times as i did the 11th hour. Excellent sequel imo.

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post

                      Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                      Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.