ext4 drive now shows no filesystem or files after adding USB drive (Odroid-HC4, Armbian)

  • Brief history:

    Did 90% of OMV setup 1 year ago

    2 SATA drives (ext4) in ODROID HC4, OMV installed on microSD card. Snapraid installed but I don't think I installed it correctly (didn't set it to run or do a first run I think).

    Dusted off my setup

    Updated everything

    Added USB HDD (ntfs)

    Immediately, OMV can't recognize one of my SATA drives. I see a new UUID for the same drive. No file systems that I can find. I put the drive in another PC and booted into kubuntu 20.04.3 live and still couldn't find any filesystems. Tried searching for superblocks and failed.


    I know almost nothing about Linux HDD recovery so don't assume I tried something already. It could be very basic. Or maybe the drive is dead.


    I looked at this guide but didn't see much relevant. I still need to run lspci in verbose mode. I'll have logs after work but wanted to see if it's a simple issue.


    System check and harddisk/raid speed tests in a nutshell

  • I ran testdisk and then reboot. It's been unresponsive for hours. Rebooted my router and none of the dhcp leases are for the odroid. The Network LED for the odroid is blinking and there are vibrations and noise from the drive(s). Would align partition take hours?


    /dev/sda: LBA, HPA, LBA48 support

    /dev/sda: size 3907029168 sectors

    /dev/sda: user_max 3907029168 sectors

    /dev/sda: native_max 3907029168 sectors

    Using locale 'C.UTF-8'.



    Thu Jan 20 18:37:15 2022

    Command line: TestDisk /log /dev/sda


    TestDisk 7.0, Data Recovery Utility, April 2015

    Christophe GRENIER <grenier@cgsecurity.org>

    http://www.cgsecurity.org

    OS: Linux, kernel 5.10.81-meson64 (#21.08.6 SMP PREEMPT Mon Nov 22 11:21:51 UTC 2021) aarch64

    Compiler: GCC 8.2

    ext2fs lib: 1.44.5, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 6.1

    Hard disk list

    Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - ST2000DM008-2FR102, S/N:ZK201FE8, FW:0001


    Partition table type (auto): EFI GPT

    Disk /dev/sda - 2000 GB / 1863 GiB - ST2000DM008-2FR102

    Partition table type: EFI GPT


    Analyse Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63

    Bad GPT partition, invalid signature.

    Trying alternate GPT

    1 P Unknown 2048 3907029134 3907027087

    Current partition structure:

    Bad GPT partition, invalid signature.

    Trying alternate GPT

    1 P Unknown 2048 3907029134 3907027087


    search_part()

    Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63

    MS Data 2048 3907029127 3907027080 [seagate2tb]

    ext4 blocksize=4096 Large_file Sparse_SB, 2000 GB / 1863 GiB


    interface_write()

    1 P MS Data 2048 3907029127 3907027080 [seagate2tb]

    write!

    No extended partition

    You will have to reboot for the change to take effect.

    New options :

    Dump : No

    Align partition: Yes

    Expert mode : No


    Interface Advanced

    1 P MS Data 2048 3907029127 3907027080 [seagate2tb]

    ext4 blocksize=4096 Large_file Sparse_SB, 2000 GB / 1863 GiB


    ext2fs_read_inode(ino=11) failed with error 2133571474.

    ext2fs_read_inode(ino=5242881) failed with error 1.

    ext2fs_read_inode(ino=17) failed with error 2133571474.

    ext2fs_read_inode(ino=16) failed with error 2133571474.

    ext2fs_read_inode(ino=110624769) failed with error 1.

    ext2fs_read_inode(ino=114425857) failed with error 1.

    ext2fs_read_inode(ino=110755841) failed with error 1.

    ext2fs_read_inode(ino=110886913) failed with error 1.

    ext2fs_read_inode(ino=111017985) failed with error 1.

    ext2fs_read_inode(ino=113246209) failed with error 1.

    ext2fs_read_inode(ino=114425857) failed with error 1.

    Directory /

    2 drwxrwsr-x 0 1001 4096 19-Jan-2022 08:59 .

    2 drwxrwsr-x 0 1001 4096 19-Jan-2022 08:59 ..

    18 -rw------- 0 1001 250125 19-Jan-2022 08:59 snapraid.content

    X 18 -rw------- 0 1001 250125 19-Jan-2022 08:59 snapraid.content.tmp


    TestDisk exited normally.

    • Official Post

    First NTFS can be problematic when used with OMV. (Just a note.)

    A couple questions:

    - The added NTFS hard drive - is it USB powered (by the HC4)? Or is it in a drive dock or, maybe, powered by a USB hub? (The reason why this is mentioned is powering hard drives can be problematic with SBC's. An HC4 recommends a 4amp supply, minimum, for two on-board drives.

    - Have you looked look at SMART data for the drive you think is / has failed?



    If you haven't done it already, I would disconnect the NTFS drive, reboot and hope for the best. (Then maybe connect the NTFS drive to a WIndows box and check it with CrystalDiskInfo or a similar package.) You can examine OMV's drives with the GUI's SMART utilities.


    I know almost nothing about Linux HDD recovery so don't assume I tried something already. It could be very basic. Or maybe the drive is dead.

    I really hate to say this:
    The only reason why anyone would attempt to recover a drive is because they don't have backup. Sometimes drive recovery works, sometimes it doesn't, but it's not even necessary with confirmed backup.

    The first thing I would do, however, is look at SMART stat's.
    Raw counts, higher than 1 or 2, in any of the following are bad news:


    SMART 5 – Reallocated_Sector_Count.

    SMART 187 – Reported_Uncorrectable_Errors.

    SMART 188 – Command_Timeout.

    SMART 197 – Current_Pending_Sector_Count.

    SMART 198 – Offline_Uncorrectable.

    ________________________________________________________________________

    I believe gderf knows something about Linux drive recovery. Perhaps he might have something for you.

  • I believe gderf knows something about Linux drive recovery. Perhaps he might have something for you.

    Sorry, I do not other than running fsck.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • Photorec / TestDisk on an x86 linux distro seems to be able to recover the files. It's going to take several days for 2 TB. This is a huge error and I still don't know what caused it. https://www.tecmint.com/photor…eted-lost-files-in-linux/

    I'm not concerned about the drive I just don't want this flaw to come back once I turn this into a real NAS and not a toy system. I still don't plan on making the NAS my single point of failure, but recovering from backup errors is annoying, takes time, and puts strain on my other drives.


    Phonerec was taking forever and doesn't give me filenames, so I killed it. I have the original data so I'll copy it again.



    - The added NTFS hard drive - is it USB powered (by the HC4)? Or is it in a drive dock or, maybe, powered by a USB hub? (The reason why this is mentioned is powering hard drives can be problematic with SBC's. An HC4 recommends a 4amp supply, minimum, for two on-board drives.

    USB powered, usb3 "p10" WD black https://www.amazon.com/WD_Blac…20BBK-WESN/dp/B07VMTNDMK/


    The HC4 has 2 onboard drives (3.5" desktop HDDs) and the USB drive (2.5 inch) all drawing power. The PSU is 15V/4A Power Supply × 1 from Ameridroid.


    - Have you looked look at SMART data for the drive you think is / has failed?


    Everything looks fine. It's almost a brand new drive (albeit I could be hitting the early part of the bathtub curve).

    Ran this on a kubuntu live USB on a totally different x86 device (not OMV).

  • Reinstalled basically everything. Fresh armbian, fresh bootloader (petitboot), fresh OMV 5. Formatted all 3 drives to GPT and ext4. Also made one of them 1 big partition. (Before, it was two partitions: 2TB and 1TB).


    I notice that the 'disks' field of the omv webui says "/dev/sda" , b, c. Before, I thought some/all of them were /dev/disk/by-uuid/...


    Maybe the clue to the bug is in there somewhere? I also switched the 'problem' drive to the other SATA slot on the odroid hc4. We'll see if the drive swap makes the 'good' drive start misbehaving.


    When plugged into a monitor, the boot sequence still seems to look for 2 or 3 drives by uuid. I opened up config.xml and couldn't find where it was pulling that from. One of them showed up in the disks webUI and I removed it.

    • Official Post

    I notice that the 'disks' field of the omv webui says "/dev/sda" , b, c. Before, I thought some/all of them were /dev/disk/by-uuid/...

    This depends on what version of OMV you're using. OMV5 displays disk by UUID. OMV6 displays, by default, device names. By-uuid can be added by adding the mount point column. This is not a bug.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!