PDA

View Full Version : [SOLVED] 12.04 Upgrade failed, "no space on / " .../dev/md2 @ 100%



mango.muncher
May 22nd, 2012, 12:52 PM
Hello,
Stuck trying to upgrade. Gui and Terminal state "no space on /"
I am running a raid array on 1TB harddrives. I have boot partition of 9GB which was full untill I deleted old kernals and header images. Now only has 1.4GB spare which is not allowing upgrade. Not sure why boot partition has grown so big, been trying to access it but cant get into it.

Here are some dumps.

df -h

andrew@ClawHammer:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md2 9.2G 7.4G 1.4G 85% /
udev 997M 8.0K 997M 1% /dev
tmpfs 403M 1.2M 402M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 1007M 144K 1007M 1% /run/shm
/dev/md3 904G 268G 590G 32% /home
/home/andrew/.Private
904G 268G 590G 32% /home/andrew

fdisk -l
Note the 250GB HD is for backup etc.

Disk /dev/sda: 250.1 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488395055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xde5b3e0f

Device Boot Start End Blocks Id System
/dev/sda1 * 147492765 488392064 170449650 7 HPFS/NTFS/exFAT
/dev/sda2 2046 147490815 73744385 5 Extended
/dev/sda5 2048 143302655 71650304 83 Linux
/dev/sda6 143304704 147490815 2093056 82 Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdb: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953523055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005fa20

Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 19531775 9764864 fd Linux raid autodetect
/dev/sdb2 19533822 1953521663 966993921 5 Extended
/dev/sdb5 19533824 27910143 4188160 fd Linux raid autodetect
/dev/sdb6 27912192 1953521663 962804736 fd Linux raid autodetect

Disk /dev/md3: 985.9 GB, 985910861824 bytes
2 heads, 4 sectors/track, 240700894 cylinders, total 1925607152 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/md3 doesn't contain a valid partition table

Disk /dev/md1: 4287 MB, 4287614976 bytes
2 heads, 4 sectors/track, 1046781 cylinders, total 8374248 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/md2: 9998 MB, 9998098432 bytes
2 heads, 4 sectors/track, 2440942 cylinders, total 19527536 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00027648

Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 19531775 9764864 fd Linux raid autodetect
/dev/sdc2 19533822 1953523711 966994945 5 Extended
/dev/sdc5 19533824 27910143 4188160 fd Linux raid autodetect
/dev/sdc6 27912192 1953523711 962805760 fd Linux raid autodetect

Disk /dev/mapper/cryptswap1: 4287 MB, 4287614976 bytes
255 heads, 63 sectors/track, 521 cylinders, total 8374248 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x89366d23

Disk /dev/mapper/cryptswap1 doesn't contain a valid partition table


Any help appreciated.
Thanks.

darkod
May 22nd, 2012, 01:11 PM
Note that that's not your boot partition, it's your root partition.

In most cases all programs would go there, and often some data files depending. Sometimes it goes to your Home, you are OK with space there, but your root is almost full. That message is correct.

Can you still boot your system, right?

You can google around for tools that tell you which folders have biggest size. That will give you a hint. I'm not sure if there was a program like that included in ubuntu by default or you need to install one.

darkod
May 22nd, 2012, 01:16 PM
https://help.ubuntu.com/community/Baobab

http://gdmap.sourceforge.net/

mango.muncher
May 22nd, 2012, 01:40 PM
Hi Darkod,
Thanks for reply.
Disk Usage Analyzer comes packaged with Ubuntu and I have been using to try to see the file growth problem.

Gparted lists /dev/sdb1 and /dev/sdc1 as flagged as boot,raid partitions of 9.3GB. I think that the /dev/md2 is the raid tag for these two.

These do not show on Disk Unity, I am not sure how to access them to see potential flies overloading it.

darkod
May 22nd, 2012, 02:19 PM
/dev/md2 is your / partition (root).

So, simply scan / (or Filesystem) for folder sizes.

You will not see it as /dev/md2. It's the /.

mango.muncher
May 22nd, 2012, 02:39 PM
Ok, Thanks Darko,
Checking system folders under / (using Disk Usage Analyser) I note that "usr" folder is up to 6.4GB, under this "usr" folder the "share" and "lib" are both siting around 2.5GB each. Browsing through these the system files seem fairly standard.

So it looks like I made my root partition to small for the system files when I setup this rig.
Reckon I will have to copy /home and reinstall/upgrade.

Cheers.

darkod
May 22nd, 2012, 02:48 PM
Programs usually go in /usr.

It depends what you have, in lots of cases 9GB would be enough, but if using much software etc, better go with 15-20GB, even 25GB if you have spare space on the system.

postcd
April 23rd, 2013, 09:50 AM
Thread was solved, but for those who was not successfull, this command helped me:
du -a / | sort -n -r | head -n 15
It shows 15 largest files in / recursivelly and sort according to size. Source of this command here (http://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/).
Thanks to this, you can discover largest files.
This one is also good, shows largest directories:
find . -type d -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
source of this command: here (http://superuser.com/questions/9847/linux-utility-for-finding-the-largest-files-directories)

df -h
will tell you partitions space