[HOWTO] Browse (read) and mount (write) network shares
Posted: 12 Oct 2013, 23:09
I had a little trouble finding a good source of information on how to handle accessing and mounting network shared (samba) in Porteus. I may have overlooked something, but just in case I'll share my findings with you.
Browse Network (read mode)
The error I list here is specific to Thunar (file manager in XFCE), but the solution for browsing the network should be generic enough. I got this odd message when I tried to browse the network. Turns out all you have to do is to add samba through Porteus Package Manger, and you can browse the network fine.
Mount network shares (write mode)
I had to figure out how to access the shares in "write mode" (not browse them as guest), and mounting the share(s) in question came up as the likely solution. I tried the System->Mount... utility to no avail, and searched the forum. This topic gave me the following command (run as root in terminal):
Using this command I got the following error however:
Once I did this, all was well. Hope this will help others as well!
Browse Network (read mode)
The error I list here is specific to Thunar (file manager in XFCE), but the solution for browsing the network should be generic enough. I got this odd message when I tried to browse the network. Turns out all you have to do is to add samba through Porteus Package Manger, and you can browse the network fine.
Mount network shares (write mode)
I had to figure out how to access the shares in "write mode" (not browse them as guest), and mounting the share(s) in question came up as the likely solution. I tried the System->Mount... utility to no avail, and searched the forum. This topic gave me the following command (run as root in terminal):
Code: Select all
mount.cifs //X.X.X.X/path /mnt/pc -o username=YOUR_DOMAIN/your_username,password=your_password
Searching the forum turned up nothing, but searching with Google it seems the kernel was recently defaulted to NTLM2 security mode. As my NAS likely doesn't support it (or have it enabled), I had to use this less secure workaround:mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Code: Select all
mount.cifs //X.X.X.X/path /mnt/pc -o username=YOUR_DOMAIN/your_username,password=your_password,sec=ntlm