gpart
Vincent Hoffman
vince at unsane.co.uk
Wed May 20 09:06:32 UTC 2009
On 20/5/09 02:04, Randy Bush wrote:
> as punishment, here is yet another email
>
> so i have it all partitioned using fixit/dist.
> ad4p1 64k freebsd-boot
> ad4p2 64g freebsd-zfs (to use as zfs mirror)
> ad4p3 64g freebsd-swap
> ad4p4 2tb freebsd-zfs (to use as raidz2)
>
> same for ad5. ad6 and ad7 have only p1 to join the raidz2.
>
> but i can not build the boot zfs mirror because i can not follow the
> destructions at
>
> http://lulf.geeknest.org/blog/freebsd/Setting_up_a_zfs-only_system/
> http://wiki.freebsd.org/AppleMacbook
> etc
>
> because fixit/dist is a world where i can not mount the zfs pool because
> / is read-only md0. so i can not set up the bootable zfs mirror system.
>
> and, to add to the fun. due to time pressure, i go to back off to my
> old faithful hack of small gmirrored boot partitions with big zfs. i dd
> whomp the base drives (dd if=/dev/zero of=/dev/da4 count=1000000). but
> it seems not to stomp them. the sysinstall fdisk partiton editor keeps
> seeing ad4p[1-4]!
>
>
Try using
gpart destroy -i X da4
where X is the partition index as seen from gpart show
or possibly
gpart destroy da4
I think your problem is that gpt keeps a secondary header at the end of
the disk
http://en.wikipedia.org/wiki/GUID_Partition_Table
Vince
> coffee or sleep, tough call.
>
> randy
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
>
More information about the freebsd-current
mailing list