PDA

View Full Version : Mount a shared drive issues Solved



Jook_roberts
Sep 20th 2010, 10:41 PM
I need to mount a shared drive so the music will show up in Amarok's collection. I have typed the following:

Samba
sudo mount -t ext4 -o fmask=666,dmask=777,guest //dale-desktop/1TSIDE1 /mnt/music
mount: special device //dale-desktop/1TSIDE1 does not exist

NFS
sudo mount -t ext4 dale-desktop:/1TSIDE1 /mnt/music
mount: special device dale-desktop:/1TSIDE1 does not exist

dale-desktop:/1TSIDE1 sure as heck does exist and is shared. I copied the path right off dolphin where I was browsing it

Can anyone see where I have made some kind of error. I have been trying to get this working for about 2 hours.

I am using Kubuntu 10.10 and the drive I am trying to read is formated to ext4.

Thanks for any help.

oshunluvr
Sep 25th 2010, 07:08 PM
Well, for nfs the share need to be exported and the hostname properly set if you want to mount it that way.

I don't use samba much but if you can browse it with dolphin then it's mounted.

The type should be nfs for nfs and smbfs or cifs for samba - not ext4. nfs and samba clients don't know or care what the partition format is.

Samba
sudo mount -t cifs -o fmask=666,dmask=777,guest //dale-desktop/1TSIDE1 /mnt/music

NFS
sudo mount -t nfs dale-desktop:/1TSIDE1 /mnt/music

If you want a static mount, you'll want to mount it in fstab


server://shared /shared nfs auto,user,rw,rsize=32768,wsize=32768 0 0

Jook_roberts
Sep 28th 2010, 12:56 AM
Thanks for the help, but I was still getting weird errors even with your syntax.

I was able to get this mounted in my directory with a program called Komba2.
In the settings I just had to enter under the Hosts tab: Host field dale-desktop and Workgroup field MSHOME

In a second it showed up in the tree pane on the left. I right clicked it and selected mount.
The samba share is now mounted in my home directory and I can have Amarok add the music to it's collection.
;D