Skip to content

Instantly share code, notes, and snippets.

@chapmanjacobd
Last active December 27, 2025 05:32
Show Gist options
  • Select an option

  • Save chapmanjacobd/c1214f32a4da8d031185645e67413d56 to your computer and use it in GitHub Desktop.

Select an option

Save chapmanjacobd/c1214f32a4da8d031185645e67413d56 to your computer and use it in GitHub Desktop.
How I freed up one TiB of space

How I freed up one TiB of space

I didn't realize just how much space those 24 Hour YouTube tracks take up. After hearing the same song on repeat I decided to check:

$ pip install xklb
$ lb fsadd --audio ~/lb/audio.db /mnt/d/81_New_Music/ /mnt/d/82_Audiobooks/
$ lb listen ~/lb/audio.db /81_New_Music/ --duration +3hr -p a
╒═══════════╤═════════╤═══════════════════════════════════════════╤═══════════════════════════╤══════════════════════════════════════════╤════════╤════════════╕
│ path      │   count │ duration                                  │ avg_duration              │ cadence_adj_duration                     │ size   │ avg_size   │
╞═══════════╪═════════╪═══════════════════════════════════════════╪═══════════════════════════╪══════════════════════════════════════════╪════════╪════════════╡
│ Aggregate │   17510 │ 11 years, 18 days, 6 hours and 16 minutes │ 5 hours and 31.68 minutes │ 42 years, 11 months, 1 days and 17 hours │ 1.0 TB │ 58.5 MB    │
╘═══════════╧═════════╧═══════════════════════════════════════════╧═══════════════════════════╧══════════════════════════════════════════╧════════╧════════════╛

Woah! A lot more than I expected. 1.0 TB of data. I took a closer look to double check:

$ lb listen ~/lb/audio.db /81_New_Music/ -d+3hr -p | less -FSRXc
╒══════════════════════════════════╤════════════════════════╤════════════════════════════════╤═══════════╤══════════════╕
│ path                             │ title                  │ duration                       │ size      │         rank │
╞══════════════════════════════════╪════════════════════════╪════════════════════════════════╪═══════════╪══════════════╡
│ /mnt/d/81_New_Music/re           │ Relajación             │ 1 day                          │ 1.6 GB    │ -6.47405e-07 │
│ ddit/Youtube/Relaxing_           │ Curativa               │                                │           │              │
│ Meditation_Music_Chann           │ del Estrés,            │                                │           │              │
│ el/Relajacion_Curativa           │ Ansiedad y             │                                │           │              │
│ _del_Estres_Ansiedad_y           │ Estados                │                                │           │              │
│ _Estados_Depresivos_Sa           │ Depresivos             │                                │           │              │
│ nar_Mente_Cuerpo_y_Alm           │ 😴 Sanar               │                                │           │              │
│ a_[IZOTg7y8fxY].opus             │ Mente,                 │                                │           │              │
│                                  │ Cuerpo y               │                                │           │              │
│                                  │ Alma                   │                                │           │              │
├──────────────────────────────────┼────────────────────────┼────────────────────────────────┼───────────┼──────────────┤
│ /mnt/d/81_New_Music/re           │ Depresión y            │ 23 hours and 59.98 minutes     │ 1.6 GB    │ -6.58584e-07 │
│ ddit/Youtube/Nature_Re           │ Ansiedad,              │                                │           │              │
│ lax_Music/Depresion_y_           │ Quitar la              │                                │           │              │
│ Ansiedad_Quitar_la_Rab           │ Rabia                  │                                │           │              │
│ ia_Interior_y_la_Trist           │ Interior y             │                                │           │              │
│ eza_Relajacion_para_la           │ la                     │                                │           │              │
│ _Sanacion_del_Estres_[           │ Tristeza,              │                                │           │              │
│ 4G072gQG8ug].opus                │ Relajación             │                                │           │              │
│                                  │ para la                │                                │           │              │
│                                  │ Sanación               │                                │           │              │
│                                  │ del Estrés             │                                │           │              │
...

Yep. I can't imagine needing these. Maybe there are some experimental albums in there which I would be interested in but I'm too lazy to check. Three hours of experimental music is already enough, about 2 hours and 10 minutes too much.

$ lb listen ~/lb/audio.db /81_New_Music/ -d+3hr -pf | head
/mnt/d/81_New_Music/reddit/Youtube/Cafe_Music_BGM/Positive_Jazz_Delicate_Morning_Coffee_Music_Happy_February_Bossa_Nova_Piano_for_Good_day_chill_[y8BiuK44ypc].opus
/mnt/d/81_New_Music/reddit/Youtube/Top_Music/MUSIC_2023_POP_HITS_2023_Ed_Sheeran_ADELE_Maroon_5_Jennifer_Billie_Eilish_Rihanna_POP_HITS_[RcUuvz07lPU].opus
...

Allons~y !

$ lb listen ~/lb/audio.db /81_New_Music/ -d+3hr -pf | parallel rm

before

$ df -h /mnt/d/
Filesystem      Size  Used Avail Use% Mounted on
mergerfs1        83T   81T  2.0T  98% /mnt/d

after

$ df -h /mnt/d/
Filesystem      Size  Used Avail Use% Mounted on
mergerfs1        83T   80T  2.9T  97% /mnt/d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment