apt-get -f install fails due to "No space left on device"
While trying to run sudo apt-get -f install to install gettext, I got the following error message:
Code:
dpkg: error processing /var/cache/apt/archives/gettext_0.16.1-1_i386.deb (--unpack): Code:
Filesystem Size Used Avail Use% Mounted on If this is the problem--my /usr directory has somehow grown to 1.7 GB--is there a way to lower disk usage in that area? I am currently running Debian Etch 2.6.18-6-686. Any help would be appreciated...thanks! |
well it has to be there if there's nothing else listed as a mount point for it. with a 680GB /home I have to say that's fairly odd space planning. /usr contains a very significant majority of the installed system, 1.7gb seems a small to medium sized amount of space to be using. you uninstall software you don't wish to use, i tend to run "du -h /usr --max-depth=1" to list the usage of each next directory, go into any unusually high users, go into that directory and repeat until i account for the space. but it's the partition size that's wrong, not the files that are trying to use it.
|
Hi -
1. Your problem is that you've max'ed out your "/dev/md0", your root ("/") filesystem. 2. No, "/usr" isn't necessarily part of the root filesystem. In your case, however, it is. Because that's apparently how it was configured at install time. I can see that because your "df -h" doesn't show "/usr" on its own partition, so it *must* be part of the root partition. 3. To change it, you'd need to: a) Delete your current "/usr" (simply renaming it would work) b) Create a new partition for a new "/usr" c) Mount it d) Copy your data 'Hope that helps .. PSM PS: Acid_Kewpie and I apparently answered at exactly the same time. If you happen to have more physical space on your /dev/md0 device, maybe you can just increase the partition size. You run the risk, unfortunately, of losing everything. |
Thanks to the both of you for your quick replies. I think what I'm going to do is just reformat the hard drives and reinstall Linux. I only installed about a week ago so there's no precious data on the machine yet, and I'm running a combination of RAID 1 and RAID 5 on the same discs, so it's easier just to reinstall.
Thanks again! |
Whilst I'd try to say otherwise, that probably is the best option all round. If you can afford it i'd suggest a 4gb / and a 16gb /usr or some such.
|
Apt-Get complains about no space left on device that has PLENTY
Hello, all
I have a raspberry Pi with a sick samba install. I am trying to set up the packages, but each time I get: sudo apt-get -f install > Setting up samba-common (2:3.6.6-6+deb7u2) ... > sed: couldn't flush /var/run/samba/upgrades/seddUSPtR: No space left on device > dpkg: error processing samba-common (--configure): > subprocess installed post-installation script returned error exit status 4 What's especially frustrating, is that when I run df -h, I get: > /dev/mmcblk0p2 7.2G 1.6G 5.3G 23% / > /dev/mmcblk0p1 69M 8.2M 61M 12% /boot /dev/mm... is a SD card, which isn't the fastest way to run the Pi, but it is supported + less hassle than previous attempts at putting / on a USB drive. ls -la /var/run/samba/upgrades gets me: drwxrwxrwx 2 root root 80 Jan 2 15:00 . drwxr-xr-x 4 root root 340 Jan 2 14:59 .. ---------- 1 root root 0 Jan 2 15:00 seddUSPtR -rw-rw-rw- 1 root root 12171 Jan 2 15:00 smb.conf dmesg had nothing helpful in it. I can "sudo touch /var/run/samba/upgrades/file", and it works. Can anyone help me out? And why is seddUSPtR so ominously without flags? |
The "No space left on device" message can also mean that the filesystem ran out of inodes. What is the output of
Code:
df -i |
Lost flags? My guess is filesystem corruption.
Maybe you should run fsck on your Pi? And welcome to LQ! |
Quote:
Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mmcblk0p2 482384 56601 425783 12% / /dev/mmcblk0p1 0 0 0 - /boot It doesn't look like I'm out of inodes.. |
Please post the output of
Code:
cat /proc/mounts |
All times are GMT -5. The time now is 12:01 PM. |