Shares are an online thing, so if you've shared your NTFS drive in Windows, Lubuntu is not gonna know it. You'll just have to mount the entire partition as a filesystem, not as a share. You can share the filesystem like a share.
sudo mkdir /mnt/ntfsthingie
sudo mount /dev/sd## /mnt/ntfsthingie <- I assume you know how it works
sudo nano /var/lib/samba/usershares/ntfsthingie <- code follows:
Code:
#VERSION 2
path=/mnt/ntfsthingie
comment=
usershare_acl=S-1-1-0:R
guest_ok=y
Not sure this is Lubuntucompatible, but it is samba.
I myself have given up on using samba. I mount everything with ssh.
/usr/local/bin/sshfs.sh
Code:
#!/usr/bin/env bash
#sshfs mounter by Redsandro
#2010-07-17 #www.Redsandro.com
#Last edit" 2010-07-19
# Now you can have a desktop shortcut:
# gnome-terminal -x /usr/local/bin/sshfs.sh redsandro 192.168.1.10 / sshfs-redserv
# gnome-terminal -x /usr/local/bin/sshfs.sh redsandro RedServ /cygdrive sshfs-redsandro
#SELFNOTE: test works but if it fails it outputs error:
# ./sshfs.sh: line 12: [: too many arguments
#Why?
if [ ${1:+1} = 1 -a ${2:+1} = 1 -a ${3:+1} = 1 -a ${4:+1} = 1 ]; then
USER=$1
HOST=$2
DEST=$3
DIR=~/$4
if [ ! -d $DIR ]; then
mkdir $DIR
fi
echo "Mounting" "$USER"@"$HOST":"$DEST"
echo "Mountpoint:" "$DIR"
echo
sshfs "$USER"@"$HOST":"$DEST" "$DIR"
nautilus "$DIR"
#sleep 10 # Give fusermount time to mount the share. Yes it can take some time for some computers with encrypted home dirs.
echo
echo "sshfs will unmount when terminal closes."
echo "Press ENTER to close."
read
fusermount -u "$DIR"
else
echo "Wrong parameters."
echo "Usage:"
echo "sshfs.sh user host host_dir mount_dir"
echo "(sshfs user@host:host_dir ~/mount_dir)"
echo "(NO TRAILING SLASH on mount_dir!)"
fi
Usage:
sshfs.sh redsandro RedServ / redserv.fs
That is:
sshfs.sh [username] [servername or ip address] [remote mountpoint] [local mountpoint in home dir]
Bookmarks