From owner-freebsd-fs@freebsd.org Sat Jan 30 21:07:13 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 903E4A72443 for ; Sat, 30 Jan 2016 21:07:13 +0000 (UTC) (envelope-from e.moe@rcn.com) Received: from smtp.rcn.com (smtp-fo.rcn.cmh.synacor.com [69.168.97.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5A41EAF1 for ; Sat, 30 Jan 2016 21:07:12 +0000 (UTC) (envelope-from e.moe@rcn.com) X_CMAE_Category: , , X-CNFS-Analysis: v=2.1 cv=QfbGxpvv c=1 sm=1 tr=0 a=kLIaxcRmAfIWWG5Fo3VFTQ==:117 a=kLIaxcRmAfIWWG5Fo3VFTQ==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IkcTkHD0fZMA:10 a=Ny8U74PX05CwolajN80A:9 a=QEXdDO2ut3YA:10 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: ZS5tb2VAcmNuLmNvbQ== Authentication-Results: smtp01.rcn.cmh.synacor.com smtp.mail=e.moe@rcn.com; spf=neutral; sender-id=neutral Authentication-Results: smtp01.rcn.cmh.synacor.com header.from=e.moe@rcn.com; sender-id=neutral Authentication-Results: smtp01.rcn.cmh.synacor.com smtp.user=e.moe; auth=pass (PLAIN) Received-SPF: neutral (smtp01.rcn.cmh.synacor.com: 24.148.20.83 is neither permitted nor denied by domain of rcn.com) Received: from [24.148.20.83] ([24.148.20.83:57317] helo=[192.168.1.175]) by smtp.rcn.com (envelope-from ) (ecelerity 3.6.2.43620 r(Platform:3.6.2.0)) with ESMTPSA (cipher=AES256-SHA) id E5/1D-40376-FF52DA65; Sat, 30 Jan 2016 16:07:11 -0500 From: Erik Moe Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: growfs issue? Message-Id: Date: Sat, 30 Jan 2016 15:07:09 -0600 To: freebsd-fs@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) X-Mailer: Apple Mail (2.3096.5) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jan 2016 21:07:13 -0000 I=E2=80=99ve written some scripts to build Freebsd images for a couple = of ARM boards that I own, Rasperry Pi B and Banana Pi. I=E2=80=99ve = been setting growfs_enable=3D=E2=80=9CYES=E2=80=9D in my rc.conf. I = haven=E2=80=99t had any issues until I made a change to how I build the = fstab. Originally I was hard coding device names: /dev/mmcsd0s2a / ufs rw,noatime 1 = 1 /dev/mmcsd0s1 /boot/msdos msdosfs rw,noatime 0 = 0 But switch to using labels so as I added new boards my scripts would be = more robust: /dev/ufs/rootfs / ufs rw,noatime = 1 1 /dev/msdosfs/MSDOSBOOT /boot/msdos msdosfs rw,noatime = 0 0 Since then I=E2=80=99ve had issues on first boot: GEOM_PART: ufs/rootfs was automatically resized. Use `gpart commit ufs/rootfs` to save changes or `gpart undo = ufs/rootfs` to revert them. mmcsd0s2 resized growfs: /dev/ufs/rootfs: Operation not permitted . . . Starting file system checks: =20 /dev/ufs/rootfs: NO WRITE ACCESS /dev/ufs/rootfs: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. Automatic file system check failed; help! ERROR: ABORTING BOOT (sending SIGTERM to parent)! Jan 31 01:16:52 init: /bin/sh on /etc/rc terminated abnormally, going to = single user mode Enter full pathname of shell or RETURN for /bin/sh: # If I drop into single user mode and run "gpart commit ufs/rootfs=E2=80=9D = and reboot the system it comes up fine and the disk is resized: mmcsd0s2 resized mmcsd0s2a resized super-block backups (for fsck_ffs -b #) at: 1994944,ugen0.3: at usbus0 smsc0: on usbus0 smsc0: chip 0xec00, rev. 0002 2493632, 2992320,miibus0: on smsc0 ukphy0: PHY 1 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ue0: on smsc0 ue0: Ethernet address: b8:27:eb:1f:ba:4d 3491008, 3989696, 4488384, 4987072, 5485760, 5984448, 6483136, 6981824, 7480512, 7979200, 8477888, 8976576, 9475264, 9973952, 10472640, 10971328, 11470016, 11968704, 12467392, 12966080, = 13464768, 13963456, 14462144, 14960832, 15459520, 15958208, 16456896, 16955584, 17454272, 17952960, 18451648, 18950336, 19449024, 19947712, 20446400, 20945088, 21443776, 21942464, 22441152, 22939840, 23438528, 23937216, 24435904, 24934592, 25433280, 25931968, 26430656, 26929344, 27428032, 27926720, 28425408, 28924096, 29422784, 29921472, 30420160, 30918848 Does this have something to do with the labels in the fstab? growfs: /dev/ufs/rootfs: Operation not permitted Thanks, Erik