Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-20-2010, 04:11 AM
|
#1
|
Member
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57
Rep:
|
samba share reporting root free space
Hi all,
Wierd problem, when I map a Windows Drive to my Ubuntu HTPC Samba share, Windows reports the free space as the free space on my root partition?!!?
HTPC Ubuntu server:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 12G 6.5G 4.0G 62% /udev 1.6G 308K 1.6G 1% /dev
none 1.6G 104K 1.6G 1% /dev/shm
none 1.6G 1.7M 1.6G 1% /var/run
none 1.6G 0 1.6G 0% /var/lock
none 1.6G 0 1.6G 0% /lib/init/rw
none 12G 6.5G 4.0G 62% /var/lib/ureadahead/debugfs
/dev/sda5 903G 761G 97G 89% /mnt/data
/dev/sr0 6.9G 6.9G 0 100% /media/cdrom0
So my root partition has 4gb free, and my samba share (/mnt/data) has 97gb free.
From Windows machine:
net use
Status Local Remote Network
-------------------------------------------------------------------
OK Z: \\xbmc\files MS Windows Network
The command completed successfully.
dir z:
Volume in drive Z is files
Volume Serial Number is 2920-051C
Directory of Z:\
11/01/2010 13:49 <DIR> .
10/07/2010 12:10 <DIR> ..
14/11/2010 09:44 <DIR> data
03/12/2009 16:15 <DIR> iso
11/01/2010 13:49 <DIR> vmdk
03/12/2009 14:21 <DIR> oldsrv
0 File(s) 0 bytes
6 Dir(s) 4,277,440,512 bytes free
Samba.conf
[global]
workgroup = HOME
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
[printers]
comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
[files]
comment = Files in /mnt
path = /mnt
browseable = yes
read only = no
guest ok = no
create mask = 775
directory mask = 775
Any help would be appreciated - if you need more command outputs, just let me know.
TIA,
Joadoor
|
|
|
11-20-2010, 05:42 AM
|
#2
|
Member
Registered: Jan 2010
Location: Vietnam
Distribution: Arch
Posts: 65
Rep:
|
Because of your shared path is '/mnt' which was belong to root partition. If you want to share '/dev/sda5' then 'path' should be '/mnt/data'.
Cheers,
MT.
|
|
|
11-20-2010, 08:13 AM
|
#3
|
Member
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57
Original Poster
Rep:
|
Thanks mac-tieu for the quick reply. Thought it might be something quite simple and obvious that I was missing.
Guess I need to have a reshuffle :-)
Cheers
|
|
|
11-20-2010, 08:33 AM
|
#4
|
Member
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57
Original Poster
Rep:
|
Yep, thats sorted it! Thanks for your help.
|
|
|
All times are GMT -5. The time now is 06:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|