namingthingsiseasy,

First thing is to not mount it at all. Any writes to the overwritten partition will corrupt your data.

Second thing: install system rescue cd to a live usb and boot it. Look into testdisk and photorec. It’s been a while since I’ve had to use these tools, but I believe testdisk can restore the partition and photorec can find files in a file system that has been deleted. I would try running photorec first to save the recovered files to an external hard disk, and then testdisk to try restoring them. But disclaimer: it’s been a while since I’ve had to do this, so my memory is foggy here.

Good luck!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • 200 @ entry_comment_voters
    HTTP status 200 OK
    Route name entry_comment_voters
    Has session yes
    Stateless Check no
    Time 1159 ms
    Total time 1159 ms
    Initialization time 135 ms
    Memory 14.0 MiB
    Peak memory usage 14.0 MiB
    PHP memory limit 128 MiB
    Logger 87
    Errors 0
    Warnings 0
    Deprecations 87
    Cache 51 in 798.38 ms
    Cache Calls 51
    Total time 798.38 ms
    Cache hits 41 / 58 (70.69%)
    Cache writes 12
    2
    Default locale en
    Missing messages 2
    Fallback messages 0
    Defined messages 122
    Security n/a
    Authenticated No
    Firewall name main
    Twig 881 ms
    Render Time 881 ms
    Template Calls 88
    Block Calls 16
    Macro Calls 6
    59 in 803 ms
    settings_row_switch 15
    user_avatar 13
    date 6
    user_settings_row_switch 4
    magazine_inline 3
    user_inline 2
    settings_row_enum 2
    entry_comment 1
    date_edited 1
    vote 1
    boost 1
    user_actions 1
    magazine_box 1
    magazine_sub 1
    related_magazines 1
    active_users 1
    related_categories 1
    related_posts 1
    related_entries 1
    support_us_block 1
    featured_magazines 1
    15 in 619.67 ms
    Database Queries 15
    Different statements 15
    Query time 619.67 ms
    Invalid entities 0
    Cache hits 35
    Cache misses 2
    Cache puts 2
    6.4.0
    Profiler token ff1ca9
    Environment dev
    Debug enabled
    PHP version 8.2.26   View phpinfo()
    PHP Extensions Xdebug ✗ APCu ✓ OPcache ✓
    PHP SAPI apache2handler