LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-01-2020, 11:06 AM   #1
SuzuBell
LQ Newbie
 
Registered: Dec 2013
Posts: 5

Rep: Reputation: Disabled
Unable to install packages due to storage issue (amount unsuccessful)


I am trying to install an R package on Ubuntu 16.04 R. I have been able to install several packages, but currently, in my R session, when I type:

Code:
install.packages("devtools")
I receive:

Code:
Fatal error: cannot create 'R_TempDir'
Upon issuing the
Code:
 tempdir()
command in R, I see that my temporary directory is located at
Code:
tmp/RtmpD54Esf
. I tried:
Code:
rm -r tmp/RtmpD54Esf
. But the problem remains.

I also tried
Code:
df -h
which results in:

Code:
Filesystem      Size  Used Avail Use% Mounted on
udev             32G     0   32G   0% /dev
tmpfs           6.3G  9.7M  6.3G   1% /run
/dev/sdc2        54G   52G  4.6M 100% /
tmpfs            32G  1.8M   32G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs            32G     0   32G   0% /sys/fs/cgroup
/dev/sda1       2.7T  1.7T  945G  64% /mnt/disk3
/dev/sdb1       2.7T   73M  2.6T   1% /mnt/disk4
/dev/sdf1       2.7T  2.2T  397G  85% /mnt/disk2
/dev/sde1       2.7T  1.9T  683G  74% /mnt/disk1
/dev/sdc1       511M  4.7M  507M   1% /boot/efi
tmpfs           6.3G   40K  6.3G   1% /run/user/1004
I am not sure if the problem is that
Code:
/dev/sdc2
is full. It appears to not be a directory. I tried
Code:
sudo umount -f /dev/sdc2
and
Code:
sudo umount -l /dev/sdc2
but still the problem persisted.

I have searched for several hours but most suggestions to fix this error revolve around erasing contents in the temp directory and unmounting the largest space from df -h. I feel I have tried both these suggestions and am still seeing the error. I do not have lots of Linux management experience and was hoping that by asking this question and following advice very carefully, I can identify if I may be misinterpreting the advice usually available. Thank you for your suggestions!
 
Old 03-01-2020, 11:20 AM   #2
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
I cannot well explain it.

What you see on /dev/sdc2 is the "Root" partition, i.e. the top level and starting point of the file-system tree. You are registered on LQ since 2013. This together with
Quote:
I am not sure if the problem is that
/dev/sdc2
is full. It appears to not be a directory. I tried
sudo umount -f /dev/sdc2
raises serious issues. Not only can I not really explain the origin of your troubles, as they are partly mysterious to me, I am not even sure that I want to.

Can you give a little evidence of your Linux knowledge, please:
  • What are the other partitions on /dev/sdc, if there are any.
  • Is there empty space left on the disk (sdc)?
  • Which is the structure of the root-directory ( '/' )?

Something is full and should not be.
The situation that you describe points at one specific directory, but in view of the other problem that you have, going there straight away to “make place” may not be the right strategy.

Last edited by Michael Uplawski; 03-01-2020 at 11:25 AM.
 
Old 03-01-2020, 03:15 PM   #3
bazio101
Member
 
Registered: Feb 2020
Location: Greece
Distribution: Slackware
Posts: 32

Rep: Reputation: 15
Unable to install packages due to storage issue (amount unsuccessful)

You can use "du" command to find the directory which holds most of these 52G. (most probably your home directory?).
Check its man page and try something like:
"du -ahx . | sort -rh | head -10"
from root "/" directory.
You can't fill 52G by just installing packages.
 
Old 03-04-2020, 01:34 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
It looks likely that sdc2 incudes /tmp and /var, so it may well be logs that are filling it up.
Easy check
Code:
cd /tmp
df -h .
cd /var
df -h .
 
1 members found this post helpful.
Old 03-04-2020, 06:47 AM   #5
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by chrism01 View Post
It looks likely that sdc2 incudes /tmp and /var, so it may well be logs that are filling it up.[/code]
I think it is /var/cache/apt (and archives)
But will it help to clean this up? 54G is monstrous. Something monstrous must happen to fill it up with logs and stale packages... It would help to comprehend the origin of this phenomenon.

Last edited by Michael Uplawski; 03-05-2020 at 02:19 PM. Reason: Kraut2English
 
Old 03-10-2020, 02:58 AM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Unfortunately it's not possible to give an exact answer without being on the system.

Basically you have to drill into each of the (biggest) dirs at each level and see what's there.
Code:
du -sh *
Only then can you research & decide what can be deleted & how (note that some files may need to be deleted via a specific tool, not just a simple rm ...).

Unless you're really sure, you should also backup stuff before deleting it...
 
Old 03-10-2020, 04:39 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Moved: This thread is more suitable in <Ubuntu> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply

Tags
full, storage, ubuntu 16.04, umount



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
[SOLVED] Mount / Access Android USB Mass Storage Unsuccessful from Mint 15 wingman358 Linux Mint 1 01-14-2014 10:02 PM
proftp-mysql issue : packages excluded due to repository priority protections kergad Linux - Server 2 05-22-2011 09:21 PM
Kernel Deleted due to Upgrade, Cannot Reinstall Kernel due to Dependency Issues Kenji Miyamoto Debian 2 02-17-2007 09:44 AM
Make most amount of Linux users in least amount of time studpenguin General 24 02-02-2007 03:42 PM
Error USB-HUC on booting due in mdk10 due to mx700 Boudewijn Mandriva 4 10-09-2004 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

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