Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
inode Status über busybox?[solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
tazinblack
l33t
l33t


Joined: 23 Jan 2005
Posts: 818
Location: Baden / Germany

PostPosted: Tue Feb 22, 2011 1:36 pm    Post subject: inode Status über busybox?[solved] Reply with quote

Hallo zusammen,

ich hab hier eine QNAP NAS auf der ich viele kleine Dateien in ein ext3 Dateisystem ablege.
Jetzt würde mich mal interessieren wie ich den Status der inodes ermitteln kann. Ich möchte schauen wie viele Dateien ich noch anlegen kann, bis ich da out-of-inodes laufe.
Normalerweise würde ich einfach ein
Code:
df -i
machen, aber das gibts nicht, da hier alles busybox ist.

Hat da jemand ne Idee? Kann ich sowas nicht in /proc nachschauen?
_________________
Gruß
tazinblack
_______________________________________________________
Laptop: Son olles Ding, steht Samsung drauf. Desktop: Ein altes Gehäuse aus der Pentium 2 Zeit, Inhalt fragwürdig. Sound: Manchmal macht der CPU Lüfter Krach


Last edited by tazinblack on Wed Mar 02, 2011 4:31 pm; edited 1 time in total
Back to top
View user's profile Send private message
Josef.95
Veteran
Veteran


Joined: 03 Sep 2007
Posts: 1752
Location: Germany

PostPosted: Tue Feb 22, 2011 2:04 pm    Post subject: Reply with quote

Nur ein Schnellschuss..

Eventuell geht, bzw reicht dir sowas wie
Code:
# tune2fs -l /dev/sdaX | grep -e "Inode count:" -e "Free inodes:"
(ist ein kleines L)
?
Back to top
View user's profile Send private message
tazinblack
l33t
l33t


Joined: 23 Jan 2005
Posts: 818
Location: Baden / Germany

PostPosted: Tue Feb 22, 2011 2:53 pm    Post subject: Reply with quote

Das mit tune2fs hab ich auch schon versucht.
Es zeigt mir

Code:
...
Inode count:              426647552
...
Free inodes:              415823558


Da werde ich aber nicht so ganz schlau draus.
Wenn ich im Dateisystemroot das mache
Code:
find . -print| wc -l

sagt er mir irgend was mit 10800000 an.
Bisher dachte ich immer, dass pro File ein inode verwendet wird.
Was sagt mir dann der Inode count?
Ist doch ein kleiner Unterschied zwischen 10,8 Mio und 426 Mio.
_________________
Gruß
tazinblack
_______________________________________________________
Laptop: Son olles Ding, steht Samsung drauf. Desktop: Ein altes Gehäuse aus der Pentium 2 Zeit, Inhalt fragwürdig. Sound: Manchmal macht der CPU Lüfter Krach
Back to top
View user's profile Send private message
manuels
Advocate
Advocate


Joined: 22 Nov 2003
Posts: 2129
Location: Europe

PostPosted: Tue Feb 22, 2011 3:08 pm    Post subject: Reply with quote

Passt doch wie Arsch auf Eimer:
Code:
$ echo $[426647552-10800000]
415847552

Du hast 426 Mio. inodes, von denen 415 Mio. noch nicht benutzt sind.
_________________
Build your own live cd with catalyst 2.0!
Back to top
View user's profile Send private message
tazinblack
l33t
l33t


Joined: 23 Jan 2005
Posts: 818
Location: Baden / Germany

PostPosted: Tue Feb 22, 2011 3:28 pm    Post subject: Reply with quote

Ahhh ok,

jetzt ist der Groschen gefallen. Der zählt also rückwärts vom MaxWert!
Ist nicht ganz meine hellste Stunde :-(

Danke!
_________________
Gruß
tazinblack
_______________________________________________________
Laptop: Son olles Ding, steht Samsung drauf. Desktop: Ein altes Gehäuse aus der Pentium 2 Zeit, Inhalt fragwürdig. Sound: Manchmal macht der CPU Lüfter Krach
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum 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