VMware Communities
mehul89
Contributor
Contributor
Jump to solution

Disk Space Error

Hi,

I am using Vmware player with ubuntu 9.10, while saving any file, I am  getting an error message:

There is not enough disk space to save the file. Please free some disk space and try again.

However after deleting some files also I am not able to save it, Can anybody please tell me how to increase the disk space for this??

I am totally stuck

0 Kudos
1 Solution

Accepted Solutions
WoodyZ
Immortal
Immortal
Jump to solution

deleting them would not affect the system, right??

Yes deleting them will affect the system, it will give you back 34 GB of wasted disk space. Smiley Happy

It's safe to delete them.

and I should delete them by usual way like rm -rf .....

Yes although you may have to do it as root or use sudo with the rm command.

View solution in original post

0 Kudos
20 Replies
a_p_
Leadership
Leadership
Jump to solution

I assume you get this error in the virtual machine!?

Where do you want to save the file? What's the output of a df -h ?

André

0 Kudos
mehul89
Contributor
Contributor
Jump to solution

Yes I have got this error in vitual machine, I want to save the file on the virtual machine itself

The output of the df- h is

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              38G   36G     0 100% /
udev                  287M  216K  286M   1% /dev
none                  287M  184K  286M   1% /dev/shm
none                  287M   92K  286M   1% /var/run
none                  287M     0  287M   0% /var/lock
none                  287M     0  287M   0% /lib/init/rw
/dev/sr0              103M  103M     0 100% /media/cdrom0
0 Kudos
WoodyZ
Immortal
Immortal
Jump to solution

You really haven't provided adequate details and you really need to be more explicit and specific.

Are you talking on the Host or Guest?

Does this involve the Guest OS Filesystem, the Host OS Filesystem, a VMware Shared Folder or a SMB/CIFS Share?

Do you have proper permissions for the location your trying to save to?

How much free disk space is there on the Guest?

How much free disk space is there on the Host?

What size is the the file you're trying to save?

How is the file being save, is it a file being downloaded from the Internet or a file you created in a Word Processor?

What Host OS Product and Version are you using?

What VMware Product and Version are you using?

What Guest OS Product and Version are you using?

Have you installed VMware Tools in the Guest?

Get the point? Smiley Wink

0 Kudos
a_p_
Leadership
Leadership
Jump to solution

From the output it looks like the "/" file system is full.

Maybe there are some large files you can delete (e.g. core dumps, logs, ...)

The command

find / -size +10240000c -exec du -h {} \; | less

can help to find files larger than ~10MB

André

0 Kudos
mehul89
Contributor
Contributor
Jump to solution

Hi Woody,

Yes I am talking about Guest OS.

This involves Guest OS file System.

Yes I do have premissions to save the file, the file is created by me, that is text file.

The Host has 325Gb free space.

I have allocated 40Gb to guest

I am trying to save my normal command options (CTRL + S)

I am using Host as windows 7

I am using Vmware Player free version

I am using Ubuntu 9.10 as guest

Yes I have installed Vmware tools in the guest

0 Kudos
mehul89
Contributor
Contributor
Jump to solution

Hi Andre, That command gave me following output. Please tell me which files i shud delete and how? because some of the files my be system files also I guess..??

The output of that command is

0       /sys/devices/pci0000:00/0000:00:0f.0/resource1
102M    /media/cdrom0/VMwareTools-8.4.5-324285.tar.gz
19M     /home/bagside/.config/chromium/Safe Browsing Bloom
11M     /home/bagside/CPU2000sim/CPU2000fp/191.fma3d/data/ref/input/fma3d.in
28M     /home/bagside/.cache/chromium/Cache/f_000034
11M     /home/bagside/simplescalar/simplesim-3.0/fma3d.in
40M     /home/bagside/.mozilla/firefox/i3a1s0yj.default/urlclassifier3.sqlite
0       /proc/kcore
76K     /dev/shm/pulse-shm-435050203
12K     /dev/shm/pulse-shm-2782483895
12K     /dev/shm/pulse-shm-885799007
84K     /dev/shm/pulse-shm-2865935286
17G     /var/log/syslog.1
17G     /var/log/user.log.1
23M     /var/lib/apt-xapian-index/index.1/postlist.DB
32M     /var/lib/apt-xapian-index/index.2/postlist.DB
12M     /var/lib/apt-xapian-index/index.2/termlist.DB
12M     /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_karmic_universe_source_Sources
24M     /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_karmic_universe_binary-i386_Packages
14M     /var/cache/apt/srcpkgcache.bin
14M     /var/cache/apt/pkgcache.bin
11M     /usr/lib/openoffice/basis3.1/program/libswli.so
9.9M    /usr/lib/flashplugin-installer/libflashplayer.so
32M     /usr/lib/chromium-browser/chromium-browser
14M     /usr/lib/libicudata.so.40.1
13M     /usr/lib/libwebkit-1.0.so.2.11.2
13M     /usr/lib/xulrunner-1.9.1.4/libxul.so
18M     /usr/share/myspell/dicts/th_en_AU_v2.dat
18M     /usr/share/myspell/dicts/th_en_US_v2.dat
0 Kudos
a_p_
Leadership
Leadership
Jump to solution

Before deleting files, could you please post a list of files from in /var/log (ls -lisa). The two logfiles in the list seem to be unusually large.

André

0 Kudos
mehul89
Contributor
Contributor
Jump to solution

The output of ls -lisa in the /var/log is

75768       12 -rw-r-----  1 syslog            adm         9981      2011-01-18 00:30 messages.3.gz
4405       12 -rw-r-----  1 syslog            adm         9544      2010-12-05 07:52 messages.4.gz
73736        4 drwxr-xr-x  2 root              root        4096      2009-10-30 12:22 news
4240        0 -rw-r--r--  1 root              root           0      2011-01-18 00:30 pm-powersave.log
1091        4 -rw-r--r--  1 root              root         570      2011-01-17 23:47 pm-powersave.log.1
4208        4 -rw-r--r--  1 root              root         156      2010-11-30 06:08 pm-powersave.log.2.gz
8341        4 -rw-r--r--  1 root              root         169      2009-11-03 17:09 pm-powersave.log.3.gz
69876        0 -rw-r--r--  1 root              root           0      2009-10-28 21:56 pycentral.log
69865        4 drwxr-xr-x  2 root              root        4096      2009-10-02 15:19 samba
69866        4 drwxr-xr-x  2 speech-dispatcher root  4096 2009-10-13 07:27 speech-dispatcher
2597        0 -rw-r-----  1 syslog            adm            0      2011-02-06 20:20 syslog
  128 17222388 -rw-r-----  1 syslog            adm  17635692544      2011-02-06 06:01 syslog.1
1008        8 -rw-r-----  1 syslog            adm         6491      2011-01-24 07:47 syslog.2.gz
76978       24 -rw-r-----  1 syslog            adm        20504      2011-01-18 00:29 syslog.3.gz
4259        4 -rw-r-----  1 syslog            adm         2492      2010-12-05 07:48 syslog.4.gz
75753        8 -rw-r-----  1 syslog            adm         5466      2010-12-04 09:59 syslog.5.gz
75705        4 -rw-r-----  1 syslog            adm         3097      2010-12-03 07:45 syslog.6.gz
1281       16 -rw-r-----  1 syslog            adm        14173      2010-12-02 08:36 syslog.7.gz
  448       84 -rw-r--r--  1 root              root       85678      2011-01-17 18:47 udev
69867        4 drwxr-xr-x  2 root              root        4096      2009-07-20 13:53 unattended-upgrades
75566        0 -rw-r-----  1 syslog            adm            0      2011-02-06 20:20 user.log
76981 17222292 -rw-r-----  1 syslog            adm  17635594240      2011-02-06 06:01 user.log.1
4740        4 -rw-r-----  1 syslog            adm          347      2011-01-24 05:19 user.log.2.gz
75765        4 -rw-r-----  1 syslog            adm          849      2011-01-17 23:52 user.log.3.gz
4336        8 -rw-r-----  1 syslog            adm         7333      2010-12-05 07:38 user.log.4.gz
8360        0 -rw-rw-r--  1 root              utmp           0      2011-02-06 20:11 wtmp
8361        4 -rw-rw-r--  1 root              utmp         529      2011-02-06 05:56 wtmp.1.gz
1004       28 -rw-r--r--  1 root              root       26597      2011-01-17 23:47 Xorg.0.log
1108       28 -rw-r--r--  1 root              root       25954      2010-11-30 06:43 Xorg.0.log.old
0 Kudos
WoodyZ
Immortal
Immortal
Jump to solution

It looks like while I was writing my reply André had already replied and from your replies to him it shows, as he's already said, your out of disk space on the Guest and I agree that the /var/log/syslog.1 and /var/log/user.log.1 at 17G each something isn't right on the Guest.

0 Kudos
mehul89
Contributor
Contributor
Jump to solution

OK, So how I should resolve this thing, I am not finding anyway to get this thing done!!

0 Kudos
WoodyZ
Immortal
Immortal
Jump to solution

After reviewing the contents the two 17 GB /var/log/syslog.1 and /var/log/user.log.1 to see if there is an explanation or clue as to why they are the size they are as they shouldn't have gotten that big then I'd delete them.

0 Kudos
a_p_
Leadership
Leadership
Jump to solution

I agree with WoodyZ. Make sure you keep an eye on this folder to see whether the new logs grow too. If this is the case you definitely need to find out what's wrong.

André

0 Kudos
mehul89
Contributor
Contributor
Jump to solution

deleting them would not affect the system, right??

and I should delete them by usual way like rm -rf .....

0 Kudos
a_p_
Leadership
Leadership
Jump to solution

Since both are log files you can delete them using

rm /var/log/syslog.1
rm /var/log/user.log.1

André

WoodyZ
Immortal
Immortal
Jump to solution

deleting them would not affect the system, right??

Yes deleting them will affect the system, it will give you back 34 GB of wasted disk space. Smiley Happy

It's safe to delete them.

and I should delete them by usual way like rm -rf .....

Yes although you may have to do it as root or use sudo with the rm command.

0 Kudos
mehul89
Contributor
Contributor
Jump to solution

I used the following command

rm -rf /var/log/syslog.1
I had a prompt message as:
rm: cannot remove `/var/log/syslog.1': Permission denied

what would be the other way to delete the file.

0 Kudos
a_p_
Leadership
Leadership
Jump to solution

WoodyZ mentioned this in his latest post

Yes although you may have to do it as root or use sudo with the rm command.

André

mehul89
Contributor
Contributor
Jump to solution

yeah I got it, Thanks my problem has been solved thanks to both of you (Andre and Woodyz.)

Now I am able to save the files, Thanks a million!!! Smiley Happy

0 Kudos
WoodyZ
Immortal
Immortal
Jump to solution

what would be the other way to delete the file.

Did you read what I said "Yes although you may have to do it as root or use sudo with the rm command."?

0 Kudos