Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 23 Sep 2014, 04:40
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
HiDrive mount (From Strato)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
DutchPuppy


Joined: 14 Aug 2011
Posts: 34
Location: Vlaardingen, South-West of Netherlands

PostPosted: Mon 28 Nov 2011, 15:35    Post subject:  HiDrive mount (From Strato)
Subject description: Try to mount my Hidrive
 

Hi all,

I have a HiDrive at Strato.com (100 GB, a paid one so I have a several connect options).

I can upload files if I login at hidrive.strato.com and it also worked for me to use FTP, but i would like to mount a folder and that should be possible with webdav. Because then its safe and simple to drag and drop files.

But unfortunately, after hours of try this and that, i did not succeed in mounting it yet Sad

At Strato i have downloaded this script:

#!/bin/sh

mkdir -p /mnt/webdav.myfolder
mount -t davfs https://webdav.hidrive.strato.com/ /mnt/webdav.myfolder

Then i read at Strato that davfs2 has to be installed. Since iam not familiar to install tar.gz i searched for the davfs2.pet and found it here:

http://www.smokey01.com/jemimah/pet/

So i installed the davfs2-1.4.6-i486.pet file.

After installing this file and running the script, the folder /mnt/webdav.myfolder was made.

I expect a popup will appear where name and password can be entered, but that does not appear.
So i added this in the script:

mount -t davfs https://webdav.hidrive.strato.com/ /mnt/webdav.myfolder -o user=myusername pass=mypassword

Unfortunately it does not mount yet.

My knowledge ends here at the moment....

Hopefully someone can help me.

Kind regards, Kees
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Mon 28 Nov 2011, 16:27    Post subject:  

wow ! i would have thought that file system things have to be compiled with the kernel but after reading http://en.wikipedia.org/wiki/Davfs2 it should work with fuse .
for kernel things i would reboot after installing and
mount -o user=$USER,pass=$PASS <_ use the comma !
Back to top
View user's profile Send private message Visit poster's website 
DutchPuppy


Joined: 14 Aug 2011
Posts: 34
Location: Vlaardingen, South-West of Netherlands

PostPosted: Mon 28 Nov 2011, 17:01    Post subject:  

Ok, so there is fuse.

I found fuse 2.7.0 pet and installed it, rebooted

Should that be ok?

Then tried to mount

mount -t https://webdav.hidrive.strato.com/ /mnt/webdav.myfolder -o user=$username,pass=$password

But then the result is that i get all the mount options.

[edit] i searched more on fuse and think i should user fusermount?
Iam sorry that iam not familiar with this yet!
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Tue 29 Nov 2011, 08:09    Post subject:  

is fuse kernel module loaded ?

USER='DutchPuppy'
PASS='DutchPuppy's password'
Question

maybe the puppy mount script does not work ?
it should mount-FULL :
what happens if you
mount-FULL -t davfs -o user="$USER",pass ....
-t http: should result in error Wink
maybe its -t dav2fs or -t davfs2

btw reading the man page of mount :
-t vfstype
The argument following the -t is used to indicate the file sys-
tem type. The file system types which are currently supported
include: adfs, affs, autofs, cifs, coda, coherent, cramfs,
debugfs, devpts, efs, ext, ext2, ext3, hfs, hfsplus, hpfs,
iso9660, jfs, minix, msdos, ncpfs, nfs, nfs4, ntfs, proc, qnx4,
ramfs, reiserfs, romfs, smbfs, sysv, tmpfs, udf, ufs, umsdos,
usbfs, vfat, xenix, xfs, xiafs. Note that coherent, sysv and
xenix are equivalent and that xenix and coherent will be removed
at some point in the future -- use sysv instead. Since kernel
version 2.1.21 the types ext and xiafs do not exist anymore.
Earlier, usbfs was known as usbdevfs. Note, the real list of
all supported filesystems depends on your kernel.

maybe davfs not supported by mount-FULL binary ?

also i only find the user and users option (without '=') , no password option ..
probably needs
_netdev
The filesystem resides on a device that requires network
access (used to prevent the system from attempting to
mount these filesystems until the network has been
enabled on the system).

my man page is from 2004 and likely not up to date Cool
Back to top
View user's profile Send private message Visit poster's website 
DutchPuppy


Joined: 14 Aug 2011
Posts: 34
Location: Vlaardingen, South-West of Netherlands

PostPosted: Tue 29 Nov 2011, 14:52    Post subject:  

Gutentag Nachbar! (hi neighbor)
I slept yesterday, only today i saw you are from Germany... Very Happy

The suggested commands with davfs did not work and honestly speaking i do not know if the kernel supports the things I want. Iam using Slacko 5.3 btw.

Karl, anyhow thanks a lot for your time until now, but i did not succeed yet.
Tonight read that sshfs is needed, so i searched and installed it.

After you asked me whether the fuse was loaded, i searched how to load it and found modprobe fuse.
So at the command line :
modprobe fuse

Then i tried:

sshfs myusernam@webdav.hidrive.strato.com:/users/mydomain/ /mnt/webdav.myfolder

but that results in connection reset by peer...

I use Puppy quite a long time and in fact i cannot without it, its a kind of addiction, pretty weird, but i have to learn a lot regarding this kind of things... Wink

Iam going to browse this forum to see if there is more information about fuse. Iam sure you pushed me in the correct direction.

If I found it, i will certainly write and any hints are still welcome of course!

Vielen Dank, thanks a lot,

Kees
Back to top
View user's profile Send private message 
Karl Godt


Joined: 20 Jun 2010
Posts: 3972
Location: Kiel,Germany

PostPosted: Wed 30 Nov 2011, 17:23    Post subject:  

I had french and english at school and denmark is my neighbor .. but there is
"Friedrichstadt" associated with dutch in my county ; but i have never been there .
Lower saxony may know more about
http://nl.wikipedia.org/wiki/Kruistocht_tegen_de_Stedingers
i know because of
http://www.militaerundgeschichte.de/heft/items/heft-nr-37.html
i once bought because of the article about the "vow" .
I like
http://en.wikisource.org/wiki/1911_Encyclopædia_Britannica/Civilis,_Claudius
who had given the roman empire (big city) some defeats .

For everything else i wish you good luck .
Back to top
View user's profile Send private message Visit poster's website 
DutchPuppy


Joined: 14 Aug 2011
Posts: 34
Location: Vlaardingen, South-West of Netherlands

PostPosted: Thu 01 Dec 2011, 15:35    Post subject:  

I made some progress, anyhow i can see the contents of my hidrive in my local folder. Iam not sure if iam having the ideal setting but at least i see the content, can read, copy, paste and delete files. I only get errors when copying from the local to the hidrive, but i guess that still got something to do with permissions on the remote drive.

Summary; i am using Slacko 5.3. Installed fuse-2.7.0.pet and
sshfs-fuse-2.2.pet

Made a new directory /mnt/hidrive
And changed permissions executable, read, write

In terminal
sshfs mydomain@rsync.hidrive.strato.com:/users/mydomain/ /mnt/hidrive

Then is asks for the password. After entering the password the content is shown in /mnt/hidrive

So far so good.

to unmount

fusermount -u /mnt/hidrive

Anyhow i still get errors if I want to copy files from the local drive to the hidrive remote disk. But it does place the files on the remote drive despite the errors.

Now hope i can get it automatically mounted with a script....
Back to top
View user's profile Send private message 
DutchPuppy


Joined: 14 Aug 2011
Posts: 34
Location: Vlaardingen, South-West of Netherlands

PostPosted: Sun 04 Dec 2011, 07:12    Post subject:  

Fount a script in the forum to connect the remote drive like this:

echo 'mypassword' | sshfs mydomain@rsync.hidrive.strato.com:/users/mydomain/ /mnt/hidrive -o workaround=rename -o password_stdin

But if i unmount it with umount /mnt/hidrive or fusermount -u /mnt/hidrive and want to mount it again with mount -t /mnt/hidrive and entering the above mentioned script again, it does not show content. Then if i change the permissions on the /mnt/hidrive folder with chmod 777 /mnt/hidrive it sometimes shows the contents, but sometimes also not. I am sure i miss something or do something wrong, but i did not find out yet what.

Is there someone who might know?

Unfortunately i do not know yet how to handle tgz2pet Embarassed and wonder if there is someone who has the most actual fuse 2.8.x and sshfs-fuse 2.3 available in a pet?

replies are much appreciated! Smile
Back to top
View user's profile Send private message 
DutchPuppy


Joined: 14 Aug 2011
Posts: 34
Location: Vlaardingen, South-West of Netherlands

PostPosted: Mon 19 Dec 2011, 16:27    Post subject: Solved for me at the moment  

Ok, it works for me now in Slacko 5.3:

Installed fuse and sshfs ( right now the available fuse-2.7.0.pet and sshfs-fuse-2.2.pet )

From the command line:
echo 'mypassword'|sshfs mydomain@sftp.hidrive.strato.com:/users/mydomain ~/hidrive -o password_stdin

Where mydomain is the name of the hidrive domain and ~/hidrive is the folder in the root directory.

That worked. The hidrive folder was mounted and showed content of the remote server at Strato.
Now had to automate it so it will auto mount when the pc is switched on.
In the folder my-documents i made a new script:

#!/bin/sh
echo 'mypassword'|sshfs mydomain@sftp.hidrive.strato.com:/users/mydomain ~/hidrive -o password_stdin

saved the script as "mount-hidrive" and copied it to the startup folder in root. After switch on the pc the ~/hidrive folder is mounted automatically and can work with it.
The only thing is that if copying files to the hidrive folder error messages are shown like

cp: failed to preserve ownership for `/root/hidrive/filename': Permission denied Failed to copy '/mnt/sda2/filename'

It does not really matter because files are copied, but have to find out how to get rid of the error message.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0775s ][ Queries: 12 (0.0116s) ][ GZIP on ]