Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

restore fs on

Featured Replies

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.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.