Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2011 12:50:11 GMT
From:      Andriy Gapon <avg@FreeBSD.org>
To:        freebsd-fs@FreeBSD.org
Subject:   Re: kern/155484: [ufs] GPT + UFS boot don't work well together
Message-ID:  <201105261250.p4QCoBRr011649@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/155484; it has been noted by GNATS.

From: Andriy Gapon <avg@FreeBSD.org>
To: Andrey Vladimirov <rarehawk@gmail.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/155484: [ufs] GPT + UFS boot don't work well together
Date: Thu, 26 May 2011 15:28:48 +0300

 I can not reproduce your problem.
 This is what I did (to provide a full and clean picture unlike your original example):
 
 $ gpart create -s gpt /dev/zvol/pond/zvol2
 zvol/pond/zvol2 created
 $ gpart add -s 64K -t freebsd-boot zvol/pond/zvol2
 zvol/pond/zvol2p1 added
 $ gpart add -s 128m -t freebsd-swap -l swap0 zvol/pond/zvol2
 zvol/pond/zvol2p2 added
 $ gpart add -t freebsd-ufs -l disk0 zvol/pond/zvol2
 zvol/pond/zvol2p3 added
 $ gpart bootcode -b /boot/pmbr -p /boot/gptboot -i1 zvol/pond/zvol2
 bootcode written to zvol/pond/zvol2
 $ newfs /dev/zvol/pond/zvol2p3
 /dev/zvol/pond/zvol2p3: 895.9MB (1834812 sectors) block size 16384, fragment size 2048
         using 5 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
 super-block backups (for fsck -b #) at:
  160, 376416, 752672, 1128928, 1505184
 $ mount /dev/zvol/pond/zvol2p3 /mnt
 $ cp -a /boot /mnt/boot
 $ umount /mnt
 $ gpart show zvol/pond/zvol2
 =>     34  2097085  zvol/pond/zvol2  GPT  (1.0G)
        34      128                1  freebsd-boot  (64k)
       162   262144                2  freebsd-swap  (128M)
    262306  1834813                3  freebsd-ufs  (895M)
 $ name -srm
 FreeBSD 9.0-CURRENT amd64
 
 After this I can boot to kernel from this zvol in qemu without any problems.
 So either there is some pilot error, or some problems with your boot blocks or
 with 8GB size of the swap partition (but somehow I doubt that this is the case).
 
 Do you have a chance to play with your configuration more?
 If so, can you try smaller swap partition sizes (starting with 128M for example)?
 Can you try to use boot blocks (gptboot) from a recent head/CURRENT snapshot?
 
 -- 
 Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105261250.p4QCoBRr011649>