Disk usage confusion: 10G missing on Linux home partition on SSDDebian 7.6 OpenVZ VPS claims full disk usage when it's clearly not truedf, du report incorrect disk usageIs bcache solution for my ssd use case?SMART data of SanDisk Extreme ProMounting a subdirectory of home onto an own partition confuses disk usage reportbash script which will highlight maximum disk usage line on outputUnusual disk space usageSSD partition alignedTried to install debian on 2nd drive and now both drives are malfunctioningDisk space full after Timeshift

What would you need merely the term "collection" for pitches, but not "scale"?

What does 'in attendance' mean on an England death certificate?

What's the point of stochastic volatiliy models if you can use local volatility?

Calculus, water poured into a cone: Why is the derivative non-linear?

Why do movie directors use brown tint on Mexico cities?

Position representation of spin states and spin operators

Does a lens with a bigger max. aperture focus faster than a lens with a smaller max. aperture?

Simplify the code

Why isn't UDP with reliability (implemented at Application layer) a substitute of TCP?

What was the point of separating stdout and stderr?

My mom helped me cosign a car and now she wants to take it

Drawing a sigmoid function and its derivative in tikz

How far can gerrymandering go?

Two palindromes are not enough

iMac 2019: Can I mix the old modules with the new ones when upgrading RAM?

Robots in a spaceship

Is it possible to alias a column based on the result of a select+where?

Why am I getting an electric shock from the water in my hot tub?

Active wildlife outside the window- Good or Bad for Cat psychology?

Checkmate in 1 on a Tangled Board

Move up, right, left and down functions

What is the lowest possible AC?

German idiomatic equivalents of 能骗就骗 (if you can cheat, then cheat)

Angle Between Two Vectors Facing A Point



Disk usage confusion: 10G missing on Linux home partition on SSD


Debian 7.6 OpenVZ VPS claims full disk usage when it's clearly not truedf, du report incorrect disk usageIs bcache solution for my ssd use case?SMART data of SanDisk Extreme ProMounting a subdirectory of home onto an own partition confuses disk usage reportbash script which will highlight maximum disk usage line on outputUnusual disk space usageSSD partition alignedTried to install debian on 2nd drive and now both drives are malfunctioningDisk space full after Timeshift













8















Linux Mint tells me, I only have 622 MB free disk space but there should be some gigabytes left.



Looking at the partitions I am told that there are about ten gigabytes unused. I googled the problem and didn't find a solution but I did find the hint that I should check the disk usage with df -h.



sudo df -h /home
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p8 189G 178G 622M 100% /home


The output doesn't make any sense to me: The difference between Size and Used is 11GB, but it only shows 622M as Available.



The SSD isn't old, so I wouldn't expect such a discrepancy.



What should I do?










share|improve this question









New contributor



tobiornottobi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • 1





    as @Kusalananda commented, you shouldn't just question why you don't get those 10GB (which I hope I addressed correctly in my answer), but also why you're using most of the space in /home. If you know why (eg: store a lot of media files etc.) that's fine, if you don't, you should worry about it, with potential cleaning giving back more than 10GB of space savings. So what would it be?

    – A.B
    14 hours ago












  • “Looking at the partitions I am told that there are about ten gigabytes unused.” — where were you told this?

    – ctrl-alt-delor
    11 hours ago






  • 2





    @ctrl-alt-delor from df's output – Size: 189G, Used: 178G

    – billyjmc
    11 hours ago











  • @ctrl-alt delor, I got the figure 10GB from gparted – and later 11G from df's output, as billyjmc correctly inferred.

    – tobiornottobi
    9 hours ago











  • @A.B thank you for your answer. I know what's using up the space. I just had the impression that I suddenly had a few gigabytes less than I expected. When I investigated this, I got worried because 10 gigabytes couldn't be used. But you cleared that up for me. :)

    – tobiornottobi
    9 hours ago















8















Linux Mint tells me, I only have 622 MB free disk space but there should be some gigabytes left.



Looking at the partitions I am told that there are about ten gigabytes unused. I googled the problem and didn't find a solution but I did find the hint that I should check the disk usage with df -h.



sudo df -h /home
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p8 189G 178G 622M 100% /home


The output doesn't make any sense to me: The difference between Size and Used is 11GB, but it only shows 622M as Available.



The SSD isn't old, so I wouldn't expect such a discrepancy.



What should I do?










share|improve this question









New contributor



tobiornottobi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.














  • 1





    as @Kusalananda commented, you shouldn't just question why you don't get those 10GB (which I hope I addressed correctly in my answer), but also why you're using most of the space in /home. If you know why (eg: store a lot of media files etc.) that's fine, if you don't, you should worry about it, with potential cleaning giving back more than 10GB of space savings. So what would it be?

    – A.B
    14 hours ago












  • “Looking at the partitions I am told that there are about ten gigabytes unused.” — where were you told this?

    – ctrl-alt-delor
    11 hours ago






  • 2





    @ctrl-alt-delor from df's output – Size: 189G, Used: 178G

    – billyjmc
    11 hours ago











  • @ctrl-alt delor, I got the figure 10GB from gparted – and later 11G from df's output, as billyjmc correctly inferred.

    – tobiornottobi
    9 hours ago











  • @A.B thank you for your answer. I know what's using up the space. I just had the impression that I suddenly had a few gigabytes less than I expected. When I investigated this, I got worried because 10 gigabytes couldn't be used. But you cleared that up for me. :)

    – tobiornottobi
    9 hours ago













8












8








8








Linux Mint tells me, I only have 622 MB free disk space but there should be some gigabytes left.



Looking at the partitions I am told that there are about ten gigabytes unused. I googled the problem and didn't find a solution but I did find the hint that I should check the disk usage with df -h.



sudo df -h /home
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p8 189G 178G 622M 100% /home


The output doesn't make any sense to me: The difference between Size and Used is 11GB, but it only shows 622M as Available.



The SSD isn't old, so I wouldn't expect such a discrepancy.



What should I do?










share|improve this question









New contributor



tobiornottobi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











Linux Mint tells me, I only have 622 MB free disk space but there should be some gigabytes left.



Looking at the partitions I am told that there are about ten gigabytes unused. I googled the problem and didn't find a solution but I did find the hint that I should check the disk usage with df -h.



sudo df -h /home
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p8 189G 178G 622M 100% /home


The output doesn't make any sense to me: The difference between Size and Used is 11GB, but it only shows 622M as Available.



The SSD isn't old, so I wouldn't expect such a discrepancy.



What should I do?







linux disk-usage ssd






share|improve this question









New contributor



tobiornottobi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



tobiornottobi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 55 mins ago









RonJohn

5614 silver badges16 bronze badges




5614 silver badges16 bronze badges






New contributor



tobiornottobi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 15 hours ago









tobiornottobitobiornottobi

1433 bronze badges




1433 bronze badges




New contributor



tobiornottobi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




tobiornottobi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









  • 1





    as @Kusalananda commented, you shouldn't just question why you don't get those 10GB (which I hope I addressed correctly in my answer), but also why you're using most of the space in /home. If you know why (eg: store a lot of media files etc.) that's fine, if you don't, you should worry about it, with potential cleaning giving back more than 10GB of space savings. So what would it be?

    – A.B
    14 hours ago












  • “Looking at the partitions I am told that there are about ten gigabytes unused.” — where were you told this?

    – ctrl-alt-delor
    11 hours ago






  • 2





    @ctrl-alt-delor from df's output – Size: 189G, Used: 178G

    – billyjmc
    11 hours ago











  • @ctrl-alt delor, I got the figure 10GB from gparted – and later 11G from df's output, as billyjmc correctly inferred.

    – tobiornottobi
    9 hours ago











  • @A.B thank you for your answer. I know what's using up the space. I just had the impression that I suddenly had a few gigabytes less than I expected. When I investigated this, I got worried because 10 gigabytes couldn't be used. But you cleared that up for me. :)

    – tobiornottobi
    9 hours ago












  • 1





    as @Kusalananda commented, you shouldn't just question why you don't get those 10GB (which I hope I addressed correctly in my answer), but also why you're using most of the space in /home. If you know why (eg: store a lot of media files etc.) that's fine, if you don't, you should worry about it, with potential cleaning giving back more than 10GB of space savings. So what would it be?

    – A.B
    14 hours ago












  • “Looking at the partitions I am told that there are about ten gigabytes unused.” — where were you told this?

    – ctrl-alt-delor
    11 hours ago






  • 2





    @ctrl-alt-delor from df's output – Size: 189G, Used: 178G

    – billyjmc
    11 hours ago











  • @ctrl-alt delor, I got the figure 10GB from gparted – and later 11G from df's output, as billyjmc correctly inferred.

    – tobiornottobi
    9 hours ago











  • @A.B thank you for your answer. I know what's using up the space. I just had the impression that I suddenly had a few gigabytes less than I expected. When I investigated this, I got worried because 10 gigabytes couldn't be used. But you cleared that up for me. :)

    – tobiornottobi
    9 hours ago







1




1





as @Kusalananda commented, you shouldn't just question why you don't get those 10GB (which I hope I addressed correctly in my answer), but also why you're using most of the space in /home. If you know why (eg: store a lot of media files etc.) that's fine, if you don't, you should worry about it, with potential cleaning giving back more than 10GB of space savings. So what would it be?

– A.B
14 hours ago






as @Kusalananda commented, you shouldn't just question why you don't get those 10GB (which I hope I addressed correctly in my answer), but also why you're using most of the space in /home. If you know why (eg: store a lot of media files etc.) that's fine, if you don't, you should worry about it, with potential cleaning giving back more than 10GB of space savings. So what would it be?

– A.B
14 hours ago














“Looking at the partitions I am told that there are about ten gigabytes unused.” — where were you told this?

– ctrl-alt-delor
11 hours ago





“Looking at the partitions I am told that there are about ten gigabytes unused.” — where were you told this?

– ctrl-alt-delor
11 hours ago




2




2





@ctrl-alt-delor from df's output – Size: 189G, Used: 178G

– billyjmc
11 hours ago





@ctrl-alt-delor from df's output – Size: 189G, Used: 178G

– billyjmc
11 hours ago













@ctrl-alt delor, I got the figure 10GB from gparted – and later 11G from df's output, as billyjmc correctly inferred.

– tobiornottobi
9 hours ago





@ctrl-alt delor, I got the figure 10GB from gparted – and later 11G from df's output, as billyjmc correctly inferred.

– tobiornottobi
9 hours ago













@A.B thank you for your answer. I know what's using up the space. I just had the impression that I suddenly had a few gigabytes less than I expected. When I investigated this, I got worried because 10 gigabytes couldn't be used. But you cleared that up for me. :)

– tobiornottobi
9 hours ago





@A.B thank you for your answer. I know what's using up the space. I just had the impression that I suddenly had a few gigabytes less than I expected. When I investigated this, I got worried because 10 gigabytes couldn't be used. But you cleared that up for me. :)

– tobiornottobi
9 hours ago










2 Answers
2






active

oldest

votes


















9














If the filesystem is ext4, there are reserved blocks, mostly to help handling and help avoid fragmentation and available only to the root user. For this setting, it can be changed live using tune2fs (not all settings can be handled like this when the filesystem is mounted):




-m reserved-blocks-percentage



Set the percentage of the filesystem which may only be allocated by privileged processes. Reserving some number of filesystem blocks
for use by privileged processes is done to avoid filesystem
fragmentation, and to allow system daemons, such as syslogd(8), to
continue to function correctly after non-privileged processes are
prevented from writing to the filesystem. Normally, the default
percentage of reserved blocks is 5%.




So if you want to lower the reservation to 1% (~ 2GB) thus getting access to ~ 8GB of no more reserved space, you can do this:



sudo tune2fs -m 1 /dev/nvme0n1p8


Note: the -m option actually accepts a decimal number as parameter. You can use -m 0.1 to reserve only about ~200MB (and access most of those previously unavailable 10GB). You can also use the -r option instead to reserve directly by blocks. It's probably not advised to have 0 reserved blocks.






share|improve this answer




















  • 1





    The user is not "getting back" 8 GB. The are getting 8 GB more to spend. It would be better to track down what's using up all the disk space and then possibly do a cleanup of that, if appropriate, or otherwise move it elsewhere, or grow the partition.

    – Kusalananda
    14 hours ago






  • 1





    @Kusalananda I'll change the vocabulary. As for the usage, I'd need OP's feedback. The question never hinted that there was unknown high usage, only missing 10GB.

    – A.B
    14 hours ago







  • 1





    A very good and helpful answer, thank you. 5% seems to match the missing 10 gigabytes very clearly. I am not worried about using so much disk space overall, and I can still grow my partition. :)

    – tobiornottobi
    9 hours ago







  • 2





    Your answer is certainly correct, but it may be worth noting that the value of root-reserved space in this case isn't huge. This is /home, and reserving space for root there isn't as important as it is for other parts of the file system (e.g. to ensure system logs can still be written). Also, as this is an SSD, preventing fragmentation may not have the priority it does on spinning metal disks.

    – marcelm
    4 hours ago


















1














Deleted files can also contribute to "missing space"



lsof | grep deleted | grep /home


returns this output for me



chrome 11181 criggie 15u REG 254,0 
4194304 50651663 /home/criggie/.config/google-chrome/BrowserMetrics/BrowserMetrics-5D0236AF-2BAD.pma (deleted)


Which shows that Chrome running as PID 11181 opened that BrowserMetrics file then deleted it, and still has the filehandle open. This means the file is invisible in a directory listing, but is still taking up disk space.



Why do programmes do this? When the running binary terminates, the OS will release the open file handle and the file on disk will be gone, without risk of leaving a stale temp-file around.



What I can't see is how big that file's disk usage is.






share|improve this answer























  • Most well-written programs should not do this. It's a bug, and should be reported, it's just that most of these obscure bugs don't really show up until you are in an optimization phase, and if it's a one off it may even not really be detected at all during testing. Note that there may be a specific reason why they are doing this, there may be a rationale I am not aware of here for keeping the handle open this long.

    – Drunken Code Monkey
    1 hour ago














Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






tobiornottobi is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f527628%2fdisk-usage-confusion-10g-missing-on-linux-home-partition-on-ssd%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









9














If the filesystem is ext4, there are reserved blocks, mostly to help handling and help avoid fragmentation and available only to the root user. For this setting, it can be changed live using tune2fs (not all settings can be handled like this when the filesystem is mounted):




-m reserved-blocks-percentage



Set the percentage of the filesystem which may only be allocated by privileged processes. Reserving some number of filesystem blocks
for use by privileged processes is done to avoid filesystem
fragmentation, and to allow system daemons, such as syslogd(8), to
continue to function correctly after non-privileged processes are
prevented from writing to the filesystem. Normally, the default
percentage of reserved blocks is 5%.




So if you want to lower the reservation to 1% (~ 2GB) thus getting access to ~ 8GB of no more reserved space, you can do this:



sudo tune2fs -m 1 /dev/nvme0n1p8


Note: the -m option actually accepts a decimal number as parameter. You can use -m 0.1 to reserve only about ~200MB (and access most of those previously unavailable 10GB). You can also use the -r option instead to reserve directly by blocks. It's probably not advised to have 0 reserved blocks.






share|improve this answer




















  • 1





    The user is not "getting back" 8 GB. The are getting 8 GB more to spend. It would be better to track down what's using up all the disk space and then possibly do a cleanup of that, if appropriate, or otherwise move it elsewhere, or grow the partition.

    – Kusalananda
    14 hours ago






  • 1





    @Kusalananda I'll change the vocabulary. As for the usage, I'd need OP's feedback. The question never hinted that there was unknown high usage, only missing 10GB.

    – A.B
    14 hours ago







  • 1





    A very good and helpful answer, thank you. 5% seems to match the missing 10 gigabytes very clearly. I am not worried about using so much disk space overall, and I can still grow my partition. :)

    – tobiornottobi
    9 hours ago







  • 2





    Your answer is certainly correct, but it may be worth noting that the value of root-reserved space in this case isn't huge. This is /home, and reserving space for root there isn't as important as it is for other parts of the file system (e.g. to ensure system logs can still be written). Also, as this is an SSD, preventing fragmentation may not have the priority it does on spinning metal disks.

    – marcelm
    4 hours ago















9














If the filesystem is ext4, there are reserved blocks, mostly to help handling and help avoid fragmentation and available only to the root user. For this setting, it can be changed live using tune2fs (not all settings can be handled like this when the filesystem is mounted):




-m reserved-blocks-percentage



Set the percentage of the filesystem which may only be allocated by privileged processes. Reserving some number of filesystem blocks
for use by privileged processes is done to avoid filesystem
fragmentation, and to allow system daemons, such as syslogd(8), to
continue to function correctly after non-privileged processes are
prevented from writing to the filesystem. Normally, the default
percentage of reserved blocks is 5%.




So if you want to lower the reservation to 1% (~ 2GB) thus getting access to ~ 8GB of no more reserved space, you can do this:



sudo tune2fs -m 1 /dev/nvme0n1p8


Note: the -m option actually accepts a decimal number as parameter. You can use -m 0.1 to reserve only about ~200MB (and access most of those previously unavailable 10GB). You can also use the -r option instead to reserve directly by blocks. It's probably not advised to have 0 reserved blocks.






share|improve this answer




















  • 1





    The user is not "getting back" 8 GB. The are getting 8 GB more to spend. It would be better to track down what's using up all the disk space and then possibly do a cleanup of that, if appropriate, or otherwise move it elsewhere, or grow the partition.

    – Kusalananda
    14 hours ago






  • 1





    @Kusalananda I'll change the vocabulary. As for the usage, I'd need OP's feedback. The question never hinted that there was unknown high usage, only missing 10GB.

    – A.B
    14 hours ago







  • 1





    A very good and helpful answer, thank you. 5% seems to match the missing 10 gigabytes very clearly. I am not worried about using so much disk space overall, and I can still grow my partition. :)

    – tobiornottobi
    9 hours ago







  • 2





    Your answer is certainly correct, but it may be worth noting that the value of root-reserved space in this case isn't huge. This is /home, and reserving space for root there isn't as important as it is for other parts of the file system (e.g. to ensure system logs can still be written). Also, as this is an SSD, preventing fragmentation may not have the priority it does on spinning metal disks.

    – marcelm
    4 hours ago













9












9








9







If the filesystem is ext4, there are reserved blocks, mostly to help handling and help avoid fragmentation and available only to the root user. For this setting, it can be changed live using tune2fs (not all settings can be handled like this when the filesystem is mounted):




-m reserved-blocks-percentage



Set the percentage of the filesystem which may only be allocated by privileged processes. Reserving some number of filesystem blocks
for use by privileged processes is done to avoid filesystem
fragmentation, and to allow system daemons, such as syslogd(8), to
continue to function correctly after non-privileged processes are
prevented from writing to the filesystem. Normally, the default
percentage of reserved blocks is 5%.




So if you want to lower the reservation to 1% (~ 2GB) thus getting access to ~ 8GB of no more reserved space, you can do this:



sudo tune2fs -m 1 /dev/nvme0n1p8


Note: the -m option actually accepts a decimal number as parameter. You can use -m 0.1 to reserve only about ~200MB (and access most of those previously unavailable 10GB). You can also use the -r option instead to reserve directly by blocks. It's probably not advised to have 0 reserved blocks.






share|improve this answer















If the filesystem is ext4, there are reserved blocks, mostly to help handling and help avoid fragmentation and available only to the root user. For this setting, it can be changed live using tune2fs (not all settings can be handled like this when the filesystem is mounted):




-m reserved-blocks-percentage



Set the percentage of the filesystem which may only be allocated by privileged processes. Reserving some number of filesystem blocks
for use by privileged processes is done to avoid filesystem
fragmentation, and to allow system daemons, such as syslogd(8), to
continue to function correctly after non-privileged processes are
prevented from writing to the filesystem. Normally, the default
percentage of reserved blocks is 5%.




So if you want to lower the reservation to 1% (~ 2GB) thus getting access to ~ 8GB of no more reserved space, you can do this:



sudo tune2fs -m 1 /dev/nvme0n1p8


Note: the -m option actually accepts a decimal number as parameter. You can use -m 0.1 to reserve only about ~200MB (and access most of those previously unavailable 10GB). You can also use the -r option instead to reserve directly by blocks. It's probably not advised to have 0 reserved blocks.







share|improve this answer














share|improve this answer



share|improve this answer








edited 14 hours ago

























answered 15 hours ago









A.BA.B

7,5451 gold badge13 silver badges34 bronze badges




7,5451 gold badge13 silver badges34 bronze badges







  • 1





    The user is not "getting back" 8 GB. The are getting 8 GB more to spend. It would be better to track down what's using up all the disk space and then possibly do a cleanup of that, if appropriate, or otherwise move it elsewhere, or grow the partition.

    – Kusalananda
    14 hours ago






  • 1





    @Kusalananda I'll change the vocabulary. As for the usage, I'd need OP's feedback. The question never hinted that there was unknown high usage, only missing 10GB.

    – A.B
    14 hours ago







  • 1





    A very good and helpful answer, thank you. 5% seems to match the missing 10 gigabytes very clearly. I am not worried about using so much disk space overall, and I can still grow my partition. :)

    – tobiornottobi
    9 hours ago







  • 2





    Your answer is certainly correct, but it may be worth noting that the value of root-reserved space in this case isn't huge. This is /home, and reserving space for root there isn't as important as it is for other parts of the file system (e.g. to ensure system logs can still be written). Also, as this is an SSD, preventing fragmentation may not have the priority it does on spinning metal disks.

    – marcelm
    4 hours ago












  • 1





    The user is not "getting back" 8 GB. The are getting 8 GB more to spend. It would be better to track down what's using up all the disk space and then possibly do a cleanup of that, if appropriate, or otherwise move it elsewhere, or grow the partition.

    – Kusalananda
    14 hours ago






  • 1





    @Kusalananda I'll change the vocabulary. As for the usage, I'd need OP's feedback. The question never hinted that there was unknown high usage, only missing 10GB.

    – A.B
    14 hours ago







  • 1





    A very good and helpful answer, thank you. 5% seems to match the missing 10 gigabytes very clearly. I am not worried about using so much disk space overall, and I can still grow my partition. :)

    – tobiornottobi
    9 hours ago







  • 2





    Your answer is certainly correct, but it may be worth noting that the value of root-reserved space in this case isn't huge. This is /home, and reserving space for root there isn't as important as it is for other parts of the file system (e.g. to ensure system logs can still be written). Also, as this is an SSD, preventing fragmentation may not have the priority it does on spinning metal disks.

    – marcelm
    4 hours ago







1




1





The user is not "getting back" 8 GB. The are getting 8 GB more to spend. It would be better to track down what's using up all the disk space and then possibly do a cleanup of that, if appropriate, or otherwise move it elsewhere, or grow the partition.

– Kusalananda
14 hours ago





The user is not "getting back" 8 GB. The are getting 8 GB more to spend. It would be better to track down what's using up all the disk space and then possibly do a cleanup of that, if appropriate, or otherwise move it elsewhere, or grow the partition.

– Kusalananda
14 hours ago




1




1





@Kusalananda I'll change the vocabulary. As for the usage, I'd need OP's feedback. The question never hinted that there was unknown high usage, only missing 10GB.

– A.B
14 hours ago






@Kusalananda I'll change the vocabulary. As for the usage, I'd need OP's feedback. The question never hinted that there was unknown high usage, only missing 10GB.

– A.B
14 hours ago





1




1





A very good and helpful answer, thank you. 5% seems to match the missing 10 gigabytes very clearly. I am not worried about using so much disk space overall, and I can still grow my partition. :)

– tobiornottobi
9 hours ago






A very good and helpful answer, thank you. 5% seems to match the missing 10 gigabytes very clearly. I am not worried about using so much disk space overall, and I can still grow my partition. :)

– tobiornottobi
9 hours ago





2




2





Your answer is certainly correct, but it may be worth noting that the value of root-reserved space in this case isn't huge. This is /home, and reserving space for root there isn't as important as it is for other parts of the file system (e.g. to ensure system logs can still be written). Also, as this is an SSD, preventing fragmentation may not have the priority it does on spinning metal disks.

– marcelm
4 hours ago





Your answer is certainly correct, but it may be worth noting that the value of root-reserved space in this case isn't huge. This is /home, and reserving space for root there isn't as important as it is for other parts of the file system (e.g. to ensure system logs can still be written). Also, as this is an SSD, preventing fragmentation may not have the priority it does on spinning metal disks.

– marcelm
4 hours ago











1














Deleted files can also contribute to "missing space"



lsof | grep deleted | grep /home


returns this output for me



chrome 11181 criggie 15u REG 254,0 
4194304 50651663 /home/criggie/.config/google-chrome/BrowserMetrics/BrowserMetrics-5D0236AF-2BAD.pma (deleted)


Which shows that Chrome running as PID 11181 opened that BrowserMetrics file then deleted it, and still has the filehandle open. This means the file is invisible in a directory listing, but is still taking up disk space.



Why do programmes do this? When the running binary terminates, the OS will release the open file handle and the file on disk will be gone, without risk of leaving a stale temp-file around.



What I can't see is how big that file's disk usage is.






share|improve this answer























  • Most well-written programs should not do this. It's a bug, and should be reported, it's just that most of these obscure bugs don't really show up until you are in an optimization phase, and if it's a one off it may even not really be detected at all during testing. Note that there may be a specific reason why they are doing this, there may be a rationale I am not aware of here for keeping the handle open this long.

    – Drunken Code Monkey
    1 hour ago
















1














Deleted files can also contribute to "missing space"



lsof | grep deleted | grep /home


returns this output for me



chrome 11181 criggie 15u REG 254,0 
4194304 50651663 /home/criggie/.config/google-chrome/BrowserMetrics/BrowserMetrics-5D0236AF-2BAD.pma (deleted)


Which shows that Chrome running as PID 11181 opened that BrowserMetrics file then deleted it, and still has the filehandle open. This means the file is invisible in a directory listing, but is still taking up disk space.



Why do programmes do this? When the running binary terminates, the OS will release the open file handle and the file on disk will be gone, without risk of leaving a stale temp-file around.



What I can't see is how big that file's disk usage is.






share|improve this answer























  • Most well-written programs should not do this. It's a bug, and should be reported, it's just that most of these obscure bugs don't really show up until you are in an optimization phase, and if it's a one off it may even not really be detected at all during testing. Note that there may be a specific reason why they are doing this, there may be a rationale I am not aware of here for keeping the handle open this long.

    – Drunken Code Monkey
    1 hour ago














1












1








1







Deleted files can also contribute to "missing space"



lsof | grep deleted | grep /home


returns this output for me



chrome 11181 criggie 15u REG 254,0 
4194304 50651663 /home/criggie/.config/google-chrome/BrowserMetrics/BrowserMetrics-5D0236AF-2BAD.pma (deleted)


Which shows that Chrome running as PID 11181 opened that BrowserMetrics file then deleted it, and still has the filehandle open. This means the file is invisible in a directory listing, but is still taking up disk space.



Why do programmes do this? When the running binary terminates, the OS will release the open file handle and the file on disk will be gone, without risk of leaving a stale temp-file around.



What I can't see is how big that file's disk usage is.






share|improve this answer













Deleted files can also contribute to "missing space"



lsof | grep deleted | grep /home


returns this output for me



chrome 11181 criggie 15u REG 254,0 
4194304 50651663 /home/criggie/.config/google-chrome/BrowserMetrics/BrowserMetrics-5D0236AF-2BAD.pma (deleted)


Which shows that Chrome running as PID 11181 opened that BrowserMetrics file then deleted it, and still has the filehandle open. This means the file is invisible in a directory listing, but is still taking up disk space.



Why do programmes do this? When the running binary terminates, the OS will release the open file handle and the file on disk will be gone, without risk of leaving a stale temp-file around.



What I can't see is how big that file's disk usage is.







share|improve this answer












share|improve this answer



share|improve this answer










answered 3 hours ago









CriggieCriggie

8796 silver badges13 bronze badges




8796 silver badges13 bronze badges












  • Most well-written programs should not do this. It's a bug, and should be reported, it's just that most of these obscure bugs don't really show up until you are in an optimization phase, and if it's a one off it may even not really be detected at all during testing. Note that there may be a specific reason why they are doing this, there may be a rationale I am not aware of here for keeping the handle open this long.

    – Drunken Code Monkey
    1 hour ago


















  • Most well-written programs should not do this. It's a bug, and should be reported, it's just that most of these obscure bugs don't really show up until you are in an optimization phase, and if it's a one off it may even not really be detected at all during testing. Note that there may be a specific reason why they are doing this, there may be a rationale I am not aware of here for keeping the handle open this long.

    – Drunken Code Monkey
    1 hour ago

















Most well-written programs should not do this. It's a bug, and should be reported, it's just that most of these obscure bugs don't really show up until you are in an optimization phase, and if it's a one off it may even not really be detected at all during testing. Note that there may be a specific reason why they are doing this, there may be a rationale I am not aware of here for keeping the handle open this long.

– Drunken Code Monkey
1 hour ago






Most well-written programs should not do this. It's a bug, and should be reported, it's just that most of these obscure bugs don't really show up until you are in an optimization phase, and if it's a one off it may even not really be detected at all during testing. Note that there may be a specific reason why they are doing this, there may be a rationale I am not aware of here for keeping the handle open this long.

– Drunken Code Monkey
1 hour ago











tobiornottobi is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















tobiornottobi is a new contributor. Be nice, and check out our Code of Conduct.












tobiornottobi is a new contributor. Be nice, and check out our Code of Conduct.











tobiornottobi is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f527628%2fdisk-usage-confusion-10g-missing-on-linux-home-partition-on-ssd%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

Ласкавець круглолистий Зміст Опис | Поширення | Галерея | Примітки | Посилання | Навігаційне меню58171138361-22960890446Bupleurum rotundifoliumEuro+Med PlantbasePlants of the World Online — Kew ScienceGermplasm Resources Information Network (GRIN)Ласкавецькн. VI : Літери Ком — Левиправивши або дописавши її