Announcement

Collapse
No announcement yet.

mount HDD without fstab entry and password

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    mount HDD without fstab entry and password

    Is there any way to mount Sata disk the same way as USB, i.e. without adding entry to fstab?

    I have IDE HDD disk that I want to use as data disk and not to mount each time but only occasionally. I don't even want to connect it each time but only when it is necessary. The second important thing is that this will be used by user2 with no administrative rights.

    I checked options for it to mount automatically in KDE settings but is still ask for admin password.

    A partial solution would be if it could ask for user2 password.

    Is there any program that can deal with it?

    I think about such solution because when add entry to fstab and don't connect the disk system always reminds me at startup that there it can't mount this disk.
    Even when I had rights set to
    drwxrwxr-x user2:user2
    it didn't help. user2 belongs to plugdev group.

    Basically I'd like to mount it the same USB are mounted. Would format it to NTFS change anything?

    #2
    (BTW, disks aren't mounted, file systems on partitions are.)
    That sounds like you want an "automount".You can do them
    • in dolphin
    • in system settings, confusingly called "removable drives"
    • the udisksctl command


    Regards, John Little
    Regards, John Little

    Comment


      #3
      I have options in system settings checked.

      It mounts automatically for user1 (admin) but not for user2.

      Comment


        #4
        if the disk is plugged in after boot (like in an enclosure with usb), it will act/show as a removable disk

        if conected before boot but not mounted in/through fstab it should still show in dolphins "places panel" (left side) and get mounted with a click

        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #5
          There is error info about udisks and polkit.subject-pid: 2603
          polkit.caller-pid: 1843

          I thought it was first connected to this problem
          http://forums.fedoraforum.org/showthread.php?t=280116

          but the change described there didn't help.

          Disk has one partition with ntfs.

          What is strange - for user1 (admin) it mounts it to /media/user1/diskname
          (I gave the disk a name.)

          And for user2 it also tries to mount it to /media/user1/diskname

          That's why problem with authentication arises, I guess.

          Inserting disk in sata slot after loging to user2 desktop causes that it even doesn't appear in Dolphin.

          Comment


            #6
            What is strange - for user1 (admin) it mounts it to /media/user1/diskname
            Did you unmount it as user1? (F.ex, Right click in the places panel in dolphin.)
            Regards, John Little

            Comment


              #7
              I logged in as user1 (admin). sdb1 was automatically mouted to /media/user1/diskname
              I did:
              Code:
              sudo umount /dev/sdb1
              and
              Code:
              sudo /usr/bin/udisks --mount /dev/sdb1 /media/user2
              but it mounted it in
              /media/diskname
              and even as user1 I can't access it.

              When I click in Dolphin mount command output is:
              /dev/sdb1 on /media/user1/diskname type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,b lksize=4096)

              What are this "default_permissions" and how to add permissions for user2?

              Perhaps something is messed up with this mounting system policy. Looks like a bug.

              I also tried this
              https://bbs.archlinux.org/viewtopic.php?id=115610
              but still no success.

              It mounts this partiton
              Code:
              drwx------ 1 user1 user1 4096 Nov  7 10:33 diskname
              and
              sudo chown user2 user2 diskname
              can't change it.

              Code:
              /media$ ls -l
              
              drwxr-x---+ 2 root root    4096 Nov  7 14:03 user2
              drwxrwxr-x+ 3 [B]lp [/B]  user2 4096 Nov  7 14:54 user1
              What lp is here?

              lp stands for line printer devices - hmm,strange

              Even changing permissions in /media doesn't change anything
              Code:
              drwxrwxr-x+ 2 user2 user2 4096 lis  7 18:59 user2
              drwxrwxr-x+ 2 user2 user2 4096 lis  7 19:24 user1
              Should I report a bug?
              Last edited by gnomek; Nov 07, 2014, 12:29 PM.

              Comment

              Working...
              X