TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: NELSO...@GMAIL.COM
from: MARTIN GREGORIE
date: 2021-01-31 23:12:00
subject: Re: Where are my backup f

On Sun, 31 Jan 2021 13:22:37 -0800, nelso...@gmail.com wrote:

> I recently encounted an i/o error on my backup NAS drive, so I ran fsck.
>  It indicated a bad superblock so I ran sudo fsck -b 8193 /dev/sdc1 and
> answered y to fixes.  Now I get this:
>
> pi@rpi4b:~/Downloads/complete $ sudo fsck.ext4 /dev/sdc1 e2fsck 1.44.5
> (15-Dec-2018)
> NAS8: clean, 22591/244191232 files, 1356495135/1953506304 blocks
> pi@rpi4b:~/Downloads/complete $ sudo mount -t ext4 /dev/sdc1 /mnt/NAS
> pi@rpi4b:~/Downloads/complete $ ls /mnt/NAS lost+found
> pi@rpi4b:~/Downloads/complete $ sudo ls /mnt/NAS lost+found
> pi@rpi4b:~/Downloads/complete $ sudo ls -a /mnt/NAS .  ..  lost+found
> pi@rpi4b:~/Downloads/complete $
>
>
> Where are my missing 22591 files?  Can I recover them?  I am running
> updated buster on my raspberry pi 4b w/ 4Gig.
> Thanks.
>   --Steven

/lost+found is normally empty on a clean partition with no disk errors

So, why do you think there are no files or directories on your NAS disk
since you apparently haven't run "sudo ls /" or "sudo df -h"?

How many files were you expecting to see?
Occupying how many GB?
Does "df -h" show anything like you expect?
How long is it since your last backup of the NAS disk(s)?
How many data/files/directories have you created or changed since your
last backup?

How how much irreplaceable stuff would you loose if you:
- check the NAS disk partition(s) and replace any that are damaged.
  Use parted or gparted for this: use parted if you're running the NAS
  via a terminal console or gparted if you're using a graphical desktop.

- reinstall the NAS OS from scratch

- restore the contents of the /home directory from your last backup

So, have a look at your RPi's filing system as I suggest above, work out
how much important stuff stuff you've lost and then work out a recovery
plan and execute it.

This is what I do and, since I'm paranoid about making backups and
keeping them offline in a firesafe:

- My house server is backed up overnight every night to a permanently
  connected external USB drive for protection against finger-trouble.

- All my computers and backed up weekly to two generations of USB drives
  which are kept offline in a firesafe.

As a result I haven't lost any data I care about despite having had
several disk drives fail permanently over the last 30 years or so.

I hope this gives you some ideas about what to look at and determine
whether the NAS drive is recoverable and, if it is, how to do a partial
restore to it.


--
--
Martin    | martin at
Gregorie  | gregorie dot org

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.