summaryrefslogtreecommitdiffstats
path: root/guestfish-actions.pod
diff options
context:
space:
mode:
Diffstat (limited to 'guestfish-actions.pod')
-rw-r--r--guestfish-actions.pod17
1 files changed, 17 insertions, 0 deletions
diff --git a/guestfish-actions.pod b/guestfish-actions.pod
index ee8e8247..fa82ef1b 100644
--- a/guestfish-actions.pod
+++ b/guestfish-actions.pod
@@ -484,6 +484,17 @@ Setting C<whattodrop> to 3 should drop everything.
This automatically calls L<sync(2)> before the operation,
so that the maximum guest memory is freed.
+=head2 e2fsck-f
+
+ e2fsck-f device
+
+This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3
+filesystem checker on C<device>, noninteractively (C<-p>),
+even if the filesystem appears to be clean (C<-f>).
+
+This command is only needed because of C<resize2fs>
+(q.v.). Normally you should use C<fsck>.
+
=head2 equal
equal file1 file2
@@ -989,6 +1000,12 @@ function which has a more complex interface.
This resizes an ext2 or ext3 filesystem to match the size of
the underlying device.
+I<Note:> It is sometimes required that you run C<e2fsck-f>
+on the C<device> before calling this command. For unknown reasons
+C<resize2fs> sometimes gives an error about this and sometimes not.
+In any case, it is always safe to call C<e2fsck-f> before
+calling this function.
+
=head2 rm
rm path