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

Thread: Why can't I mount /dev/sda1 and access its files anymore in Dolphin?

  1. Default Why can't I mount /dev/sda1 and access its files anymore in Dolphin?

    Hi,

    I don't know why but I can't seem to mount /dev/sda1 (my Sabayon Linux partition) anymore in Dolphin and view its files. Yes my user account has admin privileges and I can mount my external drive fine and access its files. I can also mount /dev/sda1 from the command-line with
    Code:
    sudo mount /dev/sda1 /mnt
    but I can't seem to mount it and access its files in Dolphin anymore. The exact error I keep getting whenever I try to mount /dev/sda1 in Dolphin is:
    An error occurred while accessing '/home/makerpm', the system responded: You are not authorized to perform this operation: Not authorized to perform operation
    The kdesu dialog to ask for my admin password pops up for like a blink of an eye before it disappears, after attempting to mount /dev/sda1 in Dolphin. My username is fusion809 (and yes I am sure I am logged in as this account as running echo $USER from a new Konsole tab returns fusion809), /home/makerpm is the home folder of the makerpm user I use for building Atom packages locally by following the Fedora Wiki guide on building RPMs. This error seems to have started when I ran (as root):
    Code:
    mount /dev/sda1 /mnt
    chroot /mnt /bin/bash
    and ran
    Code:
    equo update && equo upgrade
    in the chroot to keep my Sabayon installation on /dev/sda1 up-to-date. After this I unmounted /dev/sda1 from the command-line to make it accessible to Dolphin and since then I have been experiencing this issue.

    Thanks for your time,
    Brenton
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Seven favourite distros
    : Arch, Fedora, Gentoo, openSUSE Tumbleweed and Void.

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,503
    Blog Entries
    3

    Default Re: Why can't I mount /dev/sda1 and access its files anymore in Dolphin?

    There's too much here that is left for guessing.

    Quote Originally Posted by fusion809 View Post
    Yes my user account has admin privileges and I can mount my external drive fine and access its files.
    For example, I don't know what it means to say that your account has admin privileges.

    Yes, some distros use membership of the "wheel" group for that. But opensuse doesn't. Have you changed "polkit" settings so that some group membership gives special rights?

    Also, is there an entry in "/etc/fstab" for this file system? If there is, what does it say?
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  3. Default Re: Why can't I mount /dev/sda1 and access its files anymore in Dolphin?

    I meant that the User Manager (from System Settings) says I'm an administrator, that and I have sudo privileges. Here is a screenshot to show what I mean by User Manager.
    Here is my /etc/fstab file:
    Code:
    UUID=b580137e-7ecc-4af6-9a38-e64a64760147 swap swap defaults 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 / btrfs defaults 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /boot/grub2/i386-pc btrfs subvol=boot/grub2/i386-pc 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /boot/grub2/x86_64-efi btrfs subvol=boot/grub2/x86_64-efi 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /opt btrfs subvol=opt 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /srv btrfs subvol=srv 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /tmp btrfs subvol=tmp 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /usr/local btrfs subvol=usr/local 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /var/crash btrfs subvol=var/crash 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /var/lib/libvirt/images btrfs subvol=var/lib/libvirt/images 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /var/lib/mailman btrfs subvol=var/lib/mailman 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /var/lib/mariadb btrfs subvol=var/lib/mariadb 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /var/lib/mysql btrfs subvol=var/lib/mysql 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /var/lib/named btrfs subvol=var/lib/named 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /var/lib/pgsql btrfs subvol=var/lib/pgsql 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /var/log btrfs subvol=var/log 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /var/opt btrfs subvol=var/opt 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /var/spool btrfs subvol=var/spool 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /var/tmp btrfs subvol=var/tmp 0 0
    UUID=0f4760e7-fd18-4a70-a398-0989a55c46c1 /.snapshots btrfs subvol=.snapshots 0 0
    UUID=752942f3-8eb3-49e0-98c6-19530af17c7c /home                xfs        defaults              1 2
    the way I usually determine UUIDs for my various partitions is to mount them in dolphin and then look at their /run/media/fusion809/ file path (e.g., one of my external drive partitions is at /run/media/fusion809/5fc20d24-4af4-4e5b-882b-f76dc533aca6/ so that gives me a UUID of 5fc20d24-4af4-4e5b-882b-f76dc533aca6), and I can't do that for my internal partition (as if I could I wouldn't be asking this question to begin with). If you have another way of determining my /dev/sda1 partition's UUID please tell me if you need it in order to help me with this issue.
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Seven favourite distros
    : Arch, Fedora, Gentoo, openSUSE Tumbleweed and Void.

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,003

    Default Re: Why can't I mount /dev/sda1 and access its files anymore in Dolphin?

    Partition UUIDs can be found in /dev/disk/by-uuid.
    Henk van Velden

  5. Default Re: Why can't I mount /dev/sda1 and access its files anymore in Dolphin?

    Yeah it has a list of UUIDs, but how do I determine which belongs to which partition?
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Seven favourite distros
    : Arch, Fedora, Gentoo, openSUSE Tumbleweed and Void.

  6. Default Re: Why can't I mount /dev/sda1 and access its files anymore in Dolphin?

    Nvm I determined it using gparted. It gave a UUID for my /dev/sda1 drive of 81c7ac71-d58f-48f4-9cc0-c5ca1ae5e60d.
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Seven favourite distros
    : Arch, Fedora, Gentoo, openSUSE Tumbleweed and Void.

  7. #7
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,503
    Blog Entries
    3

    Default Re: Why can't I mount /dev/sda1 and access its files anymore in Dolphin?

    Quote Originally Posted by fusion809 View Post
    Yeah it has a list of UUIDs, but how do I determine which belongs to which partition?
    Code:
    ls -l /dev/disk/by-uuid | grep sda1
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  8. Default Re: Why can't I mount /dev/sda1 and access its files anymore in Dolphin?

    Thanks returned the same result UUID=81c7ac71-d58f-48f4-9cc0-c5ca1ae5e60d for sda1
    Brenton Horne: Linux enthusiast and writer of ​The Hornery.
    Seven favourite distros
    : Arch, Fedora, Gentoo, openSUSE Tumbleweed and Void.

  9. #9
    Join Date
    May 2015
    Location
    Michigan/Florida
    Posts
    50

    Default Re: Why can't I mount /dev/sda1 and access its files anymore in Dolphin?

    sudo blkid in a terminal will give you the id of all drives and partitions

  10. #10
    Join Date
    Sep 2008
    Posts
    2,997

    Default Re: Why can't I mount /dev/sda1 and access its files anymore in Dolphin?

    user manager might say administrator but there are no admin accounts on openSUSE there is only one root
    why not use polkit to do what you want
    create a file
    Code:
    kdesu kate /etc/polkit-1/rules.d/10-udisks2.rules
    paste this content and save the file
    Code:
    // See the polkit(8) man page for more information
    // about configuring polkit.
    
    // Allow udisks2 to mount devices without authentication
    // for users in the "storage" group.
    polkit.addRule(function(action, subject) {
        if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
             action.id == "org.freedesktop.udisks2.filesystem-mount") &&
        subject.isInGroup("users")) {
            return polkit.Result.YES;
        }
    });
    I suggest you don't use the general users group but create a new group called storage and adding yourself to it, now you'll be able to mount all partitions without the need for root password, and you won't have to mess with disk ID's or mount points

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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