Re: gpart resize vs. cache?

From: Erich Dollansky <erichsfreebsdlist_at_alogt.com>
Date: Mon, 4 Feb 2013 06:24:43 +0700
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
Received on Sun Feb 03 2013 - 22:50:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:34 UTC