MKPROTO(1) General Commands Manual MKPROTO(1)NAME
mkproto - create a MINIX prototype file
SYNOPSIS
mkproto [-b n] [-d str] [-g n] [-i n] [-p nnn] [-s] [-t root] [-u n] source_directory [prototype_file]
OPTIONS -b Number of blocks in the prototype is n
-d Indent the prototype file using str instead of tab
-g Use n as the gid for all files and directories
-i Number of i-nodes in the prototype is n
-p Use nnn (3 octal digits) as the protection mode
-s Use the same uid, gid and mode as the source files have
-t Use the string root as the path prefix for every file
-u Use n as the uid for all files and directories
EXAMPLES
mkproto -b360 # Make a 360K prototype of this directory
mkproto -u2 -g1 -p644
# Give all files uid 2, gid 1 and mode 644
DESCRIPTION
Mkproto creates an mkfs prototype file for the specified source-directory. The prototype file is either written to stdout or, if speci-
fied, the proto-file.
SEE ALSO mkfs(1).
MKPROTO(1)
Check Out this Related Man Page
MKPROTO(8) System Manager's Manual MKPROTO(8)NAME
mkproto - construct a prototype file system
SYNOPSIS
/usr/sbin/mkproto special proto
DESCRIPTION
Mkproto is used to bootstrap a new file system. First a new file system is created using newfs(8). Mkproto is then used to copy files
from the old file system into the new file system according to the directions found in the prototype file proto. The prototype file con-
tains tokens separated by spaces or new lines. The first tokens comprise the specification for the root directory. File specifications
consist of tokens giving the mode, the user-id, the group id, and the initial contents of the file. The syntax of the contents field
depends on the mode.
The mode token for a file is a 6 character string. The first character specifies the type of the file. (The characters -bcd specify regu-
lar, block special, character special and directory files respectively.) The second character of the type is either u or - to specify set-
user-id mode or not. The third is g or - for the set-group-id mode. The rest of the mode is a three digit octal number giving the owner,
group, and other read, write, execute permissions, see chmod(1).
Two decimal number tokens come after the mode; they specify the user and group ID's of the owner of the file.
If the file is a regular file, the next token is a pathname whence the contents and size are copied.
If the file is a block or character special file, two decimal number tokens follow which give the major and minor device numbers.
If the file is a directory, mkproto makes the entries . and .. and then reads a list of names and (recursively) file specifications for
the entries in the directory. The scan is terminated with the token $.
A sample prototype specification follows:
d--777 3 1
usr d--777 3 1
sh ---755 3 1 /bin/sh
ken d--755 6 1
$
b0 b--644 3 1 0 0
c0 c--644 3 1 0 0
$
$
SEE ALSO fs(5), dir(5), fsck(8), newfs(8)BUGS
There should be some way to specify links.
There should be some way to specify bad blocks.
Mkproto can only be run on virgin file systems. It should be possible to copy files into existent file systems.
Mkproto can only copy files up to a single level indirect less 4kb. This works out to about 252Kb
4.2 Berkeley Distribution November 17, 1996 MKPROTO(8)
I have a directory which has lots of directories and files in it. I want to determine the total number of files in the top level directory (inclduing the files in sub-dirs)
Is there a unix command of that ?/
Thanks !!! (3 Replies)
Hi,
I'm a unix newbie and need your help.
I need to get a count of files on our server. Number of .html files, Number of .pdf's, and Number of .ppt.
I tried:
find . -type f | wc -l
but it only give me a total count.
Thanks. (5 Replies)
Hi to all,
first of all,i am working on MINIX 3 OS.
I want to create a bash script file,which will create a list of files(not directories) that have been modified one specific day (i.e today) under my home directory.
thank you very much!! :) (8 Replies)
I´m listing the contents of a directory using the command
ls -lI get numeric uid and gid for some lines.
example:
drwxr-xr-x root root 1970-01-01 01:00 sys
-rw-r--r-- 501 20 0 2010-08-04 14:54 shutdown.bravo.rc
drwxr-x--- 501 20 ... (5 Replies)
Hi pls help me out to short out this problem
rm PAB113_011.out
rm: PAB113_011.out: override protection 644 (yes/no)? n
If i give y it remove the file.
But i added the rm command as a part of ksh file and i tried to remove the file. Its not removing and the the file prompting as... (9 Replies)
Hi Experts,
I have create a new user with uid and gid as 0 in SuSE-11 Server. After that all the files having root owner ship are showing as new user name as owner. If I login as root, and type 'id' command, it also shows the new user.
Sample output from my server.
host:~ # id
uid=0(test)... (4 Replies)
Hi,
I need a list of the number of files in all (sub-)directories e.g.:
/a/b/c 1364
/a/b 125
/a 362
etc.
Should be nice to have the list sorted from high to low.
Regards,
Wim (6 Replies)
I have two directories, each have 27 files with same name and now I want to combine them one by one into another directory with same names.
I dont know how to use "and" for the "for loop" so it will not go in the circle.
so my code has a problem I dont know how to fix :wall::wall::wall::wall:... (15 Replies)
Discussion started by: A-V
15 Replies
10. Forum Support Area for Unregistered Users & Account Problems
Hi, i got several questions regarding Solaris 10 configuration which i would like to ask here. Unfortunately Russia is blacklisted so I cannot register the normal way.
My IP is: 5.19.nnn.nnn
email: <removed>
Thank you. (5 Replies)
Hi Friends,
I have created a new user "admin". I would like to use it as root equivalent (can change root password). Now, I want to give uid=0 and gid=0 to act as root. can you help? usermod command is not updating uid.
/etc/passwd:
root:!:0:0::/:/usr/bin/ksh... (6 Replies)
OK, so simple question here:
Is there anyway to REMAP, while extracting with tar, specific uid's and gid's on extracted files ?
Background: The usual transfer between two servers with same literals username's names, but with different gid and uid. I would like, for example, files owned by... (6 Replies)
Dear All,
Here is the current status of the badging system:
The Beta 1 phase of the new badging system is close to completion.
42 prototype badges have been "allocated"
6 prototype badge slots are held in reserve
The "alert you have new badges" prototype is running and is currently... (4 Replies)
Here is the current array of the short description of badges for the new prototype badging system (Beta 1) with 42 icons allocated (prototype logic written) and 6 reserved (for future use);
<?php
$badges_desc = array(
"fauser" => "Total Post Count",
"faaward" => "First Post",
... (6 Replies)
Regarding the latest version of the UserCP prototype (version 0.63) I have made a lot of major changes, including
Added a "Posts Timeline" table for the recent posts, complimenting the non-table version earlier, which has been moved off the main menu (link at the bottom of the table).
Added a... (4 Replies)