mkfs and inodes

John Buck john at polyof.UUCP
Fri Feb 24 04:46:59 AEST 1989


In article <617 at mccc.UUCP>, pjh at mccc.UUCP (peter j holsberg) writes:
> If I run a mkfs on an existing file system (just to increase the number
> of inodes), will I be wiping out the files in the system?

YES!!! Please back-up your entire file-system BEFORE running mkfs on it.  "mkfs"
will zero any inodes there are currently on the disk, and will extend the
the inode table into space previously used for file data.

> If so, is it necessary to reformat before using mkfs?
> Pete

You do not have to reformat your hard disk.  Please be sure you specify the
correct filesystem size when using the mkfs command!  On some 3B systems,
most notable 3b15's, the system has no concept as to where the file
system physically ends on the disk (All fileystems "end" with the last
cylinder on the disk).  If you give it a size bigger than the filesystem should
be, it will go right ahead and scribble over the NEXT filesystem on the
disk.  "mkfs" is a command that should be used with great care; be careful.

john at polyof.poly.edu



More information about the Comp.sys.att mailing list