Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Compilation - No Space Left On Device
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Jen0vaCore
n00b
n00b


Joined: 25 May 2016
Posts: 2

PostPosted: Wed May 25, 2016 12:57 pm    Post subject: Kernel Compilation - No Space Left On Device Reply with quote

Hey everyone. I was setting up a Virtual Machine using Oracle's Virtual Box to install Gentoo so I could try an installation first.

I've followed the Gentoo Handbook very closely and just used the commands that were recommended or typed without much manual configuration of the kernel and such.

The problem occurred when I left the kernel compile over night while I slept. I woke up to about 6 or 8 lines saying failing to install because no space was left on this device. None of my partitions could be found either and I couldn't mount or unmount anything on the hard drive.

I decided to restart and try again and found that after compiling the kernel, I only had 50MB of disk space left. The disk space I was using was 8GB, and curious as to what I may have done to cause Gentoo to need more than 8GB of disk space? Or could it be the fault of the virtual machine?

If any additional info is needed, I'll do my best in providing it.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed May 25, 2016 1:02 pm    Post subject: Reply with quote

Portage with distfiles can eat up 8 GB easy. I personally keep portage on NFS, common for all computers on LAN.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Wed May 25, 2016 1:16 pm    Post subject: Reply with quote

You can use "du" to find out how much space is used in different directories.

Code:

du -d1 -h /


will give you space used by directories in the root of your system. If you want to see two levels of directories, change -d1 to -d2 and so on.

The -h flag makes it more readable, but not very good for sorting. You can just leave it out if you want.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed May 25, 2016 2:01 pm    Post subject: Reply with quote

Jen0vaCore ...

I can't speak for others installs but my own comes in well under 8GB ...

df -h | egrep '^/dev/':
/dev/mapper/vg-root  9.8G  5.1G  4.3G  55% /
/dev/mapper/vg-var   5.8G  930M  4.6G  17% /var
/dev/mapper/vg-home  276G  228G   48G  83% /home

That would be approximately 6GB, and includes the full distfiles required to rebuild the entire system, two unpacked kernel sources (3.12.58 and 4.4.8), and a full Aboriginal Linux chroot (with sources).

best ... khay
Back to top
View user's profile Send private message
Jen0vaCore
n00b
n00b


Joined: 25 May 2016
Posts: 2

PostPosted: Wed May 25, 2016 2:50 pm    Post subject: Reply with quote

pilla wrote:
You can use "du" to find out how much space is used in different directories.

Code:

du -d1 -h /


will give you space used by directories in the root of your system. If you want to see two levels of directories, change -d1 to -d2 and so on.

The -h flag makes it more readable, but not very good for sorting. You can just leave it out if you want.


Judging from the results du -d1 -h, it seems the root partition was completely full, which in total was 7.5GB.

Do the USE flags for the make.conf have anything to do with the size of the portage build process? I left those flags on default, which is pretty much all of them.

khayyam wrote:
Jen0vaCore ...

I can't speak for others installs but my own comes in well under 8GB ...

df -h | egrep '^/dev/':
/dev/mapper/vg-root  9.8G  5.1G  4.3G  55% /
/dev/mapper/vg-var   5.8G  930M  4.6G  17% /var
/dev/mapper/vg-home  276G  228G   48G  83% /home

That would be approximately 6GB, and includes the full distfiles required to rebuild the entire system, two unpacked kernel sources (3.12.58 and 4.4.8), and a full Aboriginal Linux chroot (with sources).

best ... khay


How odd.. my entire 7.5GB partition was full after that, but I'm guessing it was from building portage. Did you use a minimal amount of USE flags in make.conf or did you use the default?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Wed May 25, 2016 5:11 pm    Post subject: Reply with quote

Jen0vaCore wrote:
How odd.. my entire 7.5GB partition was full after that, but I'm guessing it was from building portage. Did you use a minimal amount of USE flags in make.conf or did you use the default?

Jen0vaCore ... I don't use a DE, and so the default 13.0 profile is in use, as for useflags, these are fairly minimal ...

eix --print USE:
acpi alsa caps maildir truetype vim-syntax zsh-completion -bash-completion -cups -dbus -doc -examples -gtk3 -gpm -gstreamer -introspection -ipv6 -ldap -libav -nls -startup-notification -systemd -udev

... though most useflags are effected via package.use.

If you are attempting to build a DE such as KDE, Gnome, or XFCE, then I would expect some additional space requirements, but my /usr/src (where distfiles, kernel sources, etc, are located) is 3.7GB of the above 6GB so I wouldn't expect you are using 7.5GB without your having many more packages installed than I have.

best ... khay
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Wed May 25, 2016 5:24 pm    Post subject: Reply with quote

My OpenBox desktop uses under 4 GB with Libreoffice, Chromium, Firefox, MythTV, a few games and other software. This is without /usr/src and /usr/portage. Indeed, /home is on a different hard drive altogether.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Fri May 27, 2016 3:43 pm    Post subject: Reply with quote

8GB is a bit tight, but should see you through a basic install. Check for
free space with "df", and for free inodes with "df -i".

I generally allow 16 GB for /, and 16 GB for a (separate) /usr/portage.

Will
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54296
Location: 56N 3W

PostPosted: Fri May 27, 2016 4:02 pm    Post subject: Reply with quote

Jen0vaCore,

I suspect you are out of i-nodes rather that space.
Code:
df -i
will show your i-node use.
Each file or directory needs one or more i-nodes and portage contain a lot of very small files.
Code:
emerge --sync
tells
Code:
Number of files: 209,162 (reg: 181,787, dir: 27,375)

So the tree needs 209,162 i-nodes. Even though the files are small, they will each be allocated 4kb, as that's the default block size on an 8G filesystem.
Looking at my portage
Code:
Filesystem                1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg-portage      4092706    531614   3372523  14% /usr/portage
Its just over 0.5G but I cheated, I formatted that partition with a 1kb block size to avoid the wasted space.
You will need about 2Gb on your system for the portage tree.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum