Author Topic: [SOLVED] Map Network Drive  (Read 714 times)

Offline clodger

  • New Friend
  • *
  • Posts: 7
[SOLVED] Map Network Drive
« on: January 24, 2013, 01:21:42 PM »
Hello Gals and Guys (ladies should always be first)

I'm fairly new to PCLinuxOS - I've been trying to find a Linux replacement for Windows that's not flaky and so far this has fitted the bill.

I am using release 2012, and want to perform the equivalent of Win XP "map network drive".
I have a drive connected by USB to my router that I want to connect to - easy peasy in Windows.

From my investigations so far, I understand Samba is the tool for this.

In the configuration menu there is an entry for Samba configuration. When I run this, it opens Firefox with the address "localhost:901" and is unable to connect (?!?!?).

I then found this http://pclosmag.com/html/Issues/200909/page05.html by David Lally in the magazine and thought it would have the answer. However, this article refers to elements in the Control Centre which don't seem to be in mine - perhaps he's using an older version(?).

I noticed my /etc/fstab file contains a reference to the drive I want to connect to (Disk_a1)

# Entry for /dev/sda9 :
UUID=d5903bb1-7f76-41f7-9b74-895f83af6b73 / ext2 defaults 1 1
none /dev/pts devpts defaults 0 0
//technicolor/Media /mnt/Media cifs username=% 0 0
//technicolor/Disk_a1 /mnt/Router_Shared_Data cifs user,username=% 0 0
//technicolor/Shared /mnt/Shared cifs username=% 0 0
none /proc proc defaults 0 0

Any suggestions on where I go from here would be greatly appreciated.
« Last Edit: January 28, 2013, 02:16:54 AM by clodger »

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10607
  • MLUs Forever!
Re: Map Network Drive
« Reply #1 on: January 24, 2013, 01:39:07 PM »
Hello Gals and Guys (ladies should always be first)

I'm fairly new to PCLinuxOS - I've been trying to find a Linux replacement for Windows that's not flaky and so far this has fitted the bill.

I am using release 2012, and want to perform the equivalent of Win XP "map network drive".
I have a drive connected by USB to my router that I want to connect to - easy peasy in Windows.

From my investigations so far, I understand Samba is the tool for this.

In the configuration menu there is an entry for Samba configuration. When I run this, it opens Firefox with the address "localhost:901" and is unable to connect (?!?!?).

I then found this http://pclosmag.com/html/Issues/200909/page05.html by David Lally in the magazine and thought it would have the answer. However, this article refers to elements in the Control Centre which don't seem to be in mine - perhaps he's using an older version(?).

I noticed my /etc/fstab file contains a reference to the drive I want to connect to (Disk_a1)

# Entry for /dev/sda9 :
UUID=d5903bb1-7f76-41f7-9b74-895f83af6b73 / ext2 defaults 1 1
none /dev/pts devpts defaults 0 0
//technicolor/Media /mnt/Media cifs username=% 0 0
//technicolor/Disk_a1 /mnt/Router_Shared_Data cifs user,username=% 0 0
//technicolor/Shared /mnt/Shared cifs username=% 0 0
none /proc proc defaults 0 0

Any suggestions on where I go from here would be greatly appreciated.


The mount points in your OS are

/mnt/Router_Shared_Data

/mnt/Shared

Try accessing them in your file manager 

Report if you get any error message.



......  and welcome to PCLOS  ;)
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline clodger

  • New Friend
  • *
  • Posts: 7
Re: Map Network Drive
« Reply #2 on: January 24, 2013, 05:00:37 PM »
Thank you Just17

I can access both

/mnt/Router_Shared_Data

/mnt/Shared

but they show as empty - does that mean they're not mounted?

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10607
  • MLUs Forever!
Re: Map Network Drive
« Reply #3 on: January 25, 2013, 02:10:19 AM »
To check what partition file systems are mounted open a terminal and issue the command

mount

To see some details of the mounted file systems issue the command

df


Post back the results for others to see what you have.
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline clodger

  • New Friend
  • *
  • Posts: 7
Re: Map Network Drive
« Reply #4 on: January 25, 2013, 05:34:46 AM »
mount

/dev/sdb1 on / type ext2 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
gvfs-fuse-daemon on /home/chris/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=chris)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/sda3 on /media/SharedData type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)


df

Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1              35G   16G   18G  48% /
/dev/sda3              80G   35G   46G  44% /media/SharedData

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10607
  • MLUs Forever!
Re: Map Network Drive
« Reply #5 on: January 25, 2013, 08:55:48 AM »
mount

/dev/sdb1 on / type ext2 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
gvfs-fuse-daemon on /home/chris/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=chris)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/sda3 on /media/SharedData type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)


df

Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1              35G   16G   18G  48% /
/dev/sda3              80G   35G   46G  44% /media/SharedData



Quote
//technicolor/Media /mnt/Media cifs username=% 0 0
//technicolor/Disk_a1 /mnt/Router_Shared_Data cifs user,username=% 0 0
//technicolor/Shared /mnt/Shared cifs username=% 0 0

Do you have three separate partitions on the drive plugged into the router ... 'technicolor'?
Did you make those entries manually?

Do you also have another HDD .....  'SharedData' ?


Have you used PCLOS Control Centre (Configure your computer) - "Access Windows share drives & directories" to set this up?

MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline clodger

  • New Friend
  • *
  • Posts: 7
Re: Map Network Drive
« Reply #6 on: January 25, 2013, 04:50:27 PM »

The SharedData is not relevant as it is just another partition on the internal drive that is shared with Windows.

There is just one drive attached to the router. Windows recognises it as //technicolor/Disk_a1 where I called it Router_Shared_Data.

Yes, I did use PCLOS Control Centre (Configure your computer) - "Access Windows share drives & directories" to set up the Media & Shared entries although the Disk_a1 was not showing up here. I did this when trying to follow the David Lally script I found in the PCLOS magazine that I mentioned earlier.
The old fstab file just had an entry for Disk_a1, but afterwards also had entries for Media & Shared.

I have just been back to the Control Centre facility, and I noticed the "mount" button!   ::)  and guess what, it successfully mounted Media, which now shows the content of the network drive. ;D

Thanks for your help, Just17, I guess I needed someone to nudge me in the right direction.


Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10607
  • MLUs Forever!
Re: Map Network Drive
« Reply #7 on: January 26, 2013, 03:01:42 AM »
Glad you found the solution ....  but ....  are all those fstab entries valid?

If you have inadvertently made more than one entry for a particular partition you should remove duplicates to avoid confusion.
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline clodger

  • New Friend
  • *
  • Posts: 7
Re: Map Network Drive
« Reply #8 on: January 26, 2013, 05:10:07 AM »
I've cleaned up fstab, but I don't know where the utility is getting its information for the Shared entry from.

I still have an issue with it - I can't write to the drive as a normal user - "access denied" message - I have to open folders as the root user in order to write to them.

I have tried adding "rw,auto,user,exec" options to the fstab entry and then re-mounting, but to no avail.

"//technicolor/Media /mnt/Router_Shared_Data cifs rw,auto,user,sync,username=%,exec 0 0"

Any ideas?

Online Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11532
  • ----IOFLU----
Re: Map Network Drive
« Reply #9 on: January 26, 2013, 05:41:44 AM »
I've cleaned up fstab, but I don't know where the utility is getting its information for the Shared entry from.

I still have an issue with it - I can't write to the drive as a normal user - "access denied" message - I have to open folders as the root user in order to write to them.

I have tried adding "rw,auto,user,exec" options to the fstab entry and then re-mounting, but to no avail.

"//technicolor/Media /mnt/Router_Shared_Data cifs rw,auto,user,sync,username=%,exec 0 0"

Any ideas?

Add your uid and gid to the mount parameters.

rw,auto,user,exec,uid=<whatever>,gid=<whatever> 0 0
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline clodger

  • New Friend
  • *
  • Posts: 7
Re: Map Network Drive
« Reply #10 on: January 26, 2013, 06:34:47 AM »
Thanks Old-Polack, that worked a treat.

Learning little by little ........