You are not logged in.

#1 2021-12-14 18:55:42

ilMistico
Member
Registered: 2021-11-13
Posts: 40

[Solved] Can't mount .dd file

Hi. I've used testdisk for rescue data from an sdcard damaged. Now i've a .dd file of 120 gb, but i can't mount the file. I've use "sudo mount -o loop file.dd /mnt" and the output is: "mount: /mnt: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error".

Any ideas? Please, help me. Thanks.

edit.

Solved using photorec. Thanks to all.

Last edited by ilMistico (2021-12-15 09:10:27)

Offline

#2 2021-12-14 19:39:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,690

Re: [Solved] Can't mount .dd file

My hunch is that it the file contains partitions.

Try  sudo losetup -P /dev/loop0 file.dd
Then, look at ls -l /dev/loop* 
for things like loop0p1 or loop0p2
If they exist, mount those on /mnt


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2021-12-14 19:57:43

ilMistico
Member
Registered: 2021-11-13
Posts: 40

Re: [Solved] Can't mount .dd file

No. The only loop* files in /dev are: /dev/loop0 and /dev/loop-control.

Offline

#4 2021-12-14 20:02:05

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [Solved] Can't mount .dd file

What does this say

parted file.dd print

Jin, Jîyan, Azadî

Offline

#5 2021-12-14 20:09:24

ilMistico
Member
Registered: 2021-11-13
Posts: 40

Re: [Solved] Can't mount .dd file

Head_on_a_Stick wrote:

What does this say

parted file.dd print

Error: /home/andrea/image.dd: Disk label not recognized
Model: (file)
Disk /home/andrea/image.dd: 128GB
Sector size (logic/physics): 512B/512B
Partition table: unknown
Disc flag:

Offline

#6 2021-12-14 20:42:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,690

Re: [Solved] Can't mount .dd file

ilMistico wrote:

No. The only loop* files in /dev are: /dev/loop0 and /dev/loop-control.

After running losetup? or before?

BTW, I tried the command you gave on a file that I have that I know had two partitions.  It gave the error you reported.
I then tried the command I provided, got the *p0 and *p1 loop files, mounted the later, and it worked.  If it does not work for you, I fear that points to your image.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2021-12-14 20:42:12

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [Solved] Can't mount .dd file

Looks like there's nothing there but I've never used testdisk so I'm groping around in the dark here.

How about

wipefs image.dd
file image.dd

Somebody more familiar with testdisk may be able to offer better advice.


Jin, Jîyan, Azadî

Offline

#8 2021-12-14 20:44:32

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,690

Re: [Solved] Can't mount .dd file

HoaS, I ran your command on my file....

ewaller@odin ~ $ parted holtusb print
WARNING: You are not superuser.  Watch out for permissions.
Warning: Unable to open /home/ewaller/holtusb read-write (Permission denied).  /home/ewaller/holtusb has been opened read-only.
Model:  (file)
Disk /home/ewaller/holtusb: 123GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start   End    Size    Type     File system     Flags
 2      1049kB  119GB  119GB   primary  ext4            boot
 1      119GB   123GB  3999MB  primary  linux-swap(v1)

ewaller@odin ~ $  

It isn't your incantation.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#9 2021-12-14 20:48:03

ilMistico
Member
Registered: 2021-11-13
Posts: 40

Re: [Solved] Can't mount .dd file

ewaller wrote:
ilMistico wrote:

No. The only loop* files in /dev are: /dev/loop0 and /dev/loop-control.

After running losetup? or before?

BTW, I tried the command you gave on a file that I have that I know had two partitions.  It gave the error you reported.
I then tried the command I provided, got the *p0 and *p1 loop files, mounted the later, and it worked.  If it does not work for you, I fear that points to your image.

After and before.

Offline

#10 2021-12-14 20:55:35

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,690

Re: [Solved] Can't mount .dd file

Between that, and HoaS's check, I would say that your file does not have a partition table.  So, it has to be a single volume.   
I don't have any files like that I can test with.   

If the volume did not begin at the beginning of the drive (say to leave room for a boot block), you may need to mount it using an offset.   This article provides a reasonable explanation:
https://major.io/2010/12/14/mounting-a- … -in-linux/


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#11 2021-12-14 21:02:54

ilMistico
Member
Registered: 2021-11-13
Posts: 40

Re: [Solved] Can't mount .dd file

I've used fdisk -l on .dd file. This is the output:

Disk /home/andrea/image.dd: 119,08 GiB, 127863300096 bytes, 249733008 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Offline

#12 2021-12-14 22:12:28

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [Solved] Can't mount .dd file

Please post the output in code tags.

$ xxd -c32 -l4096 file.dd

sys2064

Offline

#13 2021-12-14 22:31:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,169

Re: [Solved] Can't mount .dd file

Or

file -s iamge.dd

If not, https://www.cgsecurity.org/wiki/TestDis … partitions

If this is your only copy of valuable data, be very careful to not write the image! In doubt "chattr +i" it.

Online

#14 2021-12-14 22:41:37

ilMistico
Member
Registered: 2021-11-13
Posts: 40

Re: [Solved] Can't mount .dd file

Maniaxx wrote:

Please post the output in code tags.

$ xxd -c32 -l4096 file.dd
00000000: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000040: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000060: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000080: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000000a0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000000c0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000000e0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000100: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000120: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000140: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000160: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000180: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000001a0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000001c0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000001e0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000200: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000220: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000240: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000260: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000280: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000002a0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000002c0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000002e0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000300: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000320: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000340: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000360: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000380: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000003a0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000003c0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000003e0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000400: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000420: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000440: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000460: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000480: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000004a0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000004c0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000004e0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000500: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000520: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000540: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000560: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000580: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000005a0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000005c0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000005e0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000600: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000620: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000640: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000660: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000680: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000006a0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000006c0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000006e0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000700: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000720: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000740: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000760: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000780: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000007a0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000007c0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000007e0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000800: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000820: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000840: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000860: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000880: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000008a0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000008c0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000008e0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000900: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000920: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000940: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000960: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000980: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000009a0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000009c0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
000009e0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000a00: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000a20: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000a40: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000a60: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000a80: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000aa0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000ac0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000ae0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000b00: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000b20: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000b40: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000b60: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000b80: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000ba0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000bc0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000be0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000c00: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000c20: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000c40: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000c60: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000c80: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000ca0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000cc0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000ce0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000d00: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000d20: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000d40: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000d60: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000d80: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000da0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000dc0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000de0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000e00: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000e20: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000e40: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000e60: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000e80: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000ea0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000ec0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000ee0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000f00: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000f20: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000f40: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000f60: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000f80: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000fa0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000fc0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................
00000fe0: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000  ................................

Offline

#15 2021-12-14 22:43:13

ilMistico
Member
Registered: 2021-11-13
Posts: 40

Re: [Solved] Can't mount .dd file

seth wrote:

Or

file -s iamge.dd

/home/andrea/image.dd: data

Offline

#16 2021-12-14 22:46:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,169

Re: [Solved] Can't mount .dd file

So, the 1st 4kB are all zero…
See the testdisk link, but your dd might have gone wrong…

Online

#17 2021-12-14 22:57:16

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [Solved] Can't mount .dd file

Take a GUI hexeditor (like 010Editor) that can handle large files (aur/hexeditor can not) and strive roughly over the whole image (especially the tail/end part). If its all zero you don't need to test any tool.

Last edited by Maniaxx (2021-12-14 22:58:28)


sys2064

Offline

#18 2021-12-14 23:00:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,169

Re: [Solved] Can't mount .dd file

You can also just compress the file (gz will do) - if it's all zero, the compressed file will only be a few kB.
(That's easier and more reliable than trying to find 1GB of data in an 120GB image)

Online

#19 2021-12-14 23:48:28

ilMistico
Member
Registered: 2021-11-13
Posts: 40

Re: [Solved] Can't mount .dd file

Maniaxx wrote:

Take a GUI hexeditor (like 010Editor) that can handle large files (aur/hexeditor can not) and strive roughly over the whole image (especially the tail/end part). If its all zero you don't need to test any tool.

Yes, the end part of .dd file opened with 010editor are all zero.

Offline

#20 2021-12-15 06:40:29

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [Solved] Can't mount .dd file

I guess if you scroll roughly over the whole file everything is empty so the dd capture wasn't successful.


sys2064

Offline

#21 2021-12-15 07:21:10

ilMistico
Member
Registered: 2021-11-13
Posts: 40

Re: [Solved] Can't mount .dd file

Maniaxx wrote:

I guess if you scroll roughly over the whole file everything is empty so the dd capture wasn't successful.

Nope. The start and the end of the file is empty. The center no.

Offline

#22 2021-12-15 07:33:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,169

Re: [Solved] Can't mount .dd file

=> testdisk…

Online

#23 2021-12-15 07:47:06

ilMistico
Member
Registered: 2021-11-13
Posts: 40

Re: [Solved] Can't mount .dd file

I also tried to use ddrescue. It create a .img file of the same size of the .dd file created with testdisk, and the output when mount the .img file is the same.

Offline

#24 2021-12-15 07:53:05

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,169

Re: [Solved] Can't mount .dd file

You're not supposed to create images w/ testdisk (though I assume you meant to say "dd"?) but use it to scan the image for partitions.
What were the actual commands you used to create the image?

Online

#25 2021-12-15 08:05:36

ilMistico
Member
Registered: 2021-11-13
Posts: 40

Re: [Solved] Can't mount .dd file

seth wrote:

You're not supposed to create images w/ testdisk (though I assume you meant to say "dd"?) but use it to scan the image for partitions.
What were the actual commands you used to create the image?

With testdisk: sudo testdisk -> Create -> Select the sdcard -> EFI GPT -> Analyse -> Quick search -> Come back when it finished -> Advanced -> Select MS DATA partition (the bigger of two partition) -> Image creation -> C.

With ddrescue: sudo ddrescue -v /dev/mmcblk0p1 /home/andrea/mmc.img /home/andrea/mmc.log

Offline

Board footer

Powered by FluxBB