Date: Tue, 27 Feb 2024 17:09:17 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 277358] problem with gpart backup & restore Message-ID: <bug-277358-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277358 Bug ID: 277358 Summary: problem with gpart backup & restore Product: Base System Version: 14.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd@ihead.ru Something wrong with gpart backup & restore. Have this: # gpart show ada1 =3D> 40 2000409184 ada1 GPT (954G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-ufs (2.0G) 4196352 268435456 3 freebsd-swap (128G) 272631808 293601280 4 freebsd-ufs (140G) 566233088 20971520 5 freebsd-ufs (10G) 587204608 62914560 6 freebsd-ufs (30G) 650119168 1350290056 - free - (644G) # gpart backup ada1 > ada1.backup # cat ada1.backup GPT 128 1 freebsd-boot 40 1024 2 freebsd-ufs 2048 4194304 3 freebsd-swap 4196352 268435456 4 freebsd-ufs 272631808 293601280 5 freebsd-ufs 566233088 20971520 6 freebsd-ufs 587204608 62914560 # gpart restore ada0 < ada1.backup # gpart show ada0 =3D> 34 2000409197 ada0 GPT (954G) 34 6 - free - (3.0K) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-ufs (2.0G) 4196352 268435456 3 freebsd-swap (128G) 272631808 293601280 4 freebsd-ufs (140G) 566233088 20971520 5 freebsd-ufs (10G) 587204608 62914560 6 freebsd-ufs (30G) 650119168 1350290063 - free - (644G) "gpart show ada0" and "gpart show ada1" produce different output. And manualy: # gpart destroy -F ada0 ada0 destroyed [root@s46 ~]# gpart show ada1 =3D> 40 2000409184 ada1 GPT (954G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-ufs (2.0G) 4196352 268435456 3 freebsd-swap (128G) 272631808 293601280 4 freebsd-ufs (140G) 566233088 20971520 5 freebsd-ufs (10G) 587204608 62914560 6 freebsd-ufs (30G) 650119168 1350290056 - free - (644G) # gpart create -s GPT ada0 ada0 created # gpart add -t freebsd-boot -s 512K ada0 ada0p1 added # gpart add -t freebsd-ufs -s 2G -a 1m ada0 ada0p2 added # gpart add -t freebsd-swap -s 128G ada0 ada0p3 added # gpart add -t freebsd-ufs -s 140G ada0 ada0p4 added # gpart add -t freebsd-ufs -s 10G ada0 ada0p5 added # gpart add -t freebsd-ufs -s 30G ada0 ada0p6 added # gpart show ada0 =3D> 40 2000409184 ada0 GPT (954G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-ufs (2.0G) 4196352 268435456 3 freebsd-swap (128G) 272631808 293601280 4 freebsd-ufs (140G) 566233088 20971520 5 freebsd-ufs (10G) 587204608 62914560 6 freebsd-ufs (30G) 650119168 1350290056 - free - (644G) # gpart show ada1 =3D> 40 2000409184 ada1 GPT (954G) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-ufs (2.0G) 4196352 268435456 3 freebsd-swap (128G) 272631808 293601280 4 freebsd-ufs (140G) 566233088 20971520 5 freebsd-ufs (10G) 587204608 62914560 6 freebsd-ufs (30G) 650119168 1350290056 - free - (644G) "gpart show ada0" and "gpart show ada1" produce same output. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277358-227>