KDE does not mount USB external HDD
Hi guys,
I'm running Slackware 13.37 x64 and I'm having problem mounting my NTFS USB 3.0 external harddrive. I searched both this forum and web in general but found no solutions so far, so I'd like to ask you. When I connect my device, it's presented by KDE, but when I click the mount button, it just says "Could not mount the following device: my_disk_name". I can, however, mount it directly via command line with no problem by Code:
mount -t ntfs-3g /dev/sdb1 /mnt/tmp Code:
/dev/sdb1 /mnt/tmp ntfs-3g noauto,user,rw 1 0 Now, you're probably going to mention this trick of creating a symbolic link in /sbin Code:
ln -s /bin/ntfs-3g mount.ntfs I should probably tell you I'm running 3.4.6 kernel, but I used an oldconfig and made no changes to device drivers (didn't try to connect the device before kernel upgrade). But since I can mount the device manually I guess that's not the problem. Well, that's all I can tell you. Could you please tell me what the **** am I missing? Thanks a mil. |
Hi, welcome to Slackware on LinuxQuestions.
If you can mount from the command line it suggests that it is a detection problem rather than a mount problem. Sometimes if I have an external usb hdd device attached it may not be detected when the KDE loads but if I unplug and plug it back in then it connects no problem. samac |
Hi samac,
thank you for your reply, but my problem seems to be elsewhere. I don't have the disk attached when KDE starts, I usually attach it later. As I described above, it IS detected by KDE, it pops the "Available devices" dialog in right lower corner of the screen. But if I want to actually mount it via KDE (the "mount" button it the "Available devices" dialog), it refuses to do so. The only error I get is "Could not mount the following device: my_disk_name". I tried this with two different disks using all the USBs in my computer. I unplugged and plugged them several times, but the error remains. These disks work fine with both Windows and openSUSE, even at the same computer. Since I can mount it manually via command line, I think it must be some misconfiguration of my KDE. But I only changed it's theme, the rest is "out of the box". Any other ideas? Thanks again. |
Hi again,
I may have another hint, it seems to be a permission problem. After I attach my disk to the computer I can see it in Dolphin. When I try to enter it, the following message appears: Code:
An error occurred while accessing 'my_disk_name', the system responded: ntfs-3g-mount: mount failed: Operation not permitted |
Solved ... but is it good?
Well I solved it, at least temporarily, by editing permissions of ntfs-3g itself
Code:
chmod u+s /bin/ntfs-3g ...but I'm not sure that's a good solution. I don't know if I'm not messing with security by this. What do you think? Thanks. |
Quote:
You should not need to set the sticky bit on ntfs-3g. |
Quote:
thanks for the tip, but I've read the fstab manual and tried it before. I tried it again now (unset the sticky bit and edited 'user' to 'users' in fstab) but it's not working. So far, the only working solution is the sticky bit. And I also needed to change the mount point to another directory, because Doplhin said I had no write permission in /mnt/tmp. Which leads me to another question - my /bin/ntfs-3g now has the -rwsr-xr-x permissions. Those are exactly the same permissions as /bin/mount and /bin/umount (out of the box, I didn't change them). All of these are owned by root:root. And yet, I can use the "ntfs-3g" from my user account with no problem, but "mount" and "umount" say "Only root can do that". Where is that set? That might also solve my problem. Thank you. |
Quote:
Code:
Mon Jul 16 19:00:08 UTC 2012 Quote:
|
Quote:
Quote:
And thank you all for your posts, I appreciate it :). |
Because Filesystem in User SpacE (FUSE) works differently from internal filesystems. The details I've not studied. But using fusermount is the way it's supposed to work. And I'm not going to figure out why the way it's not supposed to work does not work unless really necessary.
BTW, in "/proc/mounts" you can see the mount options of currently mounted filesystems. Pay attention to the "uhelper" option. This one helps the proper unprivileged user to un-mount the filesystem using umount. man umount . |
Quote:
|
All times are GMT -5. The time now is 10:04 PM. |