Date: Sat, 30 Jan 2016 15:07:09 -0600 From: Erik Moe <e.moe@rcn.com> To: freebsd-fs@freebsd.org Subject: growfs issue? Message-ID: <DBF1AF2A-DCB2-47F9-BD84-A5DC97BAF844@rcn.com>
next in thread | raw e-mail | index | archive | help
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: <vendor 0x0424> at usbus0 smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3> on usbus0 smsc0: chip 0xec00, rev. 0002 2493632, 2992320,miibus0: <MII bus> on smsc0 ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0 ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ue0: <USB Ethernet> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DBF1AF2A-DCB2-47F9-BD84-A5DC97BAF844>