NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: GPT missing after controller swap (wd to ld)
On Oct 10, 3:39pm, louis%zabrico.com@localhost (Louis Guillaume) wrote:
-- Subject: Re: GPT missing after controller swap (wd to ld)
| # ./gpt show /dev/rld1d
| gpt: /dev/rld1d: map entry doesn't fit media
|
| # ./gpt show ld1
| gpt: /dev/rld1d: map entry doesn't fit media
|
|
| # ./gpt -vvvv show ld1
| /dev/rld1d: mediasize=1999988850688; sectorsize=512; blocks=3906228224
| /dev/rld1d: MBR not found at sector 0
| /dev/rld1d: Pri GPT at sector 1
| /dev/rld1d: GPT partition: type=ffs, start=128, size=524288
| /dev/rld1d: GPT partition: type=raid, start=524416, size=3906504704
| gpt: /dev/rld1d: map entry doesn't fit media
Yup, great! You did this perfectly :-) You can try this patch to
see if you can read the GPT table:
Index: gpt.c
===================================================================
RCS file: /cvsroot/src/sbin/gpt/gpt.c,v
retrieving revision 1.69
diff -u -u -r1.69 gpt.c
--- gpt.c 24 Sep 2016 13:40:55 -0000 1.69
+++ gpt.c 10 Oct 2016 20:23:38 -0000
@@ -557,8 +557,10 @@
goto close;
if ((found = gpt_gpt(gpt, 1LL, 1)) == -1)
goto close;
- if (gpt_gpt(gpt, devsz - 1LL, found) == -1)
- goto close;
+ if (gpt_gpt(gpt, devsz - 1LL, found) == -1) {
+ gpt_warnx(gpt, "Can't read the secondary GPT header at %ju",
+ (uintmax_t)(devsz - 1LL));
+ }
return gpt;
christos
Home |
Main Index |
Thread Index |
Old Index