Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Is there a Linux app that will...

  1. #1

    Default Is there a Linux app that will...

    Is there a Linux app that will...
    -- allow me to manually mount and unmount USB devices?

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,713
    Blog Entries
    1

    Default Re: Is there a Linux app that will...

    Quote Originally Posted by mattdocs12345 View Post
    Is there a Linux app that will...
    -- allow me to manually mount and unmount USB devices?
    It is assumed you mean USB storage devices. Can you please clarify further? KDE and Gnome can be configured not to automatically mount USB-attached media if desired.

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Is there a Linux app that will...

    On 2014-02-16 03:46, mattdocs12345 wrote:
    >
    > Is there a Linux app that will...
    > -- allow me to manually mount and unmount USB devices?


    Of course. That¡s what the command "mount" is for...

    If that's not what you mean, please clarify.

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  4. #4

    Default Re: Is there a Linux app that will...

    Okay let me be more specific. Every time my laptop boots, openSUSE automatically mounts my USB and SD storage devices. I want to be able to prevent openSUSE from mounting my USB drive on which I have my clonezilla live CD installed so that I accidentally don't change it's contents.

  5. #5
    Join Date
    Jun 2008
    Location
    West Yorkshire, UK
    Posts
    3,454

    Default Re: Is there a Linux app that will...

    As long as it is connected permanently, you can add it to /etc/fstab with the noauto option.

  6. #6

    Default Re: Is there a Linux app that will...

    Quote Originally Posted by mattdocs12345 View Post
    Okay let me be more specific. Every time my laptop boots, openSUSE automatically mounts my USB and SD storage devices. I want to be able to prevent openSUSE from mounting my USB drive on which I have my clonezilla live CD installed so that I accidentally don't change it's contents.
    But openSUSE doesn't mount _any_ USB and SD devices automatically by default.

    Do you mean you want to prevent mounting by clicking on the device in the file manager?

    And please, tell which Desktop Environment you are using.

    Quote Originally Posted by john_hudson View Post
    As long as it is connected permanently, you can add it to /etc/fstab with the noauto option.
    You can do that even when it is _not_ connected permanently (maybe you have to add nofail in that case as well, not sure atm).
    But apparently this is not what the OP wants IIUC.

    I guess an option would be to add an entry to fstab that mounts that USB drive read-only though.
    Even with "noauto", udisks2 (as used by KDE and GNOME) will respect that when you open the drive.

    Or change the polkit rules to require the root password to mount or deny it altogether.
    Of that's what you want, then add the following line to /etc/polkit-default-privs.local:
    Code:
    org.freedesktop.udisks2.filesystem-mount                auth_admin
    Or use "no" instead of "auth_admin" to completely disallow mounting.
    Then run "sudo /sbin/set_polkit_default_privs" to make that change effective.

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Is there a Linux app that will...

    On 2014-02-16 23:56, wolfi323 wrote:

    > But openSUSE doesn't mount _any_ USB and SD devices automatically by
    > default.


    It does. It depends on what desktop you use, but it happened to me a
    lot, previously. It also depends on what release you have.

    On XFCE, for instance, go to settings, removable drives and media, and
    make sure that on the storage tab nothing is ticked. Also check the
    other tabs.

    On some releases, things could be mounted before you even started a
    session, and were owned by root.

    A trick I used (with Gnome 2) was create entries for some devices in
    fstab, with noauto and nofail. In this case, gnome would not mount them
    automatically on hotplug or boot.

    --
    Cheers / Saludos,

    Carlos E. R.

    (from 13.1 x86_64 "Bottle" (Minas Tirith))

  8. #8
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,713
    Blog Entries
    1

    Default Re: Is there a Linux app that will...

    Quote Originally Posted by mattdocs12345 View Post
    Okay let me be more specific. Every time my laptop boots, openSUSE automatically mounts my USB and SD storage devices. I want to be able to prevent openSUSE from mounting my USB drive on which I have my clonezilla live CD installed so that I accidentally don't change it's contents.
    Tell with desktop environment you are using. Automatic mounting can generally be disabled. For example, with KDE this behaviour can be configured via the device notifier settings.

  9. #9
    Join Date
    Jun 2008
    Location
    NZ
    Posts
    1,567

    Default Re: Is there a Linux app that will...

    Quote Originally Posted by robin_listas View Post
    On XFCE, for instance, go to settings, removable drives and media, and
    make sure that on the storage tab nothing is ticked. Also check the
    other tabs.
    likewise in KDE go to

    configure desktop > removable devices

    and uncheck "enable automatic mounting of removable media"

  10. #10

    Default Re: Is there a Linux app that will...

    May I ask if this is a single boot system and did you edit your BIOS?
    Because disk booting is also handled by the BIOS (or UEFI on newer systems)

Page 1 of 2 12 LastLast

Posting Permissions

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