So as some know there are some stock disk images floating on these forums that we can use when we need to debrick our drives. These images are about 300MB in a zip or about 5GB for the 2TB drive.
The images are in .img format.
My questios is how were these images created. Today i debricked my drive and installed some mods and stuff and now i would like to make a disk image myself so in case i need to de brick again, i can restore my image including my mods etc…
Earlier today i tried the disk utility in ubuntu to create an image but it seemed that it was going to create a 3TB .img file of my drive even it had no data on it…
DD seems to do the same thing.
Would anyone know how to make an image of a respectable size like the one i downloaded of these forums?
You need to open the drive in disks in Linux and then make a disk image of the two 2GB raid partitions. Not sure if that would backup your kids as well though. I’ll try it later and see as I’ve just unbricked mine today and it’s still out of its case.
when i restore the .img in ubuntu, i think it over writes the whole disk if im not mistaken.
Are you saying that with your method, in case i brick my drive, i have the .img made according to your steps, i could simply use “dd” again to write my .img to the two raid partition and that will,
1- restore my disk’s rootfs
2- It will not over write the data partitions etc…
So i proceeded to test wit ubtuntu’s disk uility. I selected one of the raid partition, created a disk image. it was 2GB.
Then i proceeded to intentionall break the mybook live drive by formatting those two raid partitions.
I then restored the partitions with the back.img. I realized that i had to manually specify the partition type i.e linux raid and that put the drive back to functioning state.
It should restore your rootfs, I tested quite sometime ago on previous firmware. But even it doesn’t, you still can loop mount the backup.img and manually retrieve your mods.
It will not write the data partition if you correctly dump it into both 2GB raid partitions. To play safe, make sure mdadm service doesn’t mount the raid paritions on your linux VM.