gpart resize vs. cache?
Erich Dollansky
erichsfreebsdlist at alogt.com
Sun Feb 3 23:50:26 UTC 2013
Hi,
On Sun, 3 Feb 2013 12:06:41 -0800
Tim Kientzle <kientzle at freebsd.org> wrote:
> I'm tinkering with a disk image that automatically
> fills whatever media you put it onto. But I'm having
> trouble with gpart resize failing.
>
> Disk layout:
> MBR with two slices mmcsd0s1 and mmcsd0s2
> bsdlabel with one partition mmcsd0s2a
>
> Before I can use growfs, I have two gpart resize operations:
>
> 1) gpart resize -i 2 mmcsd0
>
> 2) gpart resize -i 1 mmcsd0s2
>
> Step 1 resizes mmcsd0s2 and always succeeds.
>
> Step 2 resizes mmcsd0s2a and always fails
> with "No space on device."
>
I used a gpart show between in a different situation. The script did
not work without it. When I entered the same commands from the command
line, they all worked. So, things could be related to cache or delayed
writes.
Erich
More information about the freebsd-current
mailing list