LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   How to know free space in mtdblocks (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/how-to-know-free-space-in-mtdblocks-4175549830/)

kol_bro 08-04-2015 01:48 PM

How to know free space in mtdblocks
 
Hi,

is there any way by which i can know how much free space has been left in mtdblocks, i have tried df command which gives me this result

# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mtdblock2 2560 2200 360 86% /
/dev/ram0 115 10 105 9% /var
/dev/mtdblock3 3328 2068 1260 62% /var/tmp
/dev/mtdblock3 3328 2068 1260 62% /home
/dev/mtdblock3 3328 2068 1260 62% /etc
/dev/mtdblock3 3328 2068 1260 62% /usr/bin

here it say that its "1k-blocks" but i am pretty sure that wrong, i have inserted some files and get that its about 2424 byte per block, is there any way i can know true block size? or is there any other way to find free space size?

thanks:)

rtmistler 08-06-2015 12:11 PM

There's a human readable format option for the df command:
Code:

df -h

kol_bro 08-07-2015 08:46 AM

Hi rtmistler,
for ur information, i am using uclinux, and there is no "df -h" command there

thanks


All times are GMT -5. The time now is 10:17 AM.