[SOLVED]OneDrive mount, possible?

[SOLVED]OneDrive mount, possible?

Postby mackowiakp » Dec 6th, '14, 22:10

Is it possible to mount (vi fstab for example) OneDrive resources to my computer? I found clients for Fedora and Ubuntu for syncing drives (Dropbox like) but not to mount as cloud drive. Is it possible at all?
Last edited by mackowiakp on Dec 7th, '14, 12:50, edited 1 time in total.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 646
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: OneDrive mount, possible?

Postby doktor5000 » Dec 6th, '14, 22:34

Gnome should have support for that: http://debarshiray.wordpress.com/2012/0 ... -skydrive/

Should also be possible to mount it as a WebDAV share, as explained partly at the bottom of http://support.microsoft.com/kb/2478800/en-us and in http://blog.lazut.in/2012/12/skydrive-w ... ccess.html but for the latter you have to use konqueror and dolphin.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: OneDrive mount, possible?

Postby jiml8 » Dec 6th, '14, 23:37

but for the latter you have to use konqueror and dolphin.


Why?

I mount a webdav share from my NAS to my workstation, and I can access the share just like any other mounted device. I can use konqueror and dolphin, if I wish, but I can also use the command line.
jiml8
 
Posts: 1253
Joined: Jul 7th, '13, 18:09

Re: OneDrive mount, possible?

Postby doktor5000 » Dec 7th, '14, 00:25

Did you at least read the last link instead of complaining? It explains the context ...

UPDATE2: Unfortunately, while the above solution works well in Windows and allows you to access your Skydrive via a mapped network drive, it doesn't seem to be possible to do the same in Linux.

Despite many efforts to mount Skydrive with davfs2 in Linux, I kept getting the "Found 302" error, meaning that the provided WebDAV URL redirects to another page. It turns out, davfs2 currently is unable to handle any redirects, which Skydrive (unlike many other WebDAV storage providers) uses. There is a related davfs2 bug that was filed over 2 years ago, yet it seems no progress has been made since.

Effectively, until this is fixed, there seems to be no way to access Skydrive via WebDAV in Linux.


UPDATE3: To be completely fair, it turns out it is possible to access specific folders of your Skydrive via WebDAV but only when using KDE's Dolphin file manager. This is made possible thanks to the fact that Dolphin uses Konqueror's (Rekonq's) cookies to establish a session, thus if you have previously logged to skydrive.com with Rekonq, it will use the same session and allow you to see your files.

To do that you have to log in to the Skydrive web-interface with Rekonq, open a folder you want to work with and note it's number in the browser's address bar. The number will be the digits after the "!" in the address. Now, insert the following addres in Dolphin's address bar and you should instantly see your folder and work with it normally:

webdavs://cid-5190000000013e3c.users.st ... e3c!12345/

In this example "5190000000013e3c" is your ID we've found in the steps above and "12345" is the folder number.

Unfortunately, this only works in Dolphin and you can only work with one folder at a time.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: OneDrive mount, possible?

Postby mackowiakp » Dec 7th, '14, 10:24

OK. According to above instructions, I created subdir in my OneDrive account using Rekonq. Than I enter in to the new created dir (still using Rekonq) and it was possible to obtailn mu ID and folder number.
Than under Dolphin I created new "WebDavs drive" similar to my OwnCloud one. So I use syntax

Code: Select all
webdavs://onedrive.live.com/?cid=blablabla&id=blablabla


Dolphin try to connect to OneDrive every 2-3 sec but rapports -> html.err
Look to attached screenshot
Any idea what I am doing wrong?
Attachments
OneDrive.png
OneDrive.png (93.99 KiB) Viewed 22487 times
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 646
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: OneDrive mount, possible?

Postby mackowiakp » Dec 7th, '14, 12:38

OK. WORKS. I made syntax error but now its OK!
UPDATE3 form previous post is the solution for me. THX
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 646
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: [SOLVED]OneDrive mount, possible?

Postby doktor5000 » Dec 7th, '14, 14:39

Seems our davfs2 version is pretty old, 1.4.7 from 2012. 1.5.0 seems to have at least two related fixes (redirection, and authentication support via multiple cookies).
I'll probably push that to Mageia 5, maybe you can try again with that if it works to mount directly.

http://savannah.nongnu.org/forum/forum. ... um_id=7952
http://savannah.nongnu.org/bugs/?35428
http://savannah.nongnu.org/support/?107907
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED]OneDrive mount, possible?

Postby mackowiakp » Dec 7th, '14, 15:27

Yep. I have a problem to mount OneDrive from fstab. My enrty in fstab looks like this:

Code: Select all
https://cid-blablabla.users.storage.live.com/items/blablabla /home/media/MS davfs user,noauto,file_mode=600,dir_mode=700 0 1


Than I want to mount form user but mount ask about user/pass:

Code: Select all
[media@mackowiak ~]$ mount ~/MS
Please enter the username to authenticate with server
https://cid-blablabla.users.storage.live.com/items/blablabla or hit enter for none.
  Username:
Please enter the password to authenticate user  with server
https://cid-blablabla.users.storage.live.com/items/blablabla or hit enter for none.
  Password: 
/sbin/mount.davfs: Mounting failed.
302 Found


Is any way to resolve that problem?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 646
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: [SOLVED]OneDrive mount, possible?

Postby doktor5000 » Dec 7th, '14, 17:01

mackowiakp wrote:
Code: Select all
/sbin/mount.davfs: Mounting failed.
302 Found


Is any way to resolve that problem?

:|
Sometimes I really wonder why I post some links holding relevant context information *sigh*

Did you read my previous post, including the links?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED]OneDrive mount, possible?

Postby mackowiakp » Dec 7th, '14, 18:16

Yes, of course I read links You sent. My question was about possible workaround, for example to use ready rpm from other distros etc to replace existing one. I an not Linux developer so I am looking for ready solution.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 646
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: [SOLVED]OneDrive mount, possible?

Postby mackowiakp » Dec 7th, '14, 18:47

I try to install davfs2-1.5.2-1.src.rpm but it rapports that libopenssl-devel-1.0.1e-8.6.mga4 and
libneon0.27-devel-0.29.6-4.mga4 are too old.
So it looks to be to complicated for me.
But this issue seams to be important because of Microsoft 10 TB (tera) cloud storage available for every Office 365 users and in near future M$ cloud space will be unlimited. In my country, many people got as a gift, 1-3 years Office 365 licence with new contract with (for example) new commercial power supplier. Thats the only thing why it is important
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 646
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: [SOLVED]OneDrive mount, possible?

Postby doktor5000 » Dec 7th, '14, 20:35

Important enough to file a bug report for Mageia, so that this package maybe can become an update?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED]OneDrive mount, possible?

Postby mackowiakp » Dec 7th, '14, 20:55

OK
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 646
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: [SOLVED]OneDrive mount, possible?

Postby mackowiakp » Dec 10th, '14, 15:52

New version of davfs2 does not resolved problem of mounting OneDrive

https://bugs.mageia.org/show_bug.cgi?id=14744
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 646
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: [SOLVED]OneDrive mount, possible?

Postby mkrelli » Oct 13th, '17, 17:46

Hi,

I just created a solution for this topic. Unfortunately I had to post this as a "bug report" at the davfs2 project. However... Here is the link: https://savannah.nongnu.org/bugs/index.php?52224

Best regards,
Martin.

PS: Sorry for popping an old thread.
mkrelli
 
Posts: 1
Joined: Oct 13th, '17, 17:43


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest

cron