LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 08-04-2015, 01:48 PM   #1
kol_bro
LQ Newbie
 
Registered: Jun 2015
Posts: 5

Rep: Reputation: Disabled
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
 
Old 08-06-2015, 12:11 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,877
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
There's a human readable format option for the df command:
Code:
df -h
 
Old 08-07-2015, 08:46 AM   #3
kol_bro
LQ Newbie
 
Registered: Jun 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hi rtmistler,
for ur information, i am using uclinux, and there is no "df -h" command there

thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
No more free space! df 99.9%, du 29% usage - missing free space ? Topper_BG Linux - General 14 02-08-2012 02:40 PM
Help removing free space to create Raw free space nightmare55 Linux - Newbie 11 10-01-2009 03:07 AM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration