LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   mount network ntfs drive (https://www.linuxquestions.org/questions/slackware-14/mount-network-ntfs-drive-581424/)

o2bfishn 09-01-2007 05:21 AM

mount network ntfs drive
 
ok, i have read and searched for this but usually topics covering mounting of ntfs partitions assume the partition is in the same computer (/dev/hdx) but what i need to do is mount an external usb drive connected to my winxp box through my local network. i have samba setup and i can go to smb://desktop/share and have read/write access to it, but i want to mount it either in fstab or via rc.local

i have this in rc.local and it does mount it but i dont have r/w to it
Code:

mount -t smbfs //desktop/share /mnt/share/ -o lfs,rw,username=guest
i think it is the username part that is giving me problems. i have tried with username and password, i have used my actual windows username and guest and neither give me r/w

i have also installed fuse and ntfs-3g without success either (i get failed to access //desktop/share no such file or directory)

how is it when i browse with konqueror i have r/w but if i try to mount i dont and how do i get r/w through mounting? what i would like to have is a mount in my /home dir where i can r/w files and use them as if they were on my slack box

thanks

JSkywalker 09-01-2007 06:59 AM

did you get any errors?
and, if you did get errors, why do you not post these? :confused:


i'm using this, with my own username, and it works for me:
Quote:

mount -t cifs //desktop/share /mnt/share/ -o lfs,rw,username=guest

camorri 09-01-2007 08:05 AM

I don't see anything wrong with your fstab entry. Have you looked at the windoze share properties? Is it set read only" or read write?

You didn't say what flavour of windbloze you are using. If it is XP home, you have to enable the guest account, it is not there by default. You could also try your own user, and password to see if that makes a difference.

Here is a link to a tutorial, for you or anyone else needing help with this type of problem.

http://www.ubuntugeek.com/mount-netw...in-ubuntu.html

Hope this helps.

o2bfishn 09-01-2007 02:16 PM

ok, this worked
Code:

mount -t smbfs //desktop/share /mnt/share -o rw,fmask=0770,dmask=0770,password=
i also did check the windows xp permissions and my share had the read only check box ticked, didnt see that before, thanks, that probably fixed being able to copy files to it but if i copy or move a file into this share, i get a message in kde that says it could not change the permission on the file. the file gets copied, but it is root/root, i can delete there as well. i created a link to the mount point in my home directory. any ideas on having it mount with my username and group users?

o2bfishn 09-05-2007 05:33 AM

actually the above didn't work, but i did find a solution. i had to
Code:

chmod u+s /usr/bin/smbmnt
and changed the line in my fstab as below and now i can mount the windows xp share and have r/w access to it as a normal user

Code:

//desktop/share        /home/username/share          smbfs              credentials=/home/username/.smbpasswd,rw,user,noauto  0  0
thanks for all the replies and help!


All times are GMT -5. The time now is 03:27 PM.