Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-22-2014, 09:17 PM   #1
Registered: May 2007
Location: North Carolina
Distribution: RHEL 7, CentOS7
Posts: 82

Rep: Reputation: 18
Copying to Large Samba Share on ESXi Ubuntu VM limited by VM disk size

I have six partitions totaling 4TB (2 x 2TB disks) attached to a PCI-e Sata card. The card is plugged into an ESXi whitebox I built and the card is directly passed to an Ubuntu 14.04 VM. The Ubuntu VM has a tiny disk, since it doesn't need much space for the OS. I originally allocated 16GB to the VM on my datastore, then shrank it to 5GB when I realized 16GB was more than I needed for a one purpose VM. So, Ubuntu thinks it has 16GB, it doesn't really matter that it only has 5GB, and the 4TB of space allocated for my home network is all NTFS partitions on separate disks.

The problem: If I try to copy a lot of data to a partition from Windows 7, Windows thinks there isn't enough room because the Ubuntu VM thinks it is 16GB with 11GB of free space. So, I've had to break my copies into 11GB or less, which gets annoying. This won't really be a problem in general, but I'd really like to know what I could do to avoid this. Windows doesn't seem to see the size of the partitions it's actually writing to.

Let me know if I didn't explain this well, I rewrote it after reading over my original garbled explanation.
Old 11-23-2014, 02:34 PM   #2
Senior Member
Registered: Mar 2012
Posts: 1,873

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
There are samba options to change the way space is reported to allow for such Win stupidity.

Also, you should shrink the filesystem on your VM, NOT just truncate the virtual disk.
1 members found this post helpful.
Old 11-24-2014, 02:35 PM   #3
Registered: May 2007
Location: North Carolina
Distribution: RHEL 7, CentOS7
Posts: 82

Original Poster
Rep: Reputation: 18
Thanks a bunch!

I'll look into the Samba options immediately, thanks for the answer descendant.

I completely agree with resizing the VM disk first, and then the datastore space allocation, but I've held off running fdisk or a livecd in the VM since once the VM realizes it only has 5GB it will let me copy almost nothing at a time. I'll definitely resize the VM disk just to be safe once I've gotten the Samba problem fixed.

Thanks again for the quick response!


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
Set size limit to share folders on my samba server(Ubuntu server 14.04) tejas73er Linux - Newbie 0 09-20-2014 06:45 AM
Large size hard disk not visible frankkky General 4 03-09-2008 01:49 AM
Samba hangs up at copying many large files ogcu Linux - Networking 1 05-19-2004 02:29 AM
Large copying to windows share failing... jair666 Linux - Newbie 1 04-19-2004 10:02 AM
Large disk size Shaddell Linux - General 1 01-07-2003 10:16 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:56 AM.

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