Page 1 of 1

SDXC SunDisk 512Gb - trying to partittion recovery, help!

Posted: 10 Jan 2023, 12:38
by Vladistone
I'm trying to restore SDXC storage (as /dev/disk6) due to accidental unsafe ejection of the flash drive from the Mac 10.13.6 with APFS
- the card with MacOS Extended (Journaled) volume formated isn`t be mounted and it`s staying hard-coded in the Disk Utility properties as "Writable - NO".
This is what I got after analyzing (testdisk.log):

Code: Select all

Tue Jan 10 21:00:42 2023
Command line: TestDisk

TestDisk 7.2-WIP, Data Recovery Utility, November 2022
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Darwin, kernel 17.7.0 (Darwin Kernel Version 17.7.0: Fri Oct 30 13:34:27 PDT 2020; root:xnu-4570.71.82.8~1/RELEASE_X86_64) x86_64
Compiler: GCC 4.2
ext2fs lib: 1.46.2, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 5.7
Hard disk list
Disk /dev/disk3 - 536 GB / 500 GiB - 1048780800 sectors (RO), sector size=512
Disk /dev/disk4 - 536 GB / 500 GiB - 1048780800 sectors, sector size=512
Disk /dev/disk5 - 15 GB / 14 GiB - 30218842 sectors (RO), sector size=512
Disk /dev/disk6 - 536 GB / 500 GiB - 1048780800 sectors, sector size=512
Disk /dev/rdisk2 - 661 GB / 616 GiB - 161529959 sectors (RO), sector size=4096
Disk /dev/rdisk3 - 536 GB / 500 GiB - 1048780800 sectors (RO), sector size=512
Disk /dev/rdisk4 - 536 GB / 500 GiB - 1048780800 sectors, sector size=512
Disk /dev/rdisk5 - 15 GB / 14 GiB - 30218842 sectors (RO), sector size=512
Disk /dev/rdisk6 - 536 GB / 500 GiB - 1048780800 sectors, sector size=512

Partition table type (auto): EFI GPT
Disk /dev/rdisk6 - 536 GB / 500 GiB
Partition table type: EFI GPT

Analyse Disk /dev/rdisk6 - 536 GB / 500 GiB - 1048780800 sectors
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=1048780799 (expected 1048780799)
hdr_lba_start=34
hdr_lba_end=1048780766
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
Current partition structure:
 1 P EFI System                    40     409639     409600 [EFI System Partition]
 2 P Mac HFS                   409640 1048518615 1048108976
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
  Referenced from: /Users/vladistone/Downloads/HDD Doctor/testdisk-7.2-WIP/./testdisk (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ____chkstk_darwin
  Referenced from: /Users/vladistone/Downloads/HDD Doctor/testdisk-7.2-WIP/./testdisk (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib
after run the pdisk I got the result info after step of "size of First block" input :

Code: Select all

Last login: Tue Jan 10 20:59:47 on ttys000
iMac3:~ vladistone$ sudo pdisk /dev/rdisk6
Password:
pdisk: No valid block 1 on '/dev/rdisk6'
Edit /dev/rdisk6 -
Command (? for help): i
A physical block is 512 bytes: 
A logical block is 512 bytes: 
size of 'device' is 1048780800 blocks (512 byte blocks): 
new size of 'device' is 1048780800 blocks (512 byte blocks)
Command (? for help): c
First block: 40
Length in blocks: 409600
Name of partition: EFI System Partition
requested base and length is not within an existing free partition
Bad size
Command (? for help): 
it confuse me afte this step infore:
"requested base and length is not within an existing free partition
Bad size"

What am I missing and doing is wrong?? or the sequence of actions? or something else I lose sight of?

Any help for troubleshooting?

Re: CD SunDisk 512Gb - trying to partittion recovery, help!

Posted: 10 Jan 2023, 14:56
by recuperation
Vladistone wrote: 10 Jan 2023, 12:38 I'm trying to restore CD-card storage (as /dev/disk6) due to accidental unsafe ejection of the flash drive from the Mac 10.13.6 with APFS
I don't know what CD-card storage should mean. "CD" means "compact disc" to me.
- the card isn`t be mounted with the MacOS Extended (Journaled) volume and it is stay hard-coded in the Disk Utility properties as Writable - NO!
I don't understand what you mean.
This is what I got after analyzing (testdisk.log):

Code: Select all

Tue Jan 10 21:00:42 2023
Command line: TestDisk

TestDisk 7.2-WIP, Data Recovery Utility, November 2022
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org
OS: Darwin, kernel 17.7.0 (Darwin Kernel Version 17.7.0: Fri Oct 30 13:34:27 PDT 2020; root:xnu-4570.71.82.8~1/RELEASE_X86_64) x86_64
Compiler: GCC 4.2
ext2fs lib: 1.46.2, ntfs lib: libntfs-3g, reiserfs lib: none, ewf lib: none, curses lib: ncurses 5.7
Hard disk list
Disk /dev/disk3 - 536 GB / 500 GiB - 1048780800 sectors (RO), sector size=512
Disk /dev/disk4 - 536 GB / 500 GiB - 1048780800 sectors, sector size=512
Disk /dev/disk5 - 15 GB / 14 GiB - 30218842 sectors (RO), sector size=512
Disk /dev/disk6 - 536 GB / 500 GiB - 1048780800 sectors, sector size=512
Disk /dev/rdisk2 - 661 GB / 616 GiB - 161529959 sectors (RO), sector size=4096
Disk /dev/rdisk3 - 536 GB / 500 GiB - 1048780800 sectors (RO), sector size=512
Disk /dev/rdisk4 - 536 GB / 500 GiB - 1048780800 sectors, sector size=512
Disk /dev/rdisk5 - 15 GB / 14 GiB - 30218842 sectors (RO), sector size=512
Disk /dev/rdisk6 - 536 GB / 500 GiB - 1048780800 sectors, sector size=512

Partition table type (auto): EFI GPT
Disk /dev/rdisk6 - 536 GB / 500 GiB
Partition table type: EFI GPT

Analyse Disk /dev/rdisk6 - 536 GB / 500 GiB - 1048780800 sectors
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=1048780799 (expected 1048780799)
hdr_lba_start=34
hdr_lba_end=1048780766
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
Current partition structure:
 1 P EFI System                    40     409639     409600 [EFI System Partition]
 2 P Mac HFS                   409640 1048518615 1048108976
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
  Referenced from: /Users/vladistone/Downloads/HDD Doctor/testdisk-7.2-WIP/./testdisk (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ____chkstk_darwin
  Referenced from: /Users/vladistone/Downloads/HDD Doctor/testdisk-7.2-WIP/./testdisk (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib
after run the pdisk I got the result info after step of "size of First block" input :

Code: Select all

Last login: Tue Jan 10 20:59:47 on ttys000
iMac3:~ vladistone$ sudo pdisk /dev/rdisk6
Password:
pdisk: No valid block 1 on '/dev/rdisk6'
Edit /dev/rdisk6 -
Command (? for help): i
A physical block is 512 bytes: 
A logical block is 512 bytes: 
size of 'device' is 1048780800 blocks (512 byte blocks): 
new size of 'device' is 1048780800 blocks (512 byte blocks)
Command (? for help): c
First block: 40
Length in blocks: 409600
Name of partition: EFI System Partition
requested base and length is not within an existing free partition
Bad size
Command (? for help): 
it confuse me afte this step infore:
"requested base and length is not within an existing free partition
Bad size"

What am I missing and doing is wrong?? or the sequence of actions? or something else I lose sight of?

Any help for troubleshooting?
For pdisk support please contact Apple.

Re: CD SunDisk 512Gb - trying to partittion recovery, help!

Posted: 11 Jan 2023, 00:43
by Vladistone
thanks for the answer, but I'm interested in the testdisk reaction to the above, which I discovered at the last moment after posting the log-file

Code: Select all

dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
  Referenced from: /Users/vladistone/Downloads/HDD Doctor/testdisk-7.2-WIP/./testdisk (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ____chkstk_darwin
  Referenced from: /Users/vladistone/Downloads/HDD Doctor/testdisk-7.2-WIP/./testdisk (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib
and about pdisk - its reaction to the installation of this information of testdisk - is it correctly?

Code: Select all

Current partition structure:
 1 P EFI System                    40     409639     409600 [EFI System Partition]
 2 P Mac HFS                   409640 1048518615 1048108976
any ideas?

Re: CD SunDisk 512Gb - trying to partittion recovery, help!

Posted: 11 Jan 2023, 00:58
by Vladistone
recuperation wrote: 10 Jan 2023, 14:56 I don't know what CD-card storage should mean. "CD" means "compact disc" to me.
pardon for my mistake, it was meant - the SDXC card - https://ru.wikipedia.org/wiki/Secure_Digital
recuperation wrote: 10 Jan 2023, 14:56 I don't understand what you mean
according to the situation I described above - this is similar to the behavior of the external USB flash-disk described in this commercial with only one difference - my SDXC card was format Mac OS Extended
https://www.youtube.com/watch?v=8qr1y4xqekI&t=12s
and one more time - sorry for my english

Re: SDXC SunDisk 512Gb - trying to partittion recovery, help!

Posted: 11 Jan 2023, 10:31
by recuperation
Please check the manual as it contains detailed instructions how to compile and how to run Testdisk on Mac:

https://www.cgsecurity.org/testdisk.pdf

I don't have a Mac and can't support you with Mac-specific issues and programs.