Jump to content

restore fs on


suchende

Recommended Posts

Hey,

 

I compiled and installed the latest kernel (4.7.3 and uboot 2016-09)  but something went wrong. The dtb file was missing. while a manually correct the missing dtb from another run a flashed uboot in the wrong way. Instead of using the drive /dev/sdc I used the partition /dev/sdc1. 

I read this: https://linux-sunxi.org/Bootable_SD_card#SD_Card_Layoutand with these two commands I should have erased the first 1Mb

dd if=/dev/zero of=/dev/sdc1 bs=1k count=1023 seek=1
dd if=u-boot-sunxi-with-spl.bin of=/dev/sdc1 bs=1024 seek=8

(Luckily there is no backup at all :angry: )

gpart gives me this:

gpart -vg /mnt/veracrypt1/Armbian_5.14_Cubietruck_Debian_jessie_4.6.2.raw 

dev(/mnt/veracrypt1/Armbian_5.14_Cubietruck_Debian_jessie_4.6.2.raw) mss(512)
Primary partition(1)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 1525mb #s(3123200) s(2048-3125247)
   chs:  (16/0/1)-(1023/3/32)d (0/0/0)-(0/0/0)r
   hex:  00 00 01 10 83 03 E0 FF 00 08 00 00 00 A8 2F 00

----------------------------------------------------------------------------------------

gpart -vg /mnt/veracrypt1/broken_cubietruck.img

dev(/mnt/veracrypt1/broken_cubietruck.img) mss(512)
Primary partition(1)
   type: 131(0x83)(Linux ext2 filesystem)
   size: 14991mb #s(30701568) s(2048-30703615)
   chs:  (0/56/33)-(913/88/8)d (0/0/0)-(0/0/0)r
   hex:  00 38 21 00 83 58 C8 91 00 08 00 00 00 78 D4 01

I try to use the values from the raw image to recover at least some data, but fsch.ext4 fails. Do you see an opportunity to restore the partition table? Or to recover the filesystem?

 

 

Edit: Topic can be deleted. I wasn't capable of restoring the filesystem.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines