
378
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
resize2fs
resize2fs [options] device [size]
System administration command. Enlarge or shrink an ext2 file-
system on device so it has size blocks. The filesystem size cannot be
larger than the underlying partition. This command changes only
the filesystem size, not the underlying partition. To change the
partition, use fdisk.
Options
-d flags
Print debugging information on resize activity. The value of
the flags parameter determines what activity is reported.
Compute its value by summing the numbers of the items you
wish to debug:
1 Disk I/O.
2 Block relocations.
8 Inode relocations.
16 Inode table movement.
-f Force resize, overriding safety checks.
-p Print progress information for each resize task.
restore
restore flag [options] [files]
System administration command. Restore backed up files from a
dump archive. Execute this command with one of the following
flags.
Flags
-C Compare files on disk to files in the backup and print report.
-i Restore files interactively. This will open a shell-like interface
that accepts the following commands.
add [name]
Add the current working directory, or the specified file or
directory name to the list of files to extract.
cd directory
Change the current working directory.
delete [name]
Remove the current working directory or the specified ...