mksfs.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <html>
  2. <head>
  3. <title>mksfs</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>mksfs</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. mksfs - create an SFS filesystem
  9. <h3>Synopsis</h3>
  10. /sbin/mksfs <em>raw-device</em> <em>volname</em>
  11. <br>
  12. host-mksfs <em>disk-image-file</em> <em>volname</em>
  13. <h3>Description</h3>
  14. mksfs creates a new SFS filesystem on the specified device or disk
  15. image. The volume name is set to <em>volname</em>.
  16. <p>
  17. If mksfs is used under OS/161, the first form should be used, where
  18. <em>raw-device</em> is a raw device name (such as "lhd1raw:"). Don't
  19. use a device that's already mounted (or being used for swap).
  20. <p>
  21. mksfs can also be used on the System/161 host OS, in which case the
  22. second form should be used. The host-compiled version of mksfs knows
  23. how to deal with the header on System/161 disk images and does the
  24. right thing.
  25. <p>
  26. Note that as of this writing host-mksfs cannot create disk image
  27. files. This is a bug and will hopefully be addressed eventually.
  28. <h3>Requirements</h3>
  29. mksfs uses the following system calls:
  30. <ul>
  31. <li> <A HREF=../syscall/open.html>open</A>
  32. <li> <A HREF=../syscall/read.html>read</A>
  33. <li> <A HREF=../syscall/write.html>write</A>
  34. <li> <A HREF=../syscall/lseek.html>lseek</A>
  35. <li> <A HREF=../syscall/fstat.html>fstat</A>
  36. <li> <A HREF=../syscall/close.html>close</A>
  37. <li> <A HREF=../syscall/_exit.html>_exit</A>
  38. </ul>
  39. mksfs should function properly once the file system assignment is
  40. complete. You will likely need to make some changes to it in the
  41. course of doing that assignment.
  42. <h3>See Also</h3>
  43. <A HREF=dumpsfs.html>dumpsfs</A>
  44. </body>
  45. </html>