LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2023, 03:19 AM   #1
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Rep: Reputation: 15
Help why Usb disk of capacity 16 GB become less 13.5 GB


Anyone know why is
Code:
sdb     ext4   1.0            25a58af1-5f51-437e-a998-41585b2b23e2   13.3G     0% /mnt/USBdisk
while Usb disk of capacity 16 GB is fresh formatted and mounted ?
 
Old 04-25-2023, 03:49 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,763

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
If you convert GB to Gib your actual disk is 14.2
Actual space = total - metadata - reserved space
13.3 = 14.2 - ~2% total - 5% total

Last edited by michaelk; 04-25-2023 at 04:04 AM.
 
Old 04-25-2023, 06:54 AM   #3
BudiKusasi
Member
 
Registered: Apr 2017
Distribution: Artix
Posts: 345

Original Poster
Rep: Reputation: 15
got 10%

= ~ 14.9 - 2% -8%
= ~ 14.9 (1-10%)

all in GiB

it's ~ , apprx. as its reserved will adaptive to change due to file system block size
 
Old 04-25-2023, 07:06 AM   #4
lvm_
Member
 
Registered: Jul 2020
Posts: 965

Rep: Reputation: 342Reputation: 342Reputation: 342Reputation: 342
Quote:
Originally Posted by michaelk View Post
Actual space = total - metadata - reserved space
13.3 = 14.2 - ~2% total - 5% total
extN filesystems reserve space only on system partitions, there should be no reserved space on external disks. Anyhow, it can be checked/changed with tune2fs.

OP: exaggerating the size of flash drives is not uncommon, actual size can be checked with e.g. lsblk -b /dev/sdb
 
Old 04-25-2023, 07:45 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,763

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Your correct it should be 14.9 instead of 14.2 and I believe metadata for ext4 is more like ~3%. The numbers don't quite match up.
 
Old 04-25-2023, 08:04 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
Most Linux filesystems allocate at least one "whole block" to any file – "reiserfs" being a notable exception although its author ran afoul of the Russian mafia and is now out of the picture. (Seriously ...)

A certain amount of space is needed by space-allocation data structures and by directories. USB thumb drives carve off a tiny amount of space for who-knows-what.

You should also make sure that the filesystem is of a proper size to actually use all of the available space. (For example, when you expand a "logical volume" using LVM, you must then resize the filesystem upward to begin to actually use it – a process that does not require downtime.)

Last edited by sundialsvcs; 04-25-2023 at 08:06 AM.
 
  


Reply



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
Best capacity planning or capacity management tool decenter Linux - Software 1 03-27-2015 03:11 PM
USB drive capacity much less then actual wufo Slackware 3 07-20-2014 11:02 AM
how do you setup snmpd to send traps when /var has less then 10% capacity left creatureofthedark Linux - Networking 2 02-03-2012 12:26 PM
how do you setup snmpd to send traps when /var has less then 10% capacity left creatureofthedark Linux - Server 3 02-03-2012 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:37 PM.

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