TransWikia.com

MBR accidentally deleted , how to restore partition

Ask Ubuntu Asked by davitp on December 15, 2020

I know that my question can be a duplicate, but i spent a lot of time with google and askubuntu, but couldnt find answer.

I installed Ubuntu 13.10 alongside Windows 7 (i had C drive of 100GB and D drive of 200GB). While installing,i allocated 80GB for Ubuntu from D drive. So after installation i couldnt boot into windows. Using tools gparted, Ubuntu Boot repair and testdisk i tried to repair boot but (as i guess) removed smth important from SDA…

So after restart i have grub rescue prompt. All partitions are unknown filesystem.
I tried to boot into LiveUSB Ubuntu 13.10 … as i had Windows partition on sda1, and linux-swap on sda2… and 130GB unallocated memory (as i guess its D drive) … I have a lot of important information on D drive.

So how i can recover partition ?

Any help be appriciated!

2 Answers

try :

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair && boot-repair

it should detect missing MBR and fix it. it did for me but I do not know if this means it would also restore windows bootability, but that's this app's job so it should.

Answered by tatsu on December 15, 2020

Boot from a live system, and use the gpart utility to scan for file systems.

Answered by Simon Richter on December 15, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP