Content-type: text/html Manpage of FSRESIZE

FSRESIZE

Section: System Administrator's Manual (8)
Updated: January 2 1999
Index Return to Main Contents
 

NAME

fsresize (liposuck) - resize FAT filesystems  

WARNING

This is unstable software, and should only be used for testing and development.  

SYNOPSIS

fsresize [-h] [--help]

         [<partition> -i]

         <partition> [<new-size>[km]] [-b <backup-file>]

         <partition> -r <backup-file>  

DESCRIPTION

fsresize resizes FAT based partitions under Linux. It resizes partition to new-size. new-size is in kilobytes by default, or megabytes if followed by M or m.

While fsresize checks for obvious filesystem errors, it is not comprehensive. You should always run dosfsck(8) and back up all important information before using this program. The --backup options has never failed me - but you never know.

Note to lilo users: I haven't figured out how lilo(8) works yet - until I do, I recommend you run it after using fsresize (usually done by typing /sbin/lilo).

Note to Windows 9x users: you should turn off the swap file before running this program.

 

OPTIONS


-b, --backup <backup-file>
Backs up the filesystem to backup-file. If a new filesystem size is specified, will backup before modifying the filesystem. The backup file should be quite small, and fit on a floppy disk.


-i, --info
Displays some information about the filesystem


-r, --restore <backup-file>
Restores the filesystem to its original size and representation after a resize, from backup-file. This may not work if changes to the filesystem have been made since the fsresize was invoked.

 

EXAMPLES

fsresize /dev/hda9 -i
fsresize /dev/hda2 324M --backup=dosc.backup
fsresize /dev/hda1 5654k
fsresize /dev/hda3 2545
fsresize /dev/hda5 --restore dosd.backup

 

BUGS

FAT tables can't be resized, restricting the new size of the filesystem. Filesytems can only be grown or shrunk from the same start-point.  

SEE ALSO

dosfsck(8), mkfs.msdos(8), fs(5).  

AUTHOR

Andrew Clausen <clausen@alphalink.com.au>

fsresize uses libfdisk written by Michael Fulbright <msf@redhat.com> at Red Hat Software to modify the partition table.

The guts of fsresize are in libresize - a library for resizing filesystems. It's GPL'd - feel free to use it in your distribution's install program.


 

Index

NAME
WARNING
SYNOPSIS
DESCRIPTION
OPTIONS
EXAMPLES
BUGS
SEE ALSO
AUTHOR

This document was created by man2html, using the manual pages.
Time: 22:40:50 GMT, August 30, 2004