Date: Tue, 25 Nov 2014 17:35:26 -0500 From: Paul Pathiakis <pathiaki2@yahoo.com> To: freebsd-questions@freebsd.org Subject: Re: Invalid partition table Message-ID: <5475042E.2050102@yahoo.com> In-Reply-To: <20141125214044.GI30752@tweddell.de> References: <20141125214044.GI30752@tweddell.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Bastian, I'll try to answer this but I'm no expert..... I don't understand your partitioning. Typically, due to the 'pool' concept of storage with ZFS versus the filesystem types, things have changed from traditional partitioning. Try a 'man gpart' to start off. Look at the 'gpart recover' and see if that helps. Commands/flags that you will want to look at in more detail: gpart add -t <type> -a <alignment> -i <index> geom gpart create -s <scheme> provider Now, looking at these: gpart create -s GPT provider (where provider is /dev/ada? in your case or /dev/da? for example) This command labels the type of partitioning scheme. gpart add -t (type in your case: freebsd-boot, freebsd-swap, freebsd-zfs) -a 4k (4k boundaries) -i <index - creates p1 for index 1, etc> ada0 (in your case) Now, in my case, the following: gpart create -s GPT ada0 gpart add -t freebsd-boot -a 4k -i 1 ada0 <RET> (This creates /dev/ada0p1) gpart add -t freebsd-swap -s 2g -i 2 ada0 <RET> (This creates a 2GB swap on /dev/ada0p2) gpart add -t freebsd-zfs -i 3 ada0 <RET> (This creates the large ZFS pool on the remaing part of the disk on /dev/ada0p3) gpart show <RET> will give you a much more succinct output so you can see your partition table. Now, when you have created this, you want to make sure that your have the correct bootstrap written to the partition. This is a master boot record (MBR) that needs to be written to a PARTITION -> pmbr Back to gpart for a zfs bootstrap for gpt using the MBR for partitions: gpart -p /boot/pmbr -b /boot/gptzfsboot -i 1 (<-- partition 1 is your freebsd-boot partition) ada0 <RET> You should see "bootcode installed on ada0" IF you have mirrored disks, do not forget to install the bootstrap on the other disk of the mirror. Usually, you can do this at just about any time. Also, if you upgrade a pool's level or the zfs level of the pool, always write a new bootstrap to the boot partition of the boot disk. (or both disks if a mirror) I've been using ZFS since late 8.2 I think. I haven't really had any issues with it that weren't my own fault. Now that I use it as a default, I believe I understand it a bit better now. Good luck, P. On 11/25/2014 16:40, Bastian wrote: > Hi all, > > I just started to run 10.1-RELEASE on a physical box - a Latitude E6330. > Herein I face some troubles in contrast to the VM installations I had by > now. > > I use zfs on root with GPT a partition table. Installation went fine. > But when booting up, a message is prompted: "Invalid partition table!" > > When I hit enter a slash '/' appears two lines above .. and a second hit > on enter eventually starts the FreeBSD bootloader. This behaviour sound > quite weired to me. > > Could you give me somehints on that? > > > ----- > root@zam709 ~ 1 > 103 # gpart list > Geom name: ada0 > modified: false > state: OK > fwheads: 16 > fwsectors: 63 > last: 500118158 > first: 34 > entries: 128 > scheme: GPT > Providers: > 1. Name: ada0p1 > Mediasize: 524288 (512K) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 17408 > Mode: r0w0e0 > rawuuid: 95c86038-71b0-11e4-99be-f01faf034705 > rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f > label: gptboot0 > length: 524288 > offset: 17408 > type: freebsd-boot > index: 1 > end: 1057 > start: 34 > 2. Name: ada0p2 > Mediasize: 2147483648 (2.0G) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 541696 > Mode: r1w1e2 > rawuuid: 95cc569e-71b0-11e4-99be-f01faf034705 > rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b > label: boot0 > length: 2147483648 > offset: 541696 > type: freebsd-zfs > index: 2 > end: 4195361 > start: 1058 > 3. Name: ada0p3 > Mediasize: 8589934592 (8.0G) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 2148025344 > Mode: r1w1e1 > rawuuid: 95d29252-71b0-11e4-99be-f01faf034705 > rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b > label: swap0 > length: 8589934592 > offset: 2148025344 > type: freebsd-swap > index: 3 > end: 20972577 > start: 4195362 > 4. Name: ada0p4 > Mediasize: 245322537472 (228G) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 2148025344 > Mode: r1w1e1 > rawuuid: 95d7730d-71b0-11e4-99be-f01faf034705 > rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b > label: zfs0 > length: 245322537472 > offset: 10737959936 > type: freebsd-zfs > index: 4 > end: 500118158 > start: 20972578 > Consumers: > 1. Name: ada0 > Mediasize: 256060514304 (238G) > Sectorsize: 512 > Mode: r3w3e7 > ----- > > > Many thanks in advance, >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5475042E.2050102>