Results 1 to 8 of 8

Thread: KDE4 ntfs-3g mounting/unmounting without being root

  1. #1

    Default KDE4 ntfs-3g mounting/unmounting without being root

    Hi,
    I've just set up an opensuse 11 install on our workshop computer at work (we fix pc's). I've setup windows xp in a virtualmachine if we need it. The reasoning was I can copy files from customers infected HDD over to ours without worrying about it spreading to our OS (that happened to our XP install, hence the reason I decided to use Opensuse).
    Anyway the basic problem is this: We use USB docks and place the HDD's from customers PC's into these to backup their data before we reinstall their virus ridden/trashed Windows installations, then we put the data back across afterwards. We do this several times a day.
    Currently when I plug in a hard drive with NTFS (which is most peoples) device notifier pops up but dolphin can't mount it because it needs root access to mount ntfs.
    I then have to launch ntfs-3g and tick the 'writeable' box on the newly discovered drive. Dolphin can then read and write to it. But after I'm done I can't unmount it to remove it because dolphin doesn't have root access! So I have to either run kdesu dolphin or go to the commandline.
    Now I can do this fine myself...but the other guys here aren't linux nerds like myself and they want to be able to plug it in, click the drive and drag files back and forth like they can under XP.
    So is there a way with policy kit we can give dolphin/device notifier root access and also make them mount with write access to ntfs?

    For clarity this is what I would do with the commandline:

    (become root)
    mkdir /media/"ntfsvolume"
    ntfs-3g /dev/sXXX/ /media/"ntfsvolume" -o force
    (goto dolphin and copy files etc etc)
    umount /dev/sXXX


    Sooooo, if anyone knows how to make this a painless all gui operation it would be great!

  2. #2
    Join Date
    Mar 2008
    Location
    Vsters, Sweden ex. Highbury London UK
    Posts
    1,245

    Default Re: KDE4 ntfs-3g mounting/unmounting without being root

    Maybe they could use ntfs-config
    It should be in yast

    Geoff
    Core 2 Duo 3.16GHz, 8GB DDR2, 3.5TB, GeForce 9600 GT, Amilo LCD 26", OS 11.1 x86_64, KDE4.2.4 (2)
    My wine tips & tricks

  3. #3
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,564
    Blog Entries
    38

    Default Re: KDE4 ntfs-3g mounting/unmounting without being root

    It (hot plug automount of ntfs external drives) finally works in KDE-3.5.10 on 11.1. You could switch to KDE-3.5.10

  4. #4
    Join Date
    Mar 2008
    Location
    Vsters, Sweden ex. Highbury London UK
    Posts
    1,245

    Default Re: KDE4 ntfs-3g mounting/unmounting without being root

    Just tested and it works in kde4.13 on 11.1
    Drive is auto mounted and has read write access in /media in dolphin

    Geoff
    Core 2 Duo 3.16GHz, 8GB DDR2, 3.5TB, GeForce 9600 GT, Amilo LCD 26", OS 11.1 x86_64, KDE4.2.4 (2)
    My wine tips & tricks

  5. #5

    Default Re: KDE4 ntfs-3g mounting/unmounting without being root

    Geoffro, oldcpu - Thanks for your feedback - great news about automounting ntfs! The problem is I have only got 11.0 because 11.1 wouldn't install due to intel driver issues in the new kernel. I have however got the kde4 factory repo running and am up to date with that.
    Do you know which packages are in 11.1 that make this all happen. If you knew what packages and which version maybe i could get the backports repos that contain them and update my system and it might work??
    just spent a long time at work getting 11.0 setup with virtualbox running XP and not too keen on doing a fresh install of 11.1 from the DVD even though it would probably solve the intel driver issue - partly because I might get my butt kicked for "wasting time" =)

    Thanks again,
    Andrew

  6. #6
    Join Date
    Mar 2008
    Location
    Phuket, Thailand
    Posts
    26,564
    Blog Entries
    38

    Default Re: KDE4 ntfs-3g mounting/unmounting without being root

    Quote Originally Posted by solphonic View Post
    Do you know which packages are in 11.1 that make this all happen.
    No.

    Thats well beyond my level of expertise.

  7. #7
    Join Date
    Mar 2008
    Location
    Vsters, Sweden ex. Highbury London UK
    Posts
    1,245

    Default Re: KDE4 ntfs-3g mounting/unmounting without being root

    Sorry same here

    /Geoff
    Quote Originally Posted by oldcpu View Post
    No.

    Thats well beyond my level of expertise.
    Core 2 Duo 3.16GHz, 8GB DDR2, 3.5TB, GeForce 9600 GT, Amilo LCD 26", OS 11.1 x86_64, KDE4.2.4 (2)
    My wine tips & tricks

  8. #8
    Join Date
    Jun 2008
    Location
    Reading, UK
    Posts
    45

    Default Re: KDE4 ntfs-3g mounting/unmounting without being root

    I have openSUSE 11.1 with the bundled version of KDE 4.1 and the hot plugging of external USB NTFS drives works fine, just like you said. However, I can't seem to make "shortname=mixed" as the default NTFS mount settings, do you know how to do this?

    Cheers
    My openSUSE Wiki Profile: http://en.opensuse.org/User:Guymer
    My openSUSE Forum Profile: http://forums.opensuse.org/members/guymer.html
    My openSUSE 11.1 Guide: http://www.thomasguymer.co.uk/tutorials/opensuse-11-1-guide/

Posting Permissions

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