Messed up some drives with GDISK and I'm afraid I've ruined them. Could use some help!
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Messed up some drives with GDISK and I'm afraid I've ruined them. Could use some help!
Hello all. I have a simple network storage system with a boot drive and two large storage drives. Originally it had just one drive and everything was hunky dory until I added the second drive, which was previously an external backup. I ran fdisk -l to look at the newly added drive and saw errors on both disks. I remember something like "GPT PMBR size mismatch" and it telling me to use the write command in gdisk.
After looking up similar things on the internet it seemed like running the write command by itself should have fixed things. Thing is, I did not exactly do that. On the first disk (sda) I ran verify and then write on its partition (sda1). That I believe was a mistake and was from not paying attention to what I was doing. On the other drive (sdb) I ran verify and write.
As it stands now I cannot use either drive. When I look at them on a different system using fdisk -l one shows up with no partitions and the other shows up with a partition but I cannot manually mount it. I considered running fsck on either one but I'm in uncharted territory there and afraid I'll do more damage.
"GPT PMBR size mismatch" suggests that your disks were formatted as GPT and not MBR. The Pseudo-MBR size warning could have been ignored since MBR does not support large drive sizes. GPT support is a recent addition to fdisk and results in the misleading messages. Boot from a live-iso image or look on a different system at the real partition tables with:
Parted so shows two disks with GPT partition tables, but only one drive has an entry under disk flags. All other information about the disks looks okay. If it makes any difference, both drives only had one partition spanning the entire volume.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.