LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-20-2010, 04:11 AM   #1
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Rep: Reputation: 15
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
 
Old 11-20-2010, 05:42 AM   #2
mac.tieu
Member
 
Registered: Jan 2010
Location: Vietnam
Distribution: Arch
Posts: 65

Rep: Reputation: 22
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.
 
Old 11-20-2010, 08:13 AM   #3
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Original Poster
Rep: Reputation: 15
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
 
Old 11-20-2010, 08:33 AM   #4
joadoor
Member
 
Registered: Apr 2002
Location: Clevedon, UK
Distribution: SUSE 8.2, 9.2, 10.0 OSS
Posts: 57

Original Poster
Rep: Reputation: 15
Yep, thats sorted it! Thanks for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Harddrive Size: False reporting - says free space is smaller than it should be Brian5 Linux - General 5 12-13-2007 05:54 PM
GNU/Linux reporting incorrect free space on external drive gnurza Linux - Newbie 4 10-31-2007 07:24 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM
Samba: 70 Gb free space, samba reports no space left? HansLuijten Linux - Networking 1 08-18-2004 04:40 PM
df not truly reporting disk free space, why? mark_umr Linux - General 8 12-22-2002 11:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration