How to Network "share" a mounted Win8 Folder in MINT15

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
mattrixx
Level 3
Level 3
Posts: 130
Joined: Sat Apr 07, 2007 6:42 pm

How to Network "share" a mounted Win8 Folder in MINT15

Post by mattrixx »

I would like to make available for Network "streaming"/"sharing" some media folders from an NTFS "mounted" Windows HDD... while in Linux MINT15 Cinnamon Operating System.
I now have several shared NATIVE MINT folders easily accessible for my mainly streaming purposes, but I want to include some Windows media folders from a "mounted" Windows Data drive as well while in LINUX.
This is from a dual boot Win8/Mint15 system while using MINT15.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11450
Joined: Tue Feb 03, 2009 10:27 am

Re: How to Network "share" a mounted Win8 Folder in MINT15

Post by altair4 »

Since you didn't specify how you are sharing the Linux folders I'm going to assume you are using Samba so please post the output of the following commands:

Code: Select all

testparm -s

Code: Select all

net usershare info --long
Since you used the word "mounted" twice in quotes please post the output of this command so that we can see how you are mounting it:

Code: Select all

cat /etc/fstab
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
WharfRat

Re: How to Network "share" a mounted Win8 Folder in MINT15

Post by WharfRat »

mattrixx,

If you intend to access the media from another computer running linux then just export the folder as an nfs share and mount it.

Install nfs-kernel-server on the computer you want to share and make an entry in /etc/exports

/media/win/video 192.168.1.0/24(rw,no_subtree_check,async,no_root_squash)

On the other computer install nfs-common, create a mount point for it and mount it using nfs type

mount -t nfs,defaults 192.168.1.102:/media/win/video /mnt/video

It would be best if you assigned a static ip for the server.

Good luck :wink:
mattrixx
Level 3
Level 3
Posts: 130
Joined: Sat Apr 07, 2007 6:42 pm

Re: How to Network "share" a mounted Win8 Folder in MINT15

Post by mattrixx »

altair4 wrote:Since you didn't specify how you are sharing the Linux folders I'm going to assume you are using Samba so please post the output of the following commands:

Code: Select all

testparm -s

Code: Select all

net usershare info --long
Since you used the word "mounted" twice in quotes please post the output of this command so that we can see how you are mounting it:

Code: Select all

cat /etc/fstab
Here is: tstpam -s output
mojo@MINT-Z87 ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server (Samba, LinuxMint)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb

Here is: net usershare info --long
mojo@MINT-Z87 ~ $ net usershare info --long
info_fn: file /var/lib/samba/usershares/war & documentary video vault is not a well formed usershare file.
info_fn: Error was Path is not a directory.
info_fn: file /var/lib/samba/usershares/war & documentary is not a well formed usershare file.
info_fn: Error was Path is not a directory.
[Videos]
path=/home/mojo/Videos
comment=
usershare_acl=Everyone:F,
guest_ok=y

info_fn: file /var/lib/samba/usershares/music concerts documentaries is not a well formed usershare file.
info_fn: Error was Path is not a directory.

Here is: cat /etc/fstab
mojo@MINT-Z87 ~ $ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=84ddb4c6-9436-4ee7-b116-69cb0cc1d76d / ext4 noatime,errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=819d0170-68ec-4a8e-8aeb-e55547e3b18b none swap sw 0 0
mojo@MINT-Z87 ~ $
altair4
Level 20
Level 20
Posts: 11450
Joined: Tue Feb 03, 2009 10:27 am

Re: How to Network "share" a mounted Win8 Folder in MINT15

Post by altair4 »

*** You seem to be missing half of the output of the testparm command.

*** And based on the fstab output you are not automouning this ntfs partition.

Where is the share of the ntfs partition?
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 20
Level 20
Posts: 11450
Joined: Tue Feb 03, 2009 10:27 am

Re: How to Network "share" a mounted Win8 Folder in MINT15

Post by altair4 »

EDIT: I may have figured it out:
info_fn: file /var/lib/samba/usershares/war & documentary video vault is not a well formed usershare file.
info_fn: file /var/lib/samba/usershares/war & documentary is not a well formed usershare file.
If "war & documentary video vault" and "war & documentary" are sitting on the ntfs partition the partition itself is not mounted. Go into Nemo and click on the Link on the left side to mount it then see if "net usershare info --long" has no errors.

Once we have established that you do in fact have a share of this partition and that the partition is mounted then you will need to make one addition to the smb.conf file to make this work.

Last EDIT: I'm shutting down for the day so let me leave you with this:

Edit smb.conf as root:

Code: Select all

gksu gedit /etc/samba/smb.conf
Add a line under the workgroup line:

Code: Select all

force user = mojo
Then restart samba:

Code: Select all

sudo service smbd restart
Note: after a samba restart the network has to reset itself so wait a few minutes before trying to access the share.

If my assumption was correct that the ntfs partition was not mounted then mounting it through Nemo will make it available only to you so your network user wouldn't be able to use it. "force user" will make your network users appear to be you for this share so it will allow access to them.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
Locked

Return to “Networking”