On 3/16/21 11:17 AM, g4sra via Dng wrote:
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Tuesday, March 16, 2021 2:32 PM, Marc Shapiro via Dng <dng@???> wrote:
>
> > On 3/16/21 2:32 AM, g4sra via Dng wrote:
> >
> > > <--snip-->
> > > With your removable drive attached and mounted...
> > > Paste the outputs of 'mount' and 'df' when run as root.
> >
> > The drive in question is /dev/sdb1.
> >
> > root:/home/marc# mount
> > /dev/sdb1 on /media/archives type ext4 (rw,nosuid,nodev,noexec,relatime,user)
> >
> > root:/home/marc# df
> > Filesystem 1K-blocks Used Available Use% Mounted on
> > /dev/sdb1 1663749752 1267718540 311447996 81% /media/archives
> >
>
> Good, that answered some of my queries.
> Now as root again, paste the output of a comparative usage of the directory structure immediately above where the files were that you deleted.
>
> For example if you have
>
> /media/archives/2021/march/january
> /media/archives/2021/march/february
>
> then execute
>
> du -s /media/archives/2021/march/*
>
>
> /media/archives/january
> /media/archives/february
>
> then execute
>
> du -s /media/archives/*
>
>
> expect an output that ends with a 'january'
>
> root:/home/marc# du -s /media/archives/*
> 9913216 /media/archives/january
> 43905428 /media/archives/february
> 219244 /media/archives/march
>
> I cannot make the following judgement, hopefully you can.
> Compare the directories usage, as you know their expected contents determine if it makes sense.
> An extra 200GB somewhere should stick out like a sore thumb.
>
> Once you are certain where the extra usage is, you can work on that directory alone.
> My very first check would be sorting by size including .dotfiles
>
>
> ls -alrS /media/archives/january
The difference in space used as shown by 'ls' and by 'du -s' is very
minimal and can be explained by the fact that 'ls' does not take
allocation block size into account, but 'du -s' does.
Marc