Cannot mount any CD/DVDs, only as root

Forum Forums New users New Users and General Questions Cannot mount any CD/DVDs, only as root

  • This topic has 3 replies, 2 voices, and was last updated Sep 7-4:24 am by sybok.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #66174
    Anonymous

      Hello. Noob here, very first post/thread; though I already read all the docs (or most of them) and searched the forums.

      I come from Slitaz Linux using as live system, but since this one went already obsolete in kernel and packages, and devs are struggling with its revival, I had to search for other options, and finally read about Antix.
      Since I was looking for a live system as “minimal” as possible, able to work entirely on RAM, yet with a graphical desktop out of the box, I went for Antix base ISO, and burnt it into a DVD (I really wanted to try it the “old/purist” way first before trying on USB, but I didn’t have blank CDs, only DVDs).

      My rig is UEFI, so I have to hit the ‘e’ key and add these additional parameters:
      toram hwclock=local desktop=icewm
      The hwclock option is because I’m booting the live system on a laptop with Windows 10 installed on hard disk.

      So everything seems very nice in general, even though I have to customize quite some things first to adjust to my preferences; except for some few things, which I’ll better describe in different threads and this being the first.

      I use SpaceFM for default. Perhaps I’m just ignorant, but I noticed no CD/DVD of any kind can be mounted as regular user, only as root. Any optical disk I try inserting and wait for it to be mounted, it always fails with an error graphic pop-up saying “File not found: /live/boot-dev”, because the system always tries to mount /dev/sr0 (or any number) to /live/boot-dev. And whole /live directory is owned only by root.
      No other method works as regular user: neither through Control Center (same result) nor manually mount to another directory (“only root can do mount”).
      At very least, after failing to mount any CD/DVD, it lets me eject it from SpaceFM -> Devices with no problems for some reason.

      Other distributions such as openSUSE and Slitaz itself don’t have this issue; they just read sr0 and automatically mount it without root or any kind of change.

      Is this actually “expected” in any Debian-based distribution? Or am I actually having a bad issue?
      Could this behavior be “rightfully” changed, without going insecure or the like?
      If I’m having a bad issue, could someone help please?

      Thanks very much beforehand.

      #66263
      Member
      sybok
        Helpful
        Up
        0
        ::

        Hi, I am not an expert but have few simple questions/suggestions (to provide additional information for the (more) experienced users).
        I am not an expert but have few simple questions/suggestions:
        1) Is your user in the appropriate group(s)?
        See file ‘/etc/group’.
        Mine contains line such as the 2 below ones:
        cdrom:x:24:<username>
        plugdev:x:46:<username>
        2) Please post output of
        inxi -Fxz
        3) Please post relevant part of your ‘/etc/fstab’.
        4) Could you please, just for sure, post output of (list /media/ folders with more data):
        ls -ld /media/*/
        Mine starts with ‘drwxr-xr-x 2 root root 4096’ for all except for ‘drwxr-x—+ 2 root root 4096 … /media/<username>/’.

        I experience part of what you describe with my home-PC; cannot mount a device (if not root) unless it was automatically mounted but un-mount via SpaceFM works well.

        Potentially helpful link: https://linuxconfig.org/how-to-mount-cdrom-in-linux

        PS: I believe I have experienced similar issue CD-mount issue in Debian way back (perhaps some 10 years ago).

        • This reply was modified 1 year, 8 months ago by sybok. Reason: PS added
        #66586
        Anonymous
          Helpful
          Up
          0
          ::

          Sorry, forgot to mention that I have to use an external CD/DVD USB drive (/dev/sr1) because internal one is broken.

          fstab:

          # Added by make-fstab /dev/sr0
          /dev/sr0     /media/sr0     auto     noauto,users,exec,ro     0 0
          # Added by make-fstab /dev/sr1
          /dev/sr1     /live/boot-dev     auto     noauto,users,exec,ro     0 0

          Yes, user is in appropriate groups.

          Rest of discussion was taken here by @Xecure, and since there’s already a possible answer there, I think contents within /media directory may not be related…

          Thanks.

          #66602
          Member
          sybok
            Helpful
            Up
            0
            ::

            Hi,

            the excerpt from ‘/etc/fstab’ makes it much more clear.
            I would probably create a new folder and set it as a new mount-point for ‘/dev/sr1’ instead of the current one, e.g.
            1) Folder
            sudo mkdir -p /media/ext_multi_drive
            May require to set appropriate rights to the folder (via chown/chgrp/chmod) to be the same as the other folders.
            2) Manually edit the ‘/etc/fstab/’ so that the last line shown in your post would read
            /dev/sr1 /media/ext_multi_drive auto noauto,users,exec,ro 0 0
            3) Then reboot and try it.
            (Reboot may not be required if some other appropriate action is taken so that the system is made aware of the new ‘/etc/fstab’)

            PS:
            It would also be possible to edit sudoers file to allow you to run specific mount operations, for other devices/partitions, without requiring elevated permission(s).
            I did that for a shared notebook for others to mount ‘/data/’ partition in a read-only mode.
            Hence I have a growing list of TODO after a (fresh/new) system (re)install.

            EDIT: I read the other thread/post mentioned; since you seem to boot from live CD, this gets things complicated and my advice does most likely not apply. 🙁

            • This reply was modified 1 year, 7 months ago by sybok.
            • This reply was modified 1 year, 7 months ago by sybok.
          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.