суббота, 4 февраля 2017 г.

Ubuntu Live: Restore partitions

Download and install gpart:

wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gpart/gpart_0.3-3_amd64.deb
sudo dpkg -i gpart_0.3-3_amd64.deb
sudo apt-get install -f
View partition table on the drive:
sudo fdisk -l /dev/sda
If OK, write partition table to the drive:
sudo gpart -W /dev/sda /dev/sda