Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Raspberry Pi - Not enough inode blocks (kinda solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1974

PostPosted: Thu Nov 01, 2012 12:24 am    Post subject: Raspberry Pi - Not enough inode blocks (kinda solved) Reply with quote

During the installation, a step says to check to make sure there is enough inode blocks on the card.

Running the command "df -ih", this is what my card has available before extracting a portage snapshot:

Code:
Filesystem             Inodes IUsed IFree IUse% Mounted on
/dev/sdc3                104K   32K   72K   31% /mnt/gentoo


According to the installation doc, it will require 154K.

I tried extracting anyway, and I get a bunch of "not enough space left on device" errors.

Does this mean the filesystem isn't suited for instllation (ext4)? Or do I need a bigger card? What can I do?


Last edited by Bigun on Thu Nov 01, 2012 1:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4941

PostPosted: Thu Nov 01, 2012 7:21 am    Post subject: Re: Raspberry Pi - Not enough inode blocks Reply with quote

Bigun wrote:
During the installation, a step says to check to make sure there is enough inode blocks on the card.

Running the command "df -ih", this is what my card has available before extracting a portage snapshot:

Code:
Filesystem             Inodes IUsed IFree IUse% Mounted on
/dev/sdc3                104K   32K   72K   31% /mnt/gentoo


According to the installation doc, it will require 154K.

I tried extracting anyway, and I get a bunch of "not enough space left on device" errors.

Does this mean the filesystem isn't suited for instllation (ext4)? Or do I need a bigger card? What can I do?


nope, you need to create the fs with more inodes, e.g. each file is sits in an inode, for example for 154K fs with 1K size per inode, you'll be able to get at most 154 files in.
see the -N switch here: http://linux.die.net/man/8/mke2fs
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1974

PostPosted: Thu Nov 01, 2012 9:24 am    Post subject: Reply with quote

It must have been set really high (bytes/inode), I reset the filesystem with 1024b/inode and I came out with 1.7M inodes. Is there a downside to this?

Last edited by Bigun on Thu Nov 01, 2012 9:49 am; edited 2 times in total
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4941

PostPosted: Thu Nov 01, 2012 9:45 am    Post subject: Reply with quote

Bigun wrote:
It must have been set really high (bytes/inode), I reset the filesystem with 1024b/inode and I came out with 1.7M inodes. Is there a downside to this?


for big files, yes, you use more inodes (my original statement wasn't quite right, in small files, one file takes at least one inode (depending on it's size)) you will consume more inodes per file.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
Bigun
Veteran
Veteran


Joined: 21 Sep 2003
Posts: 1974

PostPosted: Thu Nov 01, 2012 9:50 am    Post subject: Reply with quote

Ahh.... that's the downside:

Code:
/dev/sdc3               1.3G  1.3G     0 100% /mnt/gentoo


That's just the stage 3 tarball and snapshot extracted.

So basically find a respectible size to use then? Suggestions for a 1.6 Gb partition?
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 896

PostPosted: Thu Nov 01, 2012 6:19 pm    Post subject: Reply with quote

It is a one to one relationship between inodes and files.

When the wiki indicates you need about 154K inodes for /usr/portage, you can check that:
Code:
$ pwd
/usr/portage
find . -print | grep -v distfiles | wc -l
159845

Excluding distfiles it is about 0.8Gb
Code:
$ du -ks .
2600324 .
$ du -ks distfiles
1802828 distfiles

The example in the installation doc is an 16GB card with about 15.5 for files. The "Raspberry Pi Quick Install Guide" on the wiki shows an 8GB card with about 7.5 for files.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Nov 01, 2012 9:14 pm    Post subject: Reply with quote

Bigun,

There is no point in allocating more inodes than there is 1k. blocks in the filesystem.

All linux filesystems allocate space in 1k blocks (or bigger blocks), so thats the smallest space you can allocate to a file.
If you fill the volume with 1k (or smaller) files, the number of files will equal the number of inodes required.

ext4 typically allocates 4K blocks to files unless you format the volume with a 1k or 2k block size.
_________________
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 Other Things 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