create account

Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance. by gamer00

View this thread on: hive.blogpeakd.comecency.com
· @gamer00 · (edited)
$1.16
Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance.
# Hello again! Long time no see. ;)

So... as I'm not able to use my dedicated desktop computer while we are relocated to the next-door apartment that is too tiny to set up any comfortable space for a workstation, I've been using my laptop instead.

Today I decided to upgrade the Linux on my laptop to the latest KDE Neon has to offer, I came upon a problem, and that is that my harddrive has some consistency issues with files. I decided to run the btrfs balancing tool `btrfs fi balance /home`.

It's a peculiar one, since it doesn't give out any output. So at first I used the `dmesg -w` command to see what it is doing, but found out a btrfs command for a progress report: `btrfs balance status /home` that gives out a static progress report like this:

    root@trabant:~# btrfs balance status /home
    Balance on '/home' is running
    138 out of about 180 chunks balanced (178 considered),   37% left

The only problem was that I needed to repeat that command every time I wanted to see the progress, and I wanted to see it in real-time.

The solution is a simple one: a `while` loop. :) Like this:

    while sleep 5; do (btrfs balance status /home&) ; done

And I got a page full of status reports.

I wanted to do better, so I added `clear` to the beginning of the line.

    while sleep 5; do (clear && btrfs balance status /home&) ; done

Result:

<center>![Screenshot_20190321_150853.png](https://cdn.steemitimages.com/DQmdrRzix8pwmQMVzCgsYBtdFnSarJJBnwfVo51S6Swu3r4/Screenshot_20190321_150853.png)<br /><sup>*Now the progress report updates cleanly in the top of the window.*</sup></center>

Neat, huh? :)

If I come up with other nice tips, I'll be sure to post them here. :)

See ya!
👍  , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorgamer00
permlinkrudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance
categorylinux
json_metadata{"tags":["linux","bash","howto","btrfs","balance"],"image":["https://cdn.steemitimages.com/DQmdrRzix8pwmQMVzCgsYBtdFnSarJJBnwfVo51S6Swu3r4/Screenshot_20190321_150853.png"],"app":"steemit/0.1","format":"markdown","users":["trabant"]}
created2019-03-21 13:32:21
last_update2022-10-25 08:52:27
depth0
children13
last_payout2019-03-28 13:32:21
cashout_time1969-12-31 23:59:59
total_payout_value0.894 HBD
curator_payout_value0.264 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,701
author_reputation168,798,415,632,608
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,679,609
net_rshares1,807,688,348,234
author_curate_reward""
vote details (27)
@cryptoandcoffee ·
$0.08
Hi gamer good to see you around. I seem to keep missing your posts. Hopefully the move is temporary and you are back in your own space really soon.
👍  
properties (23)
authorcryptoandcoffee
permlinkre-gamer00-rudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance-20190321t144006544z
categorylinux
json_metadata{"tags":["linux"],"app":"steemit/0.1"}
created2019-03-21 14:40:09
last_update2019-03-21 14:40:09
depth1
children2
last_payout2019-03-28 14:40:09
cashout_time1969-12-31 23:59:59
total_payout_value0.057 HBD
curator_payout_value0.019 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length147
author_reputation3,628,485,466,653,705
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,682,690
net_rshares117,701,181,839
author_curate_reward""
vote details (1)
@gamer00 ·
$0.02
Hey... I've been a bit slow making posts lately, being forced to use mobile connection and a laptop. So you haven't missed much. ;) Anyway, we'll be moving back into our own apartment on April 12th. It should be fully renovated by then. We sincerely hope the move is not as taxing as the previous one.
👍  
properties (23)
authorgamer00
permlinkre-cryptoandcoffee-re-gamer00-rudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance-20190321t150301058z
categorylinux
json_metadata{"tags":["linux"],"app":"steemit/0.1"}
created2019-03-21 15:03:03
last_update2019-03-21 15:03:03
depth2
children1
last_payout2019-03-28 15:03:03
cashout_time1969-12-31 23:59:59
total_payout_value0.014 HBD
curator_payout_value0.004 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length301
author_reputation168,798,415,632,608
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,683,768
net_rshares32,005,008,020
author_curate_reward""
vote details (1)
@markkujantunen ·
$0.07
I believe it won't be. Why? Because, hopefully,  you've been getting rid of a good deal of useless stuff.
👍  
properties (23)
authormarkkujantunen
permlinkre-gamer00-re-cryptoandcoffee-re-gamer00-rudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance-20190323t194039386z
categorylinux
json_metadata{"tags":["linux"],"app":"steemit/0.1"}
created2019-03-23 19:40:39
last_update2019-03-23 19:40:39
depth3
children0
last_payout2019-03-30 19:40:39
cashout_time1969-12-31 23:59:59
total_payout_value0.054 HBD
curator_payout_value0.018 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length105
author_reputation625,120,273,925,515
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,816,061
net_rshares114,216,519,626
author_curate_reward""
vote details (1)
@lanzjoseg ·
$0.08
My personal computer has Linux installed a version created by the government and was buying through the company of the very economical state for that time 10 years ago, I can not update it because I would lose many things, a friend told me.
👍  
properties (23)
authorlanzjoseg
permlinkre-gamer00-rudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance-20190321t175804087z
categorylinux
json_metadata{"tags":["linux"],"app":"steemit/0.1"}
created2019-03-21 17:29:18
last_update2019-03-21 17:29:18
depth1
children2
last_payout2019-03-28 17:29:18
cashout_time1969-12-31 23:59:59
total_payout_value0.058 HBD
curator_payout_value0.019 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length240
author_reputation862,957,494,091,659
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,690,562
net_rshares120,459,829,248
author_curate_reward""
vote details (1)
@gamer00 ·
$0.02
10 year old Linux installation and no updates? I would not feel very secure with that.

A thing you could do is take a backup copy of the /home directory and install a brand new version of your preferred distro, making the /home directory live on a whole separate partition, or harddrive, then copy the things you need back from the back-ups.
👍  
properties (23)
authorgamer00
permlinkre-lanzjoseg-re-gamer00-rudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance-20190321t200555916z
categorylinux
json_metadata{"tags":["linux"],"app":"steemit/0.1"}
created2019-03-21 20:05:57
last_update2019-03-21 20:05:57
depth2
children0
last_payout2019-03-28 20:05:57
cashout_time1969-12-31 23:59:59
total_payout_value0.014 HBD
curator_payout_value0.004 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length342
author_reputation168,798,415,632,608
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,697,565
net_rshares32,150,985,443
author_curate_reward""
vote details (1)
@lanzjoseg ·
Friend Jaro. I would like only if you can visit my publication where I expose the current situation of university professors, I would love to know your opinion.
[The Ministry of Higher Education of Venezuela suspends payroll resources from public universities.](https://steemit.com/freedom/@lanzjoseg/the-ministry-of-higher-education-of-venezuela-suspends-payroll-resources-from-public-universities)
properties (22)
authorlanzjoseg
permlinkre-lanzjoseg-re-gamer00-rudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance-20190321t203213085z
categorylinux
json_metadata{"tags":["linux"],"links":["https://steemit.com/freedom/@lanzjoseg/the-ministry-of-higher-education-of-venezuela-suspends-payroll-resources-from-public-universities"],"app":"steemit/0.1"}
created2019-03-21 20:03:24
last_update2019-03-21 20:03:24
depth2
children0
last_payout2019-03-28 20:03:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length399
author_reputation862,957,494,091,659
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,697,403
net_rshares0
@magnata ·
$0.09
properties (23)
authormagnata
permlinkre-gamer00-rudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance-20190321t134003100z
categorylinux
json_metadata{"tags":["linux"],"app":"steemit/0.1"}
created2019-03-21 13:40:06
last_update2019-03-21 13:40:06
depth1
children0
last_payout2019-03-28 13:40:06
cashout_time1969-12-31 23:59:59
total_payout_value0.070 HBD
curator_payout_value0.021 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length44
author_reputation49,556,692,956,431
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,679,991
net_rshares141,860,451,225
author_curate_reward""
vote details (44)
@old-guy-photos ·
$0.09
Good to see a post :D
👍  ,
properties (23)
authorold-guy-photos
permlinkre-gamer00-rudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance-20190323t062200631z
categorylinux
json_metadata{"tags":["linux"],"app":"steemit/0.1"}
created2019-03-23 06:22:00
last_update2019-03-23 06:22:00
depth1
children2
last_payout2019-03-30 06:22:00
cashout_time1969-12-31 23:59:59
total_payout_value0.069 HBD
curator_payout_value0.022 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length21
author_reputation630,154,242,353,253
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,782,862
net_rshares142,979,241,749
author_curate_reward""
vote details (2)
@markkujantunen · (edited)
$0.07
I fully agree on that. What I'm missing is [@gamer00](https://steemit.com/@gamer00)'s photography posts. I'd love to see a new take of some familiar subjects but with some tips as to how to get better pics. Jaro is a very experienced photographer who knows his shit. :)
👍  
properties (23)
authormarkkujantunen
permlinkre-old-guy-photos-re-gamer00-rudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance-20190323t194157756z
categorylinux
json_metadata{"app":"partiko","client":"android"}
created2019-03-23 19:41:57
last_update2019-03-23 23:54:57
depth2
children1
last_payout2019-03-30 19:41:57
cashout_time1969-12-31 23:59:59
total_payout_value0.054 HBD
curator_payout_value0.018 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length269
author_reputation625,120,273,925,515
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,816,110
net_rshares113,555,754,134
author_curate_reward""
vote details (1)
@gamer00 ·
Thank you.

The truth is I've been more or less out of ideas and motivation, especially now as my main editing rig is not available.
👍  
properties (23)
authorgamer00
permlinkre-markkujantunen-re-old-guy-photos-re-gamer00-rudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance-20190323t235347961z
categorylinux
json_metadata{"tags":["linux"],"app":"steemit/0.1"}
created2019-03-23 23:53:48
last_update2019-03-23 23:53:48
depth3
children0
last_payout2019-03-30 23:53:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length132
author_reputation168,798,415,632,608
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,824,032
net_rshares20,239,905,900
author_curate_reward""
vote details (1)
@steem-plus ·
SteemPlus upvote
Hi, @gamer00!

You just got a **7.95%** upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in [here](https://steemit.com/@steem-plus) to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.
properties (22)
authorsteem-plus
permlinkrudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance---vote-steemplus
categorylinux
json_metadata{}
created2019-03-21 23:12:24
last_update2019-03-21 23:12:24
depth1
children0
last_payout2019-03-28 23:12:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length434
author_reputation247,952,188,232,400
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,705,516
net_rshares0
@theguruasia ·
$0.21
@gamer00,
Personally I am not a Linux user, but DOS type programming, yeah I know a bit too! Good one and wanna see more new tips from you. Very interesting thing for me!

Cheers~
👍  , , , ,
properties (23)
authortheguruasia
permlinkre-gamer00-rudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance-20190322t054042167z
categorylinux
json_metadata{"tags":["linux"],"users":["gamer00"],"app":"steemit/0.1"}
created2019-03-22 05:40:42
last_update2019-03-22 05:40:42
depth1
children0
last_payout2019-03-29 05:40:42
cashout_time1969-12-31 23:59:59
total_payout_value0.160 HBD
curator_payout_value0.051 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length179
author_reputation72,550,633,010,734
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,719,233
net_rshares327,589,944,628
author_curate_reward""
vote details (5)
@ustazkarim ·
thank you for the information, this is very helpful for me
👍  
properties (23)
authorustazkarim
permlinkre-gamer00-rudimentary-linux-bits-nifty-and-clean-updating-progress-report-on-btrfs-balance-20190321t181047091z
categorylinux
json_metadata{"tags":["linux"],"app":"steemit/0.1"}
created2019-03-21 18:10:51
last_update2019-03-21 18:10:51
depth1
children0
last_payout2019-03-28 18:10:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length58
author_reputation7,156,059,491,487
root_title"Rudimentary Linux Bits: Nifty and clean updating progress report on btrfs balance."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id81,692,796
net_rshares0
author_curate_reward""
vote details (1)