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

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

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

Could you fall off a planet if it was being accelerated by engines?

Why did the Apple IIe make a hideous noise if you inserted the disk upside down?

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

How to count the number of bytes in a file, grouping the same bytes?

How do I tell my girlfriend she's been buying me books by the wrong author for the last nine months?

What is the meaning of "it" in "as luck would have it"?

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

ATMEGA328P-U vs ATMEGA328-PU

Do electrons really perform instantaneous quantum leaps?

Why didn't Caesar move against Sextus Pompey immediately after Munda?

Why was Pan Am Flight 103 flying over Lockerbie?

Installed software from source, how to say yum not to install it from package?

Odd PCB Layout for Voltage Regulator

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

How does the 'five minute adventuring day' affect class balance?

Why are examinees often not allowed to leave during the start and end of an exam?

Does "boire un jus" tend to mean "coffee" or "juice of fruit"?

Simplify the code

Find the closest three-digit hex colour

How much of a mortgage should I take on to maximize my 5 year financial plan?

Why should I allow multiple IP addresses on a website for a single session?

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
    15 hours ago












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

    – ctrl-alt-delor
    12 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
    10 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
    10 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
    15 hours ago












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

    – ctrl-alt-delor
    12 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
    10 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
    10 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 1 hour 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 16 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
    15 hours ago












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

    – ctrl-alt-delor
    12 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
    10 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
    10 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
    15 hours ago












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

    – ctrl-alt-delor
    12 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
    10 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
    10 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
15 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
15 hours ago














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

– ctrl-alt-delor
12 hours ago





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

– ctrl-alt-delor
12 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
10 hours ago





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

– tobiornottobi
10 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
10 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
10 hours ago










2 Answers
2






active

oldest

votes


















10














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
    15 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
    15 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
    10 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
    5 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
    2 hours ago












  • @DrunkenCodeMonkey Dude - its Chrome... you're totally correct.

    – Criggie
    7 mins 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









10














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
    15 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
    15 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
    10 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
    5 hours ago















10














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
    15 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
    15 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
    10 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
    5 hours ago













10












10








10







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 15 hours ago

























answered 16 hours ago









A.BA.B

7,5551 gold badge13 silver badges35 bronze badges




7,5551 gold badge13 silver badges35 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
    15 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
    15 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
    10 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
    5 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
    15 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
    15 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
    10 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
    5 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
15 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
15 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
15 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
15 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
10 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
10 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
5 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
5 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
    2 hours ago












  • @DrunkenCodeMonkey Dude - its Chrome... you're totally correct.

    – Criggie
    7 mins 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
    2 hours ago












  • @DrunkenCodeMonkey Dude - its Chrome... you're totally correct.

    – Criggie
    7 mins 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 4 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
    2 hours ago












  • @DrunkenCodeMonkey Dude - its Chrome... you're totally correct.

    – Criggie
    7 mins 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
    2 hours ago












  • @DrunkenCodeMonkey Dude - its Chrome... you're totally correct.

    – Criggie
    7 mins 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
2 hours 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
2 hours ago














@DrunkenCodeMonkey Dude - its Chrome... you're totally correct.

– Criggie
7 mins ago





@DrunkenCodeMonkey Dude - its Chrome... you're totally correct.

– Criggie
7 mins 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

ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу