4 ms·
How did you get it out of RAM so cleanly?
by AlexSW 4y ago
How did you get it out of RAM so cleanly?
- alhirzel 4y agoIt wasn't clean, I had to manually parse it out of /proc and triple check the math before committing it with fdisk.
- FrostKiwi 4y agoThat's pretty hard core. Any resources you recommend to understand the steps involved? Maybe a write-up by yourself?
- b0afc375b5 4y agoDo you have a blog post about this with more details somewhere?
- jonah-archive 4y agoI had something like this happen once -- a company I was at had these old RAID arrays that we kept limping along while we waited for budget to buy ones from a company that hadn't ceased to exist, and at some point a disk failed in some way that caused the RAID system to lose its internal partition table information (to my recollection... it's been awhile). I could still access the block devices, but couldn't instantiate the logical volumes, and dumping dd chunks showed that there was data there... so I wrote some code to scan the disk for ext2 magic numbers, and once I found them did some math on paper to find the partition boundaries and very... carefully... recreate them. I have a photo of the piece of paper here: https://www.flickr.com/photos/jedwards/4494268626/ https://www.flickr.com/photos/jedwards/4494268626/