On 2014-07-27 02:56, gogalthorp wrote:
>
> Boot to a live DVD or if you have the full DVD boot to rescue mode.
I would not boot at all… if the system is still running after the “mishap”, the partition table data could still be found in memory, perhaps.
Till the kernel re-reads it, at least.
> Mount the partition that is home and backup the files you need.
>
> Unless you wiped the whole disk (you can with DD command) In which case
> you may have nothing left.
I guess he erased the entire boot sector and partition table of sda, the main system disk.
> As you can see detailed instructions is hard since we don’t know the
> details of what you have and how it was originally setup
We could start with getting:
fdisk -l /dev/sda
gdisk -l /dev/sda
lsblk --output NAME,KNAME,SIZE,TYPE,MOUNTPOINT,LABEL,UUID,PARTLABEL,PARTUUID,SIZE
And very important, dave, please use code tags for pasting all that. Use the ‘#’ button in the forum editor - for command outputs and listings
See how
If what is messed up is indeed the boot sector, which includes the partition table (traditional, not GPT), then you can use “gpart” to guess the partition layout.
–
Cheers / Saludos,
Carlos E. R.
(from 13.1 x86_64 “Bottle” (Minas Tirith))