mfstool.1 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. .\" "
  2. .\" Automatically created with cdoc "
  3. .\" "
  4. .TH "mfstool" "1" "18.02.2005" "0.0" "mfstool"
  5. .SH NAME
  6. mfstool - Minix-Filesytem image manipulation tool.
  7. .SH SYNOPSIS
  8. .TP
  9. \fBmfstool\fR [global options] subcmd {img-file} [sub options]
  10. .SH DESCRIPTION
  11. \fBmfstool\fR is a tool to manipulate Minix filesystem
  12. images. Allows you to create arbitrary filesystem images
  13. from user space.
  14. .LP
  15. Normally it would be used for generating RAMDISK images
  16. for initrd.
  17. .SH ARGUMENTS
  18. .TP
  19. {img-file}
  20. Name of the Minix file system image
  21. .TP
  22. -k,--check (global option)
  23. Checks filesystem state and fails if a fsck is needed.
  24. .TP
  25. -q,--squash-ids (global option)
  26. Squash ids so all files are owned by root.
  27. .TP
  28. --help,--usage (global option)
  29. Prints the command usage
  30. .TP
  31. --version (global option)
  32. Print version information
  33. .TP
  34. --copyright (global option)
  35. Print copyright information
  36. .TP
  37. mkfs (sub command)
  38. Create an empty filesystem
  39. .TP
  40. -n namelen (mkfs, genfs option)
  41. specify the maximum length of filenames. Currently,
  42. only allowable values are 14 and 30.
  43. .TP
  44. -i inodecount (mkfs, genfs option)
  45. specify the number of inodes for the filesystem.
  46. .TP
  47. -1 (mkfs, genfs option)
  48. Make a Minix version 1 filesystem.
  49. .TP
  50. -2|-v (mkfs, genfs option)
  51. Make a Minix version 2 filesystem. This is the default.
  52. .TP
  53. dir (sub command)
  54. Display the contents of a directory path
  55. .TP
  56. stat (sub command)
  57. Display the inode details for a file
  58. .TP
  59. mkdir (sub command)
  60. Create a sub-directory
  61. .TP
  62. rmdir (sub command)
  63. Remove directories
  64. .TP
  65. unlink (sub command)
  66. Remove files
  67. .TP
  68. cat (sub command)
  69. Equivalent of the UNIX cat command.
  70. .TP
  71. extract (sub command)
  72. Extracts a file to the specified file name
  73. .TP
  74. readlink (sub command)
  75. Display a symbolic link
  76. .TP
  77. symlink (sub command)
  78. Create a symbolic link
  79. .TP
  80. hardlink (sub command)
  81. Create a hard link
  82. .TP
  83. file|dir|socket|pipe|char|block (sub command)
  84. Create a node or set file attributes
  85. .TP
  86. add (sub command)
  87. Copy a file from file-system to image.
  88. .fi