Mount T-Online Mediencenter via WebDAV

This blog post describes how to mount the T-Online Mediencenter via WebDAV on Ubuntu Linux and on Windows 7 (64bit).


How To for Mac OS X

  1. Open Finder.
  2. Press [⌘]-[k].
  3. Connect to
  4. Enter email address and password.

How To for Ubuntu Linux

First, install the required package davfs2:

sudo apt-get install davfs2

SUID bit for mount.davfs to be able to mount as non-root user and add your user to the group davfs2:

sudo chmod u+s /usr/sbin/mount.davfs
sudo usermod -a -G davfs2 philipp

(Instead of sudo chmod ... in the first commands above you can also run sudo dpkg-reconfigure davfs2 and confirm YES (set SUID bit) ) Now we create the directory mediencenter in the user path ~/:

mkdir ~/mediencenter

Finally we are prepared to add the mountpoint to the configuration file /etc/fstab. So edit the file using sudo gedit /etc/fstab and add the following lines:

# T-Online Mediencenter /home/username/mediencenter davfs rw,noauto,user 0 0

Now for the T-Online credentials we want to store them in a secured folder:

mkdir ~/.davfs2
touch ~/.davfs2/secrets
chmod 600 ~/.davfs2/secrets
gedit ~/.davfs2/secrets

In the file ~/.davfs2/secrets enter:

/home/username/mediencenter password

Now copy the davfs2.conf from the global configuration directory to your local config dir and change it:

cp /etc/davfs2/davfs2.conf ~/.davfs2/
gedit ~/.davfs2/davfs2.conf

Just the setting if_match_bug is important:

if_match_bug 1
cache_size 1 # MiByte
table_size 4096
delay_upload 1
gui_optimize 1

To mount the T-Online Mediencenter via WebDAV, now all you have to do is:

mount ~/mediencenter

Mount on Windows

to mount this on Windows 7 64bit (see,442,4989391,fid=84b72be.html#msg-4991533 ) :

@echo off
echo WebDAV T-Online MC Zugriff

REM Hier bitte den Benutzername (ohne eingeben) sowie das Passwort

set usr=roadrunner2k
set pwd=geheim-und-nicht-für-dich!

REM Erzeugen des WebDAV Laufwerks

if exist T: goto trennen
goto verbinden

echo Die Verbindung zum WebDAV Laufwerk wird hergestellt.
Net use T: /user:%usr% %pwd% /persistent:no
goto ende

echo Das vorhandene Laufwerk wird getrennt.
net use T: /d


Explanation of the script:

  1. Tests if T: already exists.
  2. If true it will be disconnected.
  3. Should T: not exist, it would be created with the settings "usr" and "pwd".

So you can first connect (first run of the script) and then disconnect (second run of the script).