This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to make external USB harddrive mount correctly?

Tags: None
(comma "," separated)
User avatar
MountainX
Registered Member
Posts
56
Karma
0
OS
I'm running Kubuntu 12.04 with KDE 4.11.1. I have a 2TB hard drive mounted in an external USB enclosure. The drive label is Backup. The drive is not automatically mounted when I boot. There are two ways I can mount it:

1. I have a root cron script that will mount the drive if it is not already mounted.
2. I can click it in Dolphin's Places panel and the drive will be mounted.

Previously drive would mount at /media/Backup in both cases. (I manually created the directory /media/Backup previously and it still exists. The directory is required so that my backup script can mount this disk before the backup runs. As I said, this was working as intended before some system updates.) I want the drive to mount at /media/Backup in both the situations above.

However, with the new system updates (either KDE 4.11.1 or Ubuntu changes) the drive mounts at /media/myusername/Backup from Dolphin. But my root cron would have to mount it at /media/root/Backup -- I think. However, the root script simply fails and therefore my nightly backups have been failing for a couple weeks now.

How do I change/fix this and restore my prior behavior? Thanks.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This was due to a change to UDisks2 I believe. From what I have seen, I do not believe UDisks2 permits you to change this behaviour unfortunately.
One thing you could try is adding a line to /etc/fstab, with the mount being performable by the user, and ideally being optional.

This should force UDisks2 to use the intended directory hopefully.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
MountainX
Registered Member
Posts
56
Karma
0
OS
I came up with a solution and I posted it here:
http://askubuntu.com/a/350399/36661

If anyone is a member of StackExchange and wants 50 bounty points, go there and give a better answer and you'll get my points :-)
Thanks


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]