I have scripts that regularly do an fdisk –l and put it into a subversion repository (on another server, and I have it checked out on my desktop).
Why? Because this gives me all the information I need to make the partitions again should I need it. I also save mdadm, lvm, smart, … and a lot other information about my disks. Occasionally there are changes, and then I get an alert about it, usually because I resized a logical volume group, but it has also been because a disk stopped responding. No I wont send you the scripts, because you’ll learn more by doing and implementing them yourself. JonB From: Maher Hamdan [mailto:maher.ham...@navitassemi.com] Sent: 1. november 2017 19:42 To: 'Josep Lladonosa' Cc: Jon Bendtsen; 29...@debbugs.gnu.org Subject: RE: bug#29084: parted mklabel Thanks for the advice have a good day! From: Josep Lladonosa [mailto:jllad...@gmail.com] Sent: Wednesday, November 01, 2017 11:34 AM To: Maher Hamdan <maher.ham...@navitassemi.com<mailto:maher.ham...@navitassemi.com>> Cc: Jon Bendtsen <jon.bendt...@laerdal.com<mailto:jon.bendt...@laerdal.com>>; 29...@debbugs.gnu.org<mailto:29...@debbugs.gnu.org> Subject: Re: bug#29084: parted mklabel On 1 November 2017 at 18:13, Maher Hamdan <maher.ham...@navitassemi.com<mailto:maher.ham...@navitassemi.com>> wrote: Hi Jon As far as the partitions one primary the other logical volumes. Hello, Why don't you use the Testdisk tool to recover lost partitions? https://www.dedoimedo.com/computers/linux-data-recovery.html BR Maher On Nov 1, 2017 2:04 AM, "Jon Bendtsen" <jon.bendt...@laerdal.com<mailto:jon.bendt...@laerdal.com>> wrote: Well, how many partitions did you have on your machine before wiping the partition table on the disk? And which kind? JonB From: bug-parted [mailto:bug-parted-bounces+jbendtsen<mailto:bug-parted-bounces%2Bjbendtsen>=laerdal...@gnu.org<mailto:laerdal...@gnu.org>] On Behalf Of Maher Hamdan Sent: 31. oktober 2017 16:52 To: 29...@debbugs.gnu.org<mailto:29...@debbugs.gnu.org> Subject: bug#29084: parted mklabel Importance: High Hello I ran “parted mklabel /dev/sda” on my redhat 6.9 server and I am in the system in rescue mode what do I need to do next? Please help our production sever is down. BR, Maher -- -- Salutacions...Josep --