On 5/1/25 9:12 PM, home user via users wrote:
(F-42; stand-alone workstation; Gnome)

snip
But now when I insert the back-up stick into a port on either tower, it's claimed the back-up stick is un-formatted and empty.  Fedora's "disks" and windows-10 (file browser and defender) agree. I do not recall which file system the back-up stick was formatted with beforehand.

How can I recover the back-up (without cost)?
Note that I'm needing to recover the back-up as a whole, not just a file or 2 from a back-up.


Before trying what y'all suggested overnight...
Just after my original post, before shutting down for the night, I tried "testdisk". The log file is almost 41 thousand lines long. I included the first and last parts below the body of this post. This program is time-consuming. I recovered nothing. Questions: * Is it worth trying this again with different "number of heads/cylinder" and/or "number of sectors per track"?
* Is it worth trying this again using the non-partitioned option?

= = = = = = = = = = = = = = =

Thu May  1 21:44:00 2025
Command line: TestDisk

TestDisk 7.2, Data Recovery Utility, February 2024
Christophe GRENIER <gren...@cgsecurity.org>
https://www.cgsecurity.org
OS: Linux, kernel 6.14.3-300.fc42.x86_64 (#1 SMP PREEMPT_DYNAMIC Sun Apr 20 16:08:39 UTC 2025) x86_64
Compiler: GCC 15.0
ext2fs lib: 1.47.2, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: 20140608, curses lib: ncurses 6.5
/dev/sda: LBA, HPA, LBA48, DCO support
/dev/sda: size       3907029168 sectors
/dev/sda: user_max   3907029168 sectors
/dev/sda: native_max 3907029168 sectors
Warning: can't get size for Disk /dev/mapper/control - 0 B - 0 sectors, sector size=512
Hard disk list
Disk /dev/sda - 2000 GB / 1863 GiB - CHS 243201 255 63, sector size=512 - ST2000DM006-2DM1, FW:CC26 Disk /dev/sdb - 15 GB / 14 GiB - CHS 14786 64 32, sector size=512 - Phison USB DISK 50X, FW:PMAP

Partition table type (auto): Intel
Disk /dev/sdb - 15 GB / 14 GiB - Phison USB DISK 50X
Partition table type: Intel

Analyse Disk /dev/sdb - 15 GB / 14 GiB - CHS 14786 64 32
Geometry from i386 MBR: head=43 sector=43
BAD_RS LBA=8064 2048
FAT32 at 3/60/1
Info: size boot_sector 30274944, partition 30274944
FAT1 : 10144-17535
FAT2 : 17536-24927
start_rootdir : 24928 root cluster : 2
Data : 24928-30274943
sectors : 30274944
cluster_size : 32
no_of_cluster : 945313 (2 - 945314)
fat_length 7392 calculated 7386
heads/cylinder 128 (FAT) != 64 (HD)
sect/track 63 (FAT) != 32 (HD)
Current partition structure:
Warning: number of heads/cylinder mismatches 128 (FAT) != 64 (HD)
Warning: number of sectors per track mismatches 63 (FAT) != 32 (HD)
 1 P FAT32 LBA                3  60  1 14786  39 32   30274944 [USB DISK]

Warning: Bad ending sector (CHS and LBA don't match)
No partition is bootable

search_part()
Disk /dev/sdb - 15 GB / 14 GiB - CHS 14786 64 32
FAT32 at 3/60/1
FAT1 : 10144-17535
FAT2 : 17536-24927
start_rootdir : 24928 root cluster : 2
Data : 24928-30274943
sectors : 30274944
cluster_size : 32
no_of_cluster : 945313 (2 - 945314)
fat_length 7392 calculated 7386
heads/cylinder 128 (FAT) != 64 (HD)
sect/track 63 (FAT) != 32 (HD)

FAT32 at 3/60/1
FAT: cluster=2(0x2), pos=32992
     FAT32 LBA                3  60  1 14786  39 32   30274944 [USB DISK]
     FAT32, blocksize=16384, 15 GB / 14 GiB
Warning: the current number of heads per cylinder is 64 but the correct value may be 255.

Results
   L FAT32 LBA                3  60  1 14786  39 32   30274944 [USB DISK]
     FAT32, blocksize=16384, 15 GB / 14 GiB

Hint for advanced users: dmsetup may be used if you prefer to avoid rewriting the partition table for the moment:
echo "0 30274944 linear /dev/sdb 8064" | dmsetup create test0
add_ext_part_i386: max
add_ext_part_i386: min

interface_write()
 1 E extended LBA             3   0  1 14786  39 32   30276864
 5 L FAT32 LBA                3  60  1 14786  39 32   30274944 [USB DISK]

search_part()
Disk /dev/sdb - 15 GB / 14 GiB - CHS 14786 64 32
FAT32 at 3/60/1
FAT1 : 10144-17535
FAT2 : 17536-24927
start_rootdir : 24928 root cluster : 2
Data : 24928-30274943
sectors : 30274944
cluster_size : 32
no_of_cluster : 945313 (2 - 945314)
fat_length 7392 calculated 7386
heads/cylinder 128 (FAT) != 64 (HD)
sect/track 63 (FAT) != 32 (HD)

FAT32 at 3/60/1
FAT: cluster=2(0x2), pos=32992
     FAT32 LBA                3  60  1 14786  39 32   30274944 [USB DISK]
     FAT32, blocksize=16384, 15 GB / 14 GiB
BAD_RS LBA=1064832 2048
heads/cylinder 128 (FAT) != 64 (HD)
sect/track 63 (FAT) != 32 (HD)
BAD_RS LBA=2121600 2048
heads/cylinder 128 (FAT) != 64 (HD)
sect/track 63 (FAT) != 32 (HD)
BAD_RS LBA=3178368 2048
heads/cylinder 128 (FAT) != 64 (HD)
sect/track 63 (FAT) != 32 (HD)
BAD_RS LBA=4235136 2048
[... snip ...]
BAD_RS LBA=22200192 2048
heads/cylinder 128 (FAT) != 64 (HD)
sect/track 63 (FAT) != 32 (HD)
BAD_RS LBA=23256960 2048
heads/cylinder 128 (FAT) != 64 (HD)
sect/track 63 (FAT) != 32 (HD)
BAD_RS LBA=24313728 2048
heads/cylinder 128 (FAT) != 64 (HD)
sect/track 63 (FAT) != 32 (HD)
file_pread(5,16,buffer,25378942(12392/3/31)) read err: Input/output error
file_pread(5,1,buffer,25378942(12392/3/31)) read err: Input/output error
file_pread(5,2,buffer,25380864(12393/0/1)) read err: Input/output error
[... snip ...]
file_pread(5,11,buffer,30281918(14786/5/31)) read err: read after end of file
file_pread(5,8,buffer,30282752(14786/32/1)) read err: read after end of file
file_pread(5,8,buffer,30282880(14786/36/1)) read err: read after end of file
Warning: the current number of heads per cylinder is 64 but the correct value may be 255.

Results
   L FAT32 LBA                3  60  1 14786  39 32   30274944 [USB DISK]
     FAT32, blocksize=16384, 15 GB / 14 GiB

Hint for advanced users: dmsetup may be used if you prefer to avoid rewriting the partition table for the moment:
echo "0 30274944 linear /dev/sdb 8064" | dmsetup create test0
file_pread(5,1,buffer,8064(3/60/1)) read err: read after end of file
Can't read FAT boot sector.
Can't read FAT boot sector.

   L FAT32 LBA                3  60  1 14786  39 32   30274944 [USB DISK]
     FAT32, blocksize=16384, 15 GB / 14 GiB
Can't open filesystem. Filesystem seems damaged.
Can't read FAT boot sector.
Can't read FAT boot sector.

   L FAT32 LBA                3  60  1 14786  39 32   30274944 [USB DISK]
     FAT32, blocksize=16384, 15 GB / 14 GiB
Can't open filesystem. Filesystem seems damaged.
add_ext_part_i386: max
add_ext_part_i386: min

interface_write()
 1 E extended LBA             3   0  1 14786  39 32   30276864
 5 L FAT32 LBA                3  60  1 14786  39 32   30274944 [USB DISK]
simulate write!

write_mbr_i386: starting...
file_pread(5,1,buffer,0(0/0/1)) read err: read after end of file

Partition: Read error
Store new MBR code
write_all_log_i386: starting...
write_all_log_i386: CHS: 3/0/1,lba=6144
file_pread(5,1,buffer,6144(3/0/1)) read err: read after end of file

TestDisk exited normally.

= = = = = = = = = = = = = = =

--
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to