root volume 100% of capacity
I was installing Netbeans on my PC using ‘apt-get install’ while my flashdrive was mounted. This action resulted in my root, /, directory increasing to 100% of capacity (from about 20%) and my media directory increasing to 97% of capacity. I believed that I have narrowed the issues down to
1) media is at capacity It appears that in a logical sense that the files in usb0 are duplicates of usb files, thus the 97% of capacity. However drilling into usb, there are no files; the files resides in usb0. There is a recycle bin there with what appears to be systems files, the names are long numerics. Is it safe to delete these files, I deleted a tracer log file and one other. 2) Root is at capacity In the root directory there was a NetBeansProjects directory which appears to be a full installation of netbeans. I did not believe this directory belonged in the root directory and I deleted it. No change in the issue 3) Issuing:: xxxxxxx@yyyyyyy:~$ sudo gedit /etc/default/jetty results in: (gedit:7677): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.C6Q9JX': No such file or directory or (gedit:4166): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.MAEHKX': No such file or directory I ran ‘apt-get clean’. Also, issuing root@yyyyyyyyyyy:/# ‘du -sch *’ results in the notices below for the directories concerned and these directories are not found on my PC. du: cannot access `proc/4511/task/4511/fd/4': No such file or directory du: cannot access `proc/4511/task/4511/fdinfo/4': No such file or directory du: cannot access `proc/4511/fd/4': No such file or directory du: cannot access `proc/4511/fdinfo/4': No such file or directory Is there some way these issues can be addressed. Thanks |
What does
Code:
df -hi |
df -hi shows:
root@yyyyyyyyyy:/# df -hi Filesystem Inodes IUsed IFree IUse% Mounted on rootfs 84K 7.8K 76K 10% / udev 484K 490 484K 1% /dev tmpfs 486K 545 485K 1% /run /dev/disk/by-uuid/d4b07556-658a-4b62-a895-d1cb8c70786d 84K 7.8K 76K 10% / tmpfs 486K 1 486K 1% /run/lock tmpfs 486K 8 486K 1% /run/shm /dev/sda10 13M 9.4K 13M 1% /home /dev/sda9 96K 37 96K 1% /tmp /dev/sda6 537K 157K 380K 30% /usr /dev/sda7 179K 8.7K 171K 5% /var /dev/sdc1 254M 113K 253M 1% /media/usb0 Thanks |
How about - and use tags when posting the output
Code:
df -hT |
root@yyyyyyyyy:/# df -hT
Filesystem Type Size Used Avail Use% Mounted on rootfs rootfs 323M 307M 0 100% / udev devtmpfs 10M 0 10M 0% /dev tmpfs tmpfs 389M 864K 388M 1% /run /dev/disk/by-uuid/d4b07556-658a-4b62-a895-d1cb8c70786d ext4 323M 307M 0 100% / tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs tmpfs 2.4G 232K 2.4G 1% /run/shm /dev/sda10 ext4 201G 816M 190G 1% /home /dev/sda9 ext4 368M 11M 339M 3% /tmp /dev/sda6 ext4 8.3G 4.3G 3.7G 54% /usr /dev/sda7 ext4 2.8G 437M 2.2G 17% /var /dev/sdb1 fuseblk 466G 213G 253G 46% /media/My Passport |
regarding the backup - ??
I have copied my work files and folders and I am prepared to start again from scratch if need be |
your root partition is only 307Mb! It's full! :( Note that it will also contain /etc, /bin, /opt, /sbin, /boot
Play Bonny! hattip: |
Here is what I see:
root@yyyyyyy:/# pwd / root@yyyyyyy:/# ls -a . dev lib mnt .pulse-cookie sbin tmp .. etc lib64 opt .rnd selinux usr bin home lost+found proc root srv var boot initrd.img media .pulse run sys vmlinuz root@yyyyyyy:~# pwd /root root@yyyyyyy:~# ls -a . .bash_history .config .gnome2 .mozilla .synaptic .. .bashrc .dbus .gnome2_private .netbeans .aptitude .cache .gconf .java .profile If I didn't say it before: Appreciate your help! |
WHY did you only give your root partition 323 MB?
Of course it's full, it's never not going to be full with any modern Linux distro...that's WAY too small. |
I believe that I followed Linux installation instructions. What can I do about it now?
|
Depending on your installed programs, customizations... Re-install whole system may be quicker
It is not clear what "/dev/disk/by-uuid/d4b07556-658a-4b62-a895-d1cb8c70786d" is... (sda[X]?) If you want to keep the system maybe use that /var partition for / and don't use separate var partition? |
Althought I thought my system was working pretty well; I will opt to reenstall it. Any suggestions of what size the root directory should be?
Thanks! |
I thought the material in the attached website, just Google it, was intriguing relative to resizing my root directory without destroying my work
|
You can also download gparted-live-cd & shrink /home from the left, move the rest of your partitions to the right, shrink, the extended partion from the left & grow the / partition to the right.
I usually make / atleast 2Gigs so that I can add a few things to /opt. To get 2gigs for your system I calculate 1024*2=2048-323=1725M, this is what I would shrink /home by. |
Thanks, I will try that before repartitioning my drive.
|
All times are GMT -5. The time now is 02:23 AM. |