Ubuntu 10.10 on VDS - /dev/sda1 full?

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Arturion
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Mar 21, 2011 7:39 am

Ubuntu 10.10 on VDS - /dev/sda1 full?

Post by Arturion »

I'm currently running an Ubuntu 10.10 installation on a virtual dedicated server. I recently attempted to install Subversion, and it's giving (multiple repetitions of) the following error:

Code: Select all

update-initramfs: Generating /boot/initrd.img-2.6.35-25-server

gzip: stdout: No space left on device
cpio: write error: Broken pipe
E: mkinitramfs failure cpio 1 gzip 1
update-initramfs: failed for /boot/initrd.img-2.6.35-25-server
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
I'm no linux guru, but it looks like this is probably caused because my boot partition is full:

Code: Select all

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             197G   14G  174G   8% /
none                  997M  172K  997M   1% /dev
none                 1004M   12K 1004M   1% /dev/shm
none                 1004M   56K 1004M   1% /var/run
none                 1004M     0 1004M   0% /var/lock
none                  197G   14G  174G   8% /var/lib/ureadahead/debugfs
/dev/sda1              89M   88M     0 100% /boot
...and here's the contents of /boot, sorted by size:

Code: Select all

0	/boot/grub/handler.lst
1	/boot/grub/boot.img
1	/boot/grub/cdboot.img
1	/boot/grub/crypto.lst
1	/boot/grub/diskboot.img
1	/boot/grub/fs.lst
1	/boot/grub/grubenv
1	/boot/grub/lnxboot.img
1	/boot/grub/locale/en_AU.mo
1	/boot/grub/locale/en_CA.mo
1	/boot/grub/partmap.lst
1	/boot/grub/parttool.lst
1	/boot/grub/pxeboot.img
1	/boot/grub/setjmp.mod
1	/boot/grub/terminal.lst
1	/boot/grub/video.lst
2	/boot/grub/aout.mod
2	/boot/grub/blocklist.mod
2	/boot/grub/bufio.mod
2	/boot/grub/cmostest.mod
2	/boot/grub/command.lst
2	/boot/grub/configfile.mod
2	/boot/grub/cpuid.mod
2	/boot/grub/crc.mod
2	/boot/grub/datehook.mod
2	/boot/grub/datetime.mod
2	/boot/grub/dm_nv.mod
2	/boot/grub/echo.mod
2	/boot/grub/example_functional_test.mod
2	/boot/grub/gcry_arcfour.mod
2	/boot/grub/halt.mod
2	/boot/grub/hello.mod
2	/boot/grub/keystatus.mod
2	/boot/grub/lsmmap.mod
2	/boot/grub/part_acorn.mod
2	/boot/grub/part_amiga.mod
2	/boot/grub/part_bsd.mod
2	/boot/grub/part_sun.mod
2	/boot/grub/part_sunpc.mod
2	/boot/grub/password.mod
2	/boot/grub/pbkdf2.mod
2	/boot/grub/pci.mod
2	/boot/grub/pxecmd.mod
2	/boot/grub/raid5rec.mod
2	/boot/grub/read.mod
2	/boot/grub/reboot.mod
2	/boot/grub/trig.mod
2	/boot/grub/true.mod
2	/boot/grub/xnu_uuid.mod
2	/boot/vmcoreinfo-2.6.35-22-server
2	/boot/vmcoreinfo-2.6.35-23-server
2	/boot/vmcoreinfo-2.6.35-24-server
2	/boot/vmcoreinfo-2.6.35-25-server
2	/boot/vmcoreinfo-2.6.35-27-server
2	/boot/vmcoreinfo-2.6.35-28-server
3	/boot/grub/ata_pthru.mod
3	/boot/grub/at_keyboard.mod
3	/boot/grub/bitmap.mod
3	/boot/grub/bitmap_scale.mod
3	/boot/grub/boot.mod
3	/boot/grub/cat.mod
3	/boot/grub/chain.mod
3	/boot/grub/cmp.mod
3	/boot/grub/cpio.mod
3	/boot/grub/date.mod
3	/boot/grub/fshelp.mod
3	/boot/grub/functional_test.mod
3	/boot/grub/gcry_crc.mod
3	/boot/grub/gcry_rfc2268.mod
3	/boot/grub/help.mod
3	/boot/grub/iorw.mod
3	/boot/grub/locale/en_GB.mo
3	/boot/grub/loopback.mod
3	/boot/grub/mdraid.mod
3	/boot/grub/memdisk.mod
3	/boot/grub/memrw.mod
3	/boot/grub/moddep.lst
3	/boot/grub/msdospart.mod
3	/boot/grub/part_apple.mod
3	/boot/grub/part_gpt.mod
3	/boot/grub/part_msdos.mod
3	/boot/grub/password_pbkdf2.mod
3	/boot/grub/play.mod
3	/boot/grub/probe.mod
3	/boot/grub/raid6rec.mod
3	/boot/grub/search_fs_file.mod
3	/boot/grub/search_fs_uuid.mod
3	/boot/grub/search_label.mod
3	/boot/grub/search.mod
3	/boot/grub/sleep.mod
3	/boot/grub/tar.mod
3	/boot/grub/tga.mod
3	/boot/grub/vbeinfo.mod
3	/boot/grub/vbetest.mod
3	/boot/grub/vga_text.mod
4	/boot/grub/cs5536.mod
4	/boot/grub/extcmd.mod
4	/boot/grub/gcry_md4.mod
4	/boot/grub/gcry_md5.mod
4	/boot/grub/gcry_sha256.mod
4	/boot/grub/gettext.mod
4	/boot/grub/gptsync.mod
4	/boot/grub/hexdump.mod
4	/boot/grub/ntfscomp.mod
4	/boot/grub/terminal.mod
4	/boot/grub/usb_keyboard.mod
4	/boot/grub/usbtest.mod
4	/boot/grub/videotest.mod
5	/boot/grub/affs.mod
5	/boot/grub/afs_be.mod
5	/boot/grub/afs.mod
5	/boot/grub/befs_be.mod
5	/boot/grub/befs.mod
5	/boot/grub/biosdisk.mod
5	/boot/grub/crypto.mod
5	/boot/grub/elf.mod
5	/boot/grub/hashsum.mod
5	/boot/grub/linux16.mod
5	/boot/grub/ls.mod
5	/boot/grub/lspci.mod
5	/boot/grub/minicmd.mod
5	/boot/grub/minix.mod
5	/boot/grub/parttool.mod
5	/boot/grub/relocator.mod
5	/boot/grub/scsi.mod
5	/boot/grub/serial.mod
5	/boot/grub/sfs.mod
5	/boot/grub/ufs1.mod
5	/boot/grub/ufs2.mod
5	/boot/grub/vga.mod
6	/boot/grub/drivemap.mod
6	/boot/grub/ext2.mod
6	/boot/grub/fat.mod
6	/boot/grub/gcry_sha512.mod
6	/boot/grub/grub.cfg
6	/boot/grub/hfs.mod
6	/boot/grub/hfsplus.mod
6	/boot/grub/jfs.mod
6	/boot/grub/jpeg.mod
6	/boot/grub/loadenv.mod
6	/boot/grub/locale
6	/boot/grub/lvm.mod
6	/boot/grub/pxe.mod
6	/boot/grub/setpci.mod
6	/boot/grub/test.mod
6	/boot/grub/udf.mod
6	/boot/grub/uhci.mod
6	/boot/grub/usbms.mod
6	/boot/grub/video_bochs.mod
6	/boot/grub/video_cirrus.mod
6	/boot/grub/video.mod
6	/boot/grub/xfs.mod
7	/boot/grub/efiemu32.o
7	/boot/grub/iso9660.mod
7	/boot/grub/nilfs2.mod
7	/boot/grub/png.mod
7	/boot/grub/raid.mod
7	/boot/grub/vbe.mod
7	/boot/grub/zfsinfo.mod
8	/boot/grub/ata.mod
8	/boot/grub/gcry_blowfish.mod
8	/boot/grub/gzio.mod
8	/boot/grub/hdparm.mod
8	/boot/grub/usb.mod
9	/boot/grub/915resolution.mod
9	/boot/grub/gcry_rmd160.mod
9	/boot/grub/gcry_sha1.mod
9	/boot/grub/linux.mod
9	/boot/grub/mmap.mod
10	/boot/grub/grldr.img
10	/boot/grub/ntfs.mod
10	/boot/grub/reiserfs.mod
11	/boot/grub/acpi.mod
11	/boot/grub/efiemu64.o
11	/boot/grub/multiboot.mod
11	/boot/grub/ohci.mod
12	/boot/grub/font.mod
12	/boot/grub/gcry_tiger.mod
12	/boot/grub/gfxterm.mod
12	/boot/grub/multiboot2.mod
12	/boot/lost+found
14	/boot/grub/terminfo.mod
18	/boot/grub/gcry_seed.mod
19	/boot/grub/gcry_cast5.mod
19	/boot/grub/gcry_serpent.mod
20	/boot/grub/gcry_des.mod
20	/boot/grub/gcry_rijndael.mod
20	/boot/grub/video_fb.mod
21	/boot/grub/bsd.mod
25	/boot/grub/core.img
25	/boot/grub/efiemu.mod
25	/boot/grub/zfs.mod
26	/boot/grub/gcry_whirlpool.mod
30	/boot/grub/kernel.img
32	/boot/grub/xnu.mod
36	/boot/grub/gcry_camellia.mod
39	/boot/grub/gfxmenu.mod
39	/boot/grub/regexp.mod
40	/boot/grub/gcry_twofish.mod
98	/boot/grub/normal.mod
121	/boot/config-2.6.35-22-server
121	/boot/config-2.6.35-23-server
121	/boot/config-2.6.35-24-server
121	/boot/config-2.6.35-25-server
121	/boot/config-2.6.35-27-server
121	/boot/config-2.6.35-28-server
163	/boot/memtest86+.bin
165	/boot/memtest86+_multiboot.bin
689	/boot/abi-2.6.35-22-server
689	/boot/abi-2.6.35-23-server
689	/boot/abi-2.6.35-24-server
689	/boot/abi-2.6.35-25-server
689	/boot/abi-2.6.35-27-server
689	/boot/abi-2.6.35-28-server
1316	/boot/grub
2320	/boot/System.map-2.6.35-22-server
2321	/boot/System.map-2.6.35-23-server
2321	/boot/System.map-2.6.35-24-server
2321	/boot/System.map-2.6.35-25-server
2322	/boot/System.map-2.6.35-27-server
2322	/boot/System.map-2.6.35-28-server
4304	/boot/vmlinuz-2.6.35-22-server
4306	/boot/vmlinuz-2.6.35-23-server
4306	/boot/vmlinuz-2.6.35-24-server
4308	/boot/vmlinuz-2.6.35-25-server
4314	/boot/vmlinuz-2.6.35-27-server
4314	/boot/vmlinuz-2.6.35-28-server
10701	/boot/initrd.img-2.6.35-24-server
10701	/boot/initrd.img-2.6.35-25-server
10702	/boot/initrd.img-2.6.35-22-server
10703	/boot/initrd.img-2.6.35-23-server
89116	/boot
What would be the best way to resolve this problem?

Thanks in advance.
User avatar
Edge100x
Founder
Founder
Posts: 13154
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Ubuntu 10.10 on VDS - /dev/sda1 full?

Post by Edge100x »

The best way to resolve this would be to delete the old kernels that aren't being used, to free up space.

For instance, if you're booted into -28 successfully right now, use:

Code: Select all

rm /boot/*2.6.35-22* /boot/*2.6.35-23* /boot/*2.6.35-24* /boot/*2.6.35-25* /boot/*2.6.35-26*/boot/*2.6.35-27*
Arturion
New to forums
New to forums
Posts: 2
Joined: Mon Mar 21, 2011 7:39 am

Re: Ubuntu 10.10 on VDS - /dev/sda1 full?

Post by Arturion »

Thank you for the prompt reply. That worked.
User avatar
Edge100x
Founder
Founder
Posts: 13154
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Ubuntu 10.10 on VDS - /dev/sda1 full?

Post by Edge100x »

:)
barncow
New to forums
New to forums
Posts: 2
Joined: Wed Jun 29, 2011 6:47 pm

Re: Ubuntu 10.10 on VDS - /dev/sda1 full?

Post by barncow »

I'm having a similar issue, just wanted to clarify before I remove something I will regret later. :D

I'm running a 1Gig Ubuntu 10.10 VPS.
Here is "df -h":

Code: Select all

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              99G   13G   81G  14% /
none                  492M  172K  492M   1% /dev
none                  499M     0  499M   0% /dev/shm
none                  499M   56K  499M   1% /var/run
none                  499M     0  499M   0% /var/lock
/dev/sda1              89M   80M  3.6M  96% /boot
/boot is almost full.

"ls -al /boot":

Code: Select all

total 80394
drwxr-xr-x  4 root root     2048 2011-06-28 06:47 .
drwxr-xr-x 22 root root     4096 2011-03-18 06:57 ..
-rw-r--r--  1 root root   700570 2010-10-16 20:11 abi-2.6.35-22-server
-rw-r--r--  1 root root   700694 2011-01-21 16:58 abi-2.6.35-25-server
-rw-r--r--  1 root root   700901 2011-02-22 19:41 abi-2.6.35-27-server
-rw-r--r--  1 root root   700901 2011-03-18 14:50 abi-2.6.35-28-server
-rw-r--r--  1 root root   701070 2011-06-07 19:10 abi-2.6.35-30-server
-rw-r--r--  1 root root   122712 2010-10-16 20:11 config-2.6.35-22-server
-rw-r--r--  1 root root   122735 2011-01-21 16:58 config-2.6.35-25-server
-rw-r--r--  1 root root   122736 2011-02-22 19:41 config-2.6.35-27-server
-rw-r--r--  1 root root   122725 2011-03-18 14:50 config-2.6.35-28-server
-rw-r--r--  1 root root   122765 2011-06-07 19:10 config-2.6.35-30-server
drwxr-xr-x  3 root root     4096 2011-04-15 06:33 grub
-rw-r--r--  1 root root 10914437 2010-10-23 01:16 initrd.img-2.6.35-22-server
-rw-r--r--  1 root root 10911772 2011-03-01 06:37 initrd.img-2.6.35-25-server
-rw-r--r--  1 root root 10921139 2011-03-02 06:55 initrd.img-2.6.35-27-server
-rw-r--r--  1 root root 10921885 2011-04-15 06:33 initrd.img-2.6.35-28-server
drwxr-xr-x  2 root root    12288 2010-10-23 01:04 lost+found
-rw-r--r--  1 root root   165084 2010-09-24 13:16 memtest86+.bin
-rw-r--r--  1 root root   167264 2010-09-24 13:16 memtest86+_multiboot.bin
-rw-r--r--  1 root root  2365429 2010-10-16 20:11 System.map-2.6.35-22-server
-rw-r--r--  1 root root  2366067 2011-01-21 16:58 System.map-2.6.35-25-server
-rw-r--r--  1 root root  2367030 2011-02-22 19:41 System.map-2.6.35-27-server
-rw-r--r--  1 root root  2367266 2011-03-18 14:50 System.map-2.6.35-28-server
-rw-r--r--  1 root root  2368025 2011-06-07 19:10 System.map-2.6.35-30-server
-rw-r--r--  1 root root     1335 2010-10-16 20:14 vmcoreinfo-2.6.35-22-server
-rw-r--r--  1 root root     1335 2011-01-21 17:05 vmcoreinfo-2.6.35-25-server
-rw-r--r--  1 root root     1335 2011-02-22 19:47 vmcoreinfo-2.6.35-27-server
-rw-r--r--  1 root root     1335 2011-03-18 14:52 vmcoreinfo-2.6.35-28-server
-rw-r--r--  1 root root     1335 2011-06-07 19:16 vmcoreinfo-2.6.35-30-server
-rw-r--r--  1 root root  4388496 2010-10-16 20:11 vmlinuz-2.6.35-22-server
-rw-r--r--  1 root root  4392720 2011-01-21 16:58 vmlinuz-2.6.35-25-server
-rw-r--r--  1 root root  4398224 2011-02-22 19:41 vmlinuz-2.6.35-27-server
-rw-r--r--  1 root root  4397296 2011-03-18 14:50 vmlinuz-2.6.35-28-server
-rw-r--r--  1 root root  4401712 2011-06-07 19:10 vmlinuz-2.6.35-30-server
On a fresh reboot, this is "uname -a":

Code: Select all

Linux barncowvps 2.6.35-28-server #50-Ubuntu SMP Fri Mar 18 18:59:25 UTC 2011 x86_64 GNU/Linux
So I have -30 files, though I seem to be running -28. Am I safe removing 27, 25, 22 and keeping 30 if I need it in the future?
User avatar
Edge100x
Founder
Founder
Posts: 13154
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Ubuntu 10.10 on VDS - /dev/sda1 full?

Post by Edge100x »

So I have -30 files, though I seem to be running -28. Am I safe removing 27, 25, 22 and keeping 30 if I need it in the future?
Nod, that is exactly what I would recommend doing.
barncow
New to forums
New to forums
Posts: 2
Joined: Wed Jun 29, 2011 6:47 pm

Re: Ubuntu 10.10 on VDS - /dev/sda1 full?

Post by barncow »

Edge100x wrote:
So I have -30 files, though I seem to be running -28. Am I safe removing 27, 25, 22 and keeping 30 if I need it in the future?
Nod, that is exactly what I would recommend doing.
Thanks, I did that and everything seems to be working.
Post Reply