Simply put the following command:
php -r "echo ini_get('extension_dir');"
Aici veti gasi detalii tehnice despre cum se pot realiza configurari software+ hardware.
Here you can find tehnical details about software/hardware configuration.
Simply put the following command:
php -r "echo ini_get('extension_dir');"
Hi
In many cases we need to add drivers for nvme or USB in Windows 7 installation media beacause new hardware is not supported by original media.
One method is to update boot.wim and install wim from sources folder (in my case iso image was written already on USB stick).
I make tmp folder info drive C.
In my case copy boot.win and install.wim into c:\tmp
In tmp make other folders (mount,updates and nvme).
Finally in my folder c:\tmp we have following structure:
==============================================================
C:\tmp>dir
Volume in drive C has no label.
Volume Serial Number is 8CFB-6090
Directory of C:\tmp
12/25/2022 01:31 AM <DIR> .
12/25/2022 01:31 AM <DIR> ..
12/25/2022 01:15 AM 172,568,187 boot.wim
12/25/2022 01:19 AM 2,841,234,901 install.wim
12/25/2022 01:20 AM <DIR> mount
12/25/2022 01:13 AM <DIR> nvme
12/25/2022 01:31 AM <DIR> updates
2 File(s) 3,013,803,088 bytes
5 Dir(s) 180,315,807,744 bytes free
===============================================================
Now... Follow these steps
c:\tmp\updates
;c:\tmp\nvme
;DISM /Get-WimInfo /WimFile:c:\tmp\boot.wim
DISM /Mount-Wim /WimFile:"C:\tmp\boot.wim" /Index:1 /MountDir:c:\tmp\mount
DISM /Image:c:\tmp\mount /Add-Package /PackagePath:C:\tmp\updates
DISM.exe /image:c:\tmp\mount /Add-Driver /driver:c:\tmp\nvme /recurse /ForceUnsigned
DISM /Unmount-Wim /MountDir:c:\tmp\mount /Commit
/Index:1
with /Index:2
).dism /Get-WimInfo /WimFile:c:\tmp\install.wim
Index:2
)DISM /Get-WimInfo /WimFile:c:\tmp\install.wim
DISM /Mount-Wim /WimFile:"C:\tmp\install.wim" /Index:2 /MountDir:c:\tmp\mount
DISM /Image:c:\tmp\mount /Add-Package /PackagePath:C:\tmp\updates
DISM.exe /image:c:\tmp\mount /Add-Driver /driver:c:\tmp\nvme /recurse /ForceUnsigned
DISM /Unmount-Wim /MountDir:c:\tmp\mount /Commit
When we configured DKIM on sending servers. First, we generated a public/private key pair for signing outgoing messages. The public key is configured as TXT record on a domains name server, and the private key is configured in the outbound email server. When an email is sent by an authorized user of the email server, the server uses the stored private key to generate a digital signature of the message, which is inserted in the message as a header, and the email is sent as normal.
First make sure you have enabled EPEL repository in your system. After that install dkim-milter package using following command.
yum install postfix opendkim
Now create DKIM key pair using dkim-genkey command line utility provided by dkim-milter package. For this tutorial we are using domain name “example.com”, Change this name with your actual names.
MYDOMAIN=example.com mkdir -p /etc/opendkim/keys/$MYDOMAIN cd /etc/opendkim/keys/$MYDOMAIN opendkim-genkey -r -d $MYDOMAIN
Above command will generate two files default.private and default.txt. You can created multiple DKIM keys for different-2 domains and configure with your postfix server.
Now set the proper permissions on Keys directory.
chown -R opendkim:opendkim /etc/opendkim chmod go-rw /etc/opendkim/keys
Edit the Opendkim configuration file and Add/Update following entries in file.
vim /etc/opendkim.conf
Mode sv Socket inet:8891@localhost Domain example.com #KeyFile /etc/opendkim/keys/default.private ### comment this line KeyTable /etc/opendkim/KeyTable SigningTable refile:/etc/opendkim/SigningTable ExternalIgnoreList refile:/etc/opendkim/TrustedHosts InternalHosts refile:/etc/opendkim/TrustedHosts
Then edit the domain keys lists setting file /etc/opendkim/KeyTable and add following entry.
default._domainkey.example.com example.com:default:/etc/opendkim/keys/example.com/default.private
After that edit /etc/opendkim/SigningTable file and update following entry.
*@example.com default._domainkey.example.com
And edit /etc/opendkim/TrustedHosts file and update following entry.
mail.example.com example.com
Now edit POSTFIX configuration file /etc/postfix/main.cf and add following values at the end of file
smtpd_milters = inet:127.0.0.1:8891 non_smtpd_milters = $smtpd_milters milter_default_action = accept
finally start DKIM service using following command
service opendkim start
After configuring private key in postfix server. there will be another file /etc/opendkim/keys/example.com/default.txt/strong> generated by opendkim-genkey. Edit your DNS zone file and add this as TXT record found in default.txt. In my case this is like below.
default._domainkey IN TXT ( "v=DKIM1; k=rsa; s=email; " "p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCdTtEqM8FqndiFYOderzljMMMqBdEp+wJKP+VUbhc9GigmK34ZjrSqqdKjIEWr2q9DvSVp1H1bZs4t050m0HZxJqknDz2yoDJ6W4mCaSCHesRde5V44V/L65Gqm/rvBz1d6CCp8A2515eveWrIAocOD6pKJ4tnXHz3uwV2ZtgQiQIDAQAB" ) ; ----- DKIM key default for example.com
To verify that DKIM is working properly. Let’s send a test email through command line
mail -vs "Test DKIM" my_test_email@gmail.com < /dev/null
In the received email in our mailbox, open the source of the email and search for "DKIM-Signature". You will find something like below
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=example.com; s=default.private; t=1402388963; bh=fdkeB/A0FkbVP2k4J4pNPoe23AvqBm9+b0C3OY87Cw8=; h=Date:From:Message-Id:To:Subject; b=M6g0eHe3LNqURha9d73bFWlPfOERXsXxrYtN2qrSQ6/0WXtOxwkEjfoNTHPzoEOlD i6uLLwV+3/JTs7mFmrkvlA5ZR693sM5gkVgVJmuOsylXSwd3XNfEcGSqFRRIrLhHtbC mAXMNxJtih9OuVNi96TrFNyUJeHMRvvbo34BzqWY=
source
.ibd
files to another MySQL instance. You
might use this procedure if the system tablespace is lost or
unrecoverable and you want to restore .ibd
file backups on a new MySQL instance.
The procedure is not supported for
general
tablespace .ibd
files.
The procedure assumes that you only have
.ibd
file backups, you are recovering to
the same version of MySQL that initially created the orphan
.ibd
files, and that
.ibd
file backups are clean. See
Section 14.6.1.4, “Moving or Copying InnoDB Tables” for information about
creating clean backups.
Table import limitations outlined in Section 14.6.1.3, “Importing InnoDB Tables” are applicable to this procedure.
On the new MySQL instance, recreate the table in a database of the same name.
mysql> CREATE DATABASE sakila;
mysql> USE sakila;
mysql> CREATE TABLE actor (
actor_id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
first_name VARCHAR(45) NOT NULL,
last_name VARCHAR(45) NOT NULL,
last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (actor_id),
KEY idx_actor_last_name (last_name)
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
Discard the tablespace of the newly created table.
mysql> ALTER TABLE sakila.actor DISCARD TABLESPACE;
Copy the orphan .ibd
file from your
backup directory to the new database directory.
$> cp /backup_directory/actor.ibd path/to/mysql-5.7/data/sakila/
Ensure that the .ibd
file has the
necessary file permissions.
Import the orphan .ibd
file. A warning is
issued indicating that InnoDB
tries to
import the file without schema verification.
mysql> ALTER TABLE sakila.actor IMPORT TABLESPACE; SHOW WARNINGS;
Query OK, 0 rows affected, 1 warning (0.15 sec)
Warning | 1810 | InnoDB: IO Read error: (2, No such file or directory)
Error opening './sakila/actor.cfg', will attempt to import
without schema verification
Query the table to verify that the .ibd
file was successfully restored.
mysql> SELECT COUNT(*) FROM sakila.actor;
+----------+
| count(*) |
+----------+
| 200 |
+----------+
source
Normally, fsck is run non-interactively to preen the file systems after an abrupt system halt in which the latest file system changes were not written to disk. Preening automatically fixes any basic file system inconsistencies and does not try to repair more serious errors. While preening a file system, fsck fixes the inconsistencies it expects from such an abrupt halt. For more serious conditions, the command reports the error and terminates.
When you run fsck interactively, fsck reports each inconsistency found and fixes innocuous errors. However, for more serious errors, the command reports the inconsistency and prompts you to choose a response. When you run fsck using the -y or -n options, your response is predefined as yes or no to the default response suggested by fsck for each error condition.
Some corrective actions will result in some loss of data. The amount and severity of data loss may be determined from the fsck diagnostic output.
fsck is a multipass file system check program. Each pass invokes a different phase of the fsck program with different sets of messages. After initialization, fsck performs successive passes over each file system, checking blocks and sizes, path names, connectivity, reference counts, and the map of free blocks (possibly rebuilding it). It also performs some cleanup.
The phases (passes) performed by the UFS version of fsck are:
Initialization
Phase 1 - Check blocks and sizes
Phase 2 - Check path names
Phase 3 - Check connectivity
Phase 4 - Check reference counts
Phase 5 - Check cylinder groups
The next sections describe the error conditions that may be detected in each phase, the messages and prompts that result, and possible responses you can make.
Messages that may appear in more than one phase are described in "General fsck Error Messages ". Otherwise, messages are organized alphabetically by the phases in which they occur.
Many of the messages include the abbreviations shown in the table below:
Table 43-1 Error Message Abbreviations
Abbreviation |
Meaning |
---|---|
BLK |
Block number |
DUP |
Duplicate block number |
DIR |
Directory name |
CG |
Cylinder group |
MTIME |
Time file was last modified |
UNREF |
Unreferenced |
Many of the messages also include variable fields, such as inode numbers, which are represented in this book by an italicized term, such as inode-number. For example, this screen message:
INCORRECT BLOCK COUNT I=2529 |
is shown as:
INCORRECT BLOCK COUNT I=inode-number |
The error messages in this section may be displayed in any phase after initialization. Although they offer the option to continue, it is generally best to regard them as fatal. They reflect a serious system failure and should be handled immediately. When confronted with such a message, terminate the program by entering n(o). If you cannot determine what caused the problem, contact your local service provider or another qualified person.
CANNOT SEEK: BLK block-number (CONTINUE) |
A request to move to a specified block number, block-number, in the file system failed. This message indicates a serious problem, probably a hardware failure.
If you want to continue the file system check, fsck will retry the move and display a list of sector numbers that could not be moved. If the block was part of the virtual memory buffer cache, fsck will terminate with a fatal I/O error message.
If the disk is experiencing hardware problems, the problem will persist. Run fsck again to recheck the file system.
If the recheck fails, contact your local service provider or another qualified person.
CANNOT READ: BLK block-number (CONTINUE) |
A request to read a specified block number, block-number, in the file system failed. The message indicates a serious problem, probably a hardware failure.
If you want to continue the file system check, fsck will retry the read and display a list of sector numbers that could not be read. If the block was part of the virtual memory buffer cache, fsck will terminate with a fatal I/O error message. If fsck tries to write back one of the blocks on which the read failed, it will display the following message:
WRITING ZERO'ED BLOCK sector-numbers TO DISK
If the disk is experiencing hardware problems, the problem will persist. Run fsck again to recheck the file system. If the recheck fails, contact your local service provider or another qualified person.
CANNOT WRITE: BLK block-number (CONTINUE) |
A request to write a specified block number, block-number, in the file system failed.
If you continue the file system check, fsck will retry the write and display a list of sector numbers that could not be written. If the block was part of the virtual memory buffer cache, fsck will terminate with a fatal I/O error message.
The disk may be write-protected. Check the write-protect lock on the drive. If the disk has hardware problems, the problem will persist. Run fsck again to recheck the file system. If the write-protect is not the problem or the recheck fails, contact your local service provider or another qualified person.
In the initialization phase, command-line syntax is checked. Before the file system check can be performed, fsck sets up tables and opens files.
The messages in this section relate to error conditions resulting from command-line options, memory requests, the opening of files, the status of files, file system size checks, and the creation of the scratch file. All such initialization errors terminate fsck when it is preening the file system.
bad inode number inode-number to ginode |
An internal error occurred because of a nonexistent inode inode-number. fsck exits.
Contact your local service provider or another qualified person.
cannot alloc size-of-block map bytes for blockmap cannot alloc size-of-free map bytes for freemap cannot alloc size-of-state map bytes for statemap cannot alloc size-of-lncntp bytes for lncntp |
Request for memory for its internal tables failed. fsck terminates. This message indicates a serious system failure that should be handled immediately. This condition may occur if other processes are using a very large amount of system resources.
Killing other processes may solve the problem. If not, contact your local service provider or another qualified person.
Can't open checklist file: filename |
The file system checklist file filename (usually /etc/vfstab) cannot be opened for reading. fsck terminates.
Check if the file exists and if its access modes permit read access.
Can't open filename |
fsck cannot open file system filename. When running interactively, fsck ignores this file system and continues checking the next file system given.
Check to see if read and write access to the raw device file for the file system is permitted.
Can't stat root |
fsck request for statistics about the root directory failed. fsck terminates.
This message indicates a serious system failure. Contact your local service provider or another qualified person.
Can't stat filename Can't make sense out of name filename |
fsck request for statistics about the file system filename failed. When running interactively, fsck ignores this file system and continues checking the next file system given.
Check if the file system exists and check its access modes.
filename: (NO WRITE) |
Either the -n option was specified or fsck could not open the file system filename for writing. When fsck is running in no-write mode, all diagnostic messages are displayed, but fsck does not attempt to fix anything.
If -n was not specified, check the type of the file specified. It may be the name of a regular file.
IMPOSSIBLE MINFREE=percent IN SUPERBLOCK (SET TO DEFAULT) |
The superblock minimum space percentage is greater than 99 percent or less than 0 percent.
To set the minfree parameter to the default 10 percent, type y at the default prompt. To ignore the error condition, type n at the default prompt.
filename: BAD SUPER BLOCK: message USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; e.g., fsck[-f ufs] -o b=# [special ...] where # is the alternate superblock. See fsck_ufs(1M) |
The superblock has been corrupted.
One of the following messages may be displayed:
CPG OUT OF RANGE FRAGS PER BLOCK OR FRAGSIZE WRONG INODES PER GROUP OUT OF RANGE INOPB NONSENSICAL RELATIVE TO BSIZE MAGIC NUMBER WRONG NCG OUT OF RANGE NCYL IS INCONSISTENT WITH NCG*CPG NUMBER OF DATA BLOCKS OUT OF RANGE NUMBER OF DIRECTORIES OUT OF RANGE ROTATIONAL POSITION TABLE SIZE OUT OF RANGE SIZE OF CYLINDER GROUP SUMMARY AREA WRONG SIZE TOO LARGE BAD VALUES IN SUPERBLOCK |
Try to rerun fsck with an alternative superblock. Specifying block 32 is a good first choice. You can locate an alternative copy of the superblock by running the newfs -N command on the slice. Be sure to specify the -N option; otherwise, newfs overwrites the existing file system.
UNDEFINED OPTIMIZATION IN SUPERBLOCK (SET TO DEFAULT) |
The superblock optimization parameter is neither OPT_TIME nor OPT_SPACE.
To minimize the time to perform operations on the file system, type y at the SET TO DEFAULT prompt. To ignore this error condition, type n.
This phase checks the inode list. It reports error conditions encountered while:
Checking inode types
Setting up the zero-link-count table
Examining inode block numbers for bad or duplicate blocks
Checking inode size
Checking inode format
All errors in this phase except INCORRECT BLOCK COUNT, PARTIALLY TRUNCATED INODE, PARTIALLY ALLOCATED INODE, and UNKNOWN FILE TYPE terminate fsck when it is preening a file system.
These messages (in alphabetical order) may occur in phase 1:
block-number BAD I=inode-number |
Inode inode-number contains a block number block-number with a number lower than the number of the first data block in the file system or greater than the number of the last block in the file system. This error condition may generate the EXCESSIVE BAD BLKS error message in phase 1 if inode inode-number has too many block numbers outside the file system range. This error condition generates the BAD/DUP error message in phases 2 and 4.
N/A
BAD MODE: MAKE IT A FILE? |
The status of a given inode is set to all 1s, indicating file system damage. This message does not indicate physical disk damage, unless it is displayed repeatedly after fsck -y has been run.
Type y to reinitialize the inode to a reasonable value.
BAD STATE state-number TO BLKERR |
An internal error has scrambled the fsck state map so that it shows the impossible value state-number. fsck exits immediately.
Contact your local service provider or another qualified person.
block-number DUP I=inode-number |
Inode inode-number contains a block number block-number, which is already claimed by the same or another inode. This error condition may generate the EXCESSIVE DUP BLKS error message in phase 1 if inode inode-number has too many block numbers claimed by the same or another inode. This error condition invokes phase 1B and generates the BAD/DUP error messages in phases 2 and 4.
N/A
DUP TABLE OVERFLOW (CONTINUE) |
There is no more room in an internal table in fsck containing duplicate block numbers. If the -o p option is specified, the program terminates.
To continue the program, type y at the CONTINUE prompt. When this error occurs, a complete check of the file system is not possible. If another duplicate block is found, this error condition repeats. Increase the amount of virtual memory available (by killing some processes, increasing swap space) and run fsck again to recheck the file system. To terminate the program, type n.
EXCESSIVE BAD BLOCKS I=inode-number (CONTINUE) |
Too many (usually more than 10) blocks have a number lower than the number of the first data block in the file system or greater than the number of the last block in the file system associated with inode inode-number. If the -o p (preen) option is specified, the program terminates.
To continue the program, type y at the CONTINUE prompt. When this error occurs, a complete check of the file system is not possible. You should run fsck again to recheck the file system. To terminate the program, type n.
EXCESSIVE DUP BLKS I=inode-number (CONTINUE) |
Too many (usually more than 10) blocks are claimed by the same or another inode or by a free-list. If the -o p option is specified, the program terminates.
To continue the program, type y at the CONTINUE prompt. When this error occurs, a complete check of the file system is not possible. You should run fsck again to recheck the file system. To terminate the program, type n.
INCORRECT BLOCK COUNT I=inode-number (number-of-BAD-DUP-or-missing-blocks should be number-of-blocks-in-filesystem) (CORRECT) |
The block count for inode inode-number is number-of-BAD-DUP-or-missing-blocks, but should be number-of-blocks-in-filesystem. When preening, fsck corrects the count.
To replace the block count of inode inode-number by number-of-blocks-in-filesystem, type y at the CORRECT prompt. To terminate the program, type n.
LINK COUNT TABLE OVERFLOW (CONTINUE) |
There is no more room in an internal table for fsck containing allocated inodes with a link count of zero. If the -o p (preen) option is specified, the program exits and fsck has to be completed manually.
To continue the program, type y at the CONTINUE prompt. If another allocated inode with a zero-link count is found, this error condition repeats. When this error occurs, a complete check of the file system is not possible. You should run fsck again to recheck the file system. Increase the virtual memory available by killing some processes or increasing swap space, then run fsck again. To terminate the program, type n.
PARTIALLY ALLOCATED INODE I=inode-number (CLEAR) |
Inode inode-number is neither allocated nor unallocated. If the -o p (preen) option is specified, the inode is cleared.
To deallocate the inode inode-number by zeroing out its contents, type y. This may generate the UNALLOCATED error condition in phase 2 for each directory entry pointing to this inode. To ignore the error condition, type n. A no response is appropriate only if you intend to take other measures to fix the problem.
PARTIALLY TRUNCATED INODE I=inode-number (SALVAGE) |
fsck has found inode inode-number whose size is shorter than the number of blocks allocated to it. This condition occurs only if the system crashes while truncating a file. When preening the file system, fsck completes the truncation to the specified size.
To complete the truncation to the size specified in the inode, type y at the SALVAGE prompt. To ignore this error condition, type n.
UNKNOWN FILE TYPE I=inode-number (CLEAR) |
The mode word of the inode inode-number shows that the inode is not a pipe, special character inode, special block inode, regular inode, symbolic link, FIFO file, or directory inode. If the -o p option is specified, the inode is cleared.
To deallocate the inode inode-number by zeroing its contents, which results in the UNALLOCATED error condition in phase 2 for each directory entry pointing to this inode, type y at the CLEAR prompt. To ignore this error condition, type n.
When a duplicate block is found in the file system, this message is displayed:
block-number DUP I=inode-number |
Inode inode-number contains a block number block-number that is already claimed by the same or another inode. This error condition generates the BAD/DUP error message in phase 2. Inodes that have overlapping blocks may be determined by examining this error condition and the DUP error condition in phase 1.
When a duplicate block is found, the file system is rescanned to find the inode that previously claimed that block.
This phase removes directory entries pointing to bad inodes found in phases 1 and 1B. It reports error conditions resulting from:
Incorrect root inode mode and status
Directory inode pointers out of range
Directory entries pointing to bad inodes
Directory integrity checks
When the file system is being preened (-o p option), all errors in this phase terminate fsck, except those related to directories not being a multiple of the block size, duplicate and bad blocks, inodes out of range, and extraneous hard links.
These messages (in alphabetical order) may occur in phase 2:
BAD INODE state-number TO DESCEND |
An fsck internal error has passed an invalid state state-number to the routine that descends the file system directory structure. fsck exits.
If this error message is displayed, contact your local service provider or another qualified person.
BAD INODE NUMBER FOR '.' I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename (FIX) |
A directory inode-number has been found whose inode number for "." does not equal inode-number.
To change the inode number for "." to be equal to inode-number, type y at the FIX prompt To leave the inode numbers for "." unchanged, type n.
BAD INODE NUMBER FOR '..' I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename (FIX) |
A directory inode-number has been found whose inode number for ".." does not equal the parent of inode-number.
To change the inode number for ".." to be equal to the parent of inode-number, type y at the FIX prompt. (Note that "..'' in the root inode points to itself.)To leave the inode number for ".." unchanged, type n.
BAD RETURN STATE state-number FROM DESCEND |
An fsck internal error has returned an impossible state state-number from the routine that descends the file system directory structure. fsck exits.
If this message is displayed, contact your local service provider or another qualified person.
BAD STATE state-number FOR ROOT INODE |
An internal error has assigned an impossible state state-number to the root inode. fsck exits.
If this error message is displayed, contact your local service provider or another qualified person.
BAD STATE state-number FOR INODE=inode-number |
An internal error has assigned an impossible state state-number to inode inode-number. fsck exits.
If this error message is displayed, contact your local service provider or another qualified person.
DIRECTORY TOO SHORT I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename (FIX) |
A directory filename has been found whose size file-size is less than the minimum directory size. The owner UID, mode file-mode, size file-size, modify time modification-time, and directory name filename are displayed.
To increase the size of the directory to the minimum directory size, type y at the FIX prompt. To ignore this directory, type n.
DIRECTORY filename: LENGTH file-size NOT MULTIPLE OF block-number (ADJUST) |
A directory filename has been found with size file-size that is not a multiple of the directory block size block-number.
To round up the length to the appropriate block size, type y. When preening the file system (-o p option), fsck only displays a warning and adjusts the directory. To ignore this condition, type n.
DIRECTORY CORRUPTED I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename (SALVAGE) |
A directory with an inconsistent internal state has been found.
To throw away all entries up to the next directory boundary (usually a 512-byte boundary), type y at the SALVAGE prompt. This drastic action can throw away up to 42 entries. Take this action only after other recovery efforts have failed. To skip to the next directory boundary and resume reading, but not modify the directory, type n.
DUP/BAD I=inode-number OWNER=O MODE=M SIZE=file-size MTIME=modification-time TYPE=filename (REMOVE) |
Phase 1 or phase 1B found duplicate blocks or bad blocks associated with directory or file entry filename, inode inode-number. The owner UID, mode file-mode, size file-size, modification time modification-time, and directory or file name filename are displayed. If the -p (preen) option is specified, the duplicate/bad blocks are removed.
To remove the directory or file entry filename, type y at the REMOVE prompt. To ignore this error condition, type n.
DUPS/BAD IN ROOT INODE (REALLOCATE) |
Phase 1 or phase 1B has found duplicate blocks or bad blocks in the root inode (usually inode number 2) of the file system.
To clear the existing contents of the root inode and reallocate it, type y at the REALLOCATE prompt. The files and directories usually found in the root inode will be recovered in phase 3 and put into the lost+found directory. If the attempt to allocate the root fails, fsck will exit with: CANNOT ALLOCATE ROOT INODE. Type n to get the CONTINUE prompt. Type: y to respond to the CONTINUE prompt, and ignore the DUPS/BAD error condition in the root inode and continue running the file system check. If the root inode is not correct, this may generate many other error messages. Type n to terminate the program.
EXTRA '.' ENTRY I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename (FIX) |
A directory inode-number has been found that has more than one entry for ".".
To remove the extra entry for "." type y at the FIX prompt. To leave the directory unchanged, type n.
EXTRA '..' ENTRY I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename(FIX) |
A directory inode-number has been found that has more than one entry for ".." (the parent directory).
To remove the extra entry for `..' (the parent directory), type y at the FIX prompt. To leave the directory unchanged, type n.
hard-link-number IS AN EXTRANEOUS HARD LINK TO A DIRECTORY filename (REMOVE) |
fsck has found an extraneous hard link hard-link-number to a directory filename. When preening (-o p option), fsck ignores the extraneous hard links.
To delete the extraneous entry hard-link-number type y at the REMOVE prompt. To ignore the error condition, type n.
inode-number OUT OF RANGE I=inode-number NAME=filename (REMOVE) |
A directory entry filename has an inode number inode-number that is greater than the end of the inode list. If the -p (preen) option is specified, the inode will be removed automatically.
To delete the directory entry filename type y at the REMOVE prompt. To ignore the error condition, type n.
MISSING '.' I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename (FIX) |
A directory inode-number has been found whose first entry (the entry for ".") is unallocated.
To build an entry for "." with inode number equal to inode-number, type y at the FIX prompt. To leave the directory unchanged, type n.
MISSING '.' I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename CANNOT FIX, FIRST ENTRY IN DIRECTORY CONTAINS filename |
A directory inode-number has been found whose first entry is filename. fsck cannot resolve this problem.
If this error message is displayed, contact your local service provider or another qualified person.
MISSING '.' I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename CANNOT FIX, INSUFFICIENT SPACE TO ADD '.' |
A directory inode-number has been found whose first entry is not ".". fsck cannot resolve the problem.
If this error message is displayed, contact your local service provider or another qualified person.
MISSING '..' I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename (FIX) |
A directory inode-number has been found whose second entry is unallocated.
To build an entry for ".." with inode number equal to the parent of inode-number, type y at the FIX prompt. (Note that "..'' in the root inode points to itself.) To leave the directory unchanged, type n.
MISSING '..' I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS filename |
A directory inode-number has been found whose second entry is filename. fsck cannot resolve this problem.
If this error message is displayed, contact your local service provider or another qualified person.
MISSING '..' I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename CANNOT FIX, INSUFFICIENT SPACE TO ADD '..' |
A directory inode-number has been found whose second entry is not ".." (the parent directory). fsck cannot resolve this problem.
If this error message is displayed, contact your local service provider or another qualified person.
NAME TOO LONG filename |
An excessively long path name has been found, which usually indicates loops in the file system name space. This error can occur if a privileged user has made circular links to directories.
Remove the circular links.
ROOT INODE UNALLOCATED (ALLOCATE) |
The root inode (usually inode number 2) has no allocate-mode bits.
To allocate inode 2 as the root inode, type y at the ALLOCATE prompt. The files and directories usually found in the root inode will be recovered in phase 3 and put into the lost+found directory. If the attempt to allocate the root inode fails, fsck displays this message and exits: CANNOT ALLOCATE ROOT INODE. To terminate the program, type n.
ROOT INODE NOT DIRECTORY (REALLOCATE) |
The root inode (usually inode number 2) of the file system is not a directory inode.
To clear the existing contents of the root inode and reallocate it, type y at the REALLOCATE prompt. The files and directories usually found in the root inode will be recovered in phase 3 and put into the lost+found directory. If the attempt to allocate the root inode fails, fsck displays this message and exits :CANNOT ALLOCATE ROOT INODE. To have fsck prompt with FIX, type n.
UNALLOCATED I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time type=filename(REMOVE) |
A directory or file entry filename points to an unallocated inode inode-number. The owner UID, mode file-mode, size file-size, modify time modification-time, and file name filename are displayed.
To delete the directory entry filename, type y at the REMOVE prompt. To ignore the error condition, type n.
ZERO LENGTH DIRECTORY I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time DIR=filename (REMOVE) |
A directory entry filename has a size file-size that is zero. The owner UID, mode file-mode, size file-size, modify time modification-time, and directory name filename are displayed.
To remove the directory entry filename, type y at the REMOVE prompt. This results in the BAD/DUP error message in phase 4. To ignore the error condition, type n.
This phase checks the directories examined in phase 2 and reports error conditions resulting from:
Unreferenced directories
Missing or full lost+found directories
These messages (in alphabetical order) may occur in phase 3:
BAD INODE state-number TO DESCEND |
An internal error has caused an impossible state state-number to be passed to the routine that descends the file system directory structure. fsck exits.
If this occurs, contact your local service provider or another qualified person.
DIR I=inode-number1 CONNECTED. PARENT WAS I=inode-number2 |
This is an advisory message indicating a directory inode inode-number1 was successfully connected to the lost+found directory. The parent inode inode-number2 of the directory inode inode-number1 is replaced by the inode number of the lost+found directory.
N/A
DIRECTORY filename LENGTH file-size NOT MULTIPLE OF block-number (ADJUST) |
A directory filename has been found with size file-size that is not a multiple of the directory block size B. (This condition can recur in phase 3 if it is not adjusted in phase 2.)
To round up the length to the appropriate block size, type y at the ADJUST prompt. When preening, fsck displays a warning and adjusts the directory. To ignore this error condition, type n.
lost+found IS NOT A DIRECTORY (REALLOCATE) |
The entry for lost+found is not a directory.
To allocate a directory inode and change the lost+found directory to reference it, type y at the REALLOCATE prompt. The previous inode reference by the lost+found directory is not cleared and it will either be reclaimed as an unreferenced inode or have its link count adjusted later in this phase. Inability to create a lost+found directory displays the message: SORRY. CANNOT CREATE lost+found DIRECTORY and aborts the attempt to link up the lost inode, which generates the UNREF error message in phase 4. To abort the attempt to link up the lost inode, which generates the UNREF error message in phase 4, type n.
NO lost+found DIRECTORY (CREATE) |
There is no lost+found directory in the root directory of the file system. When preening, fsck tries to create a lost+found directory.
To create a lost+found directory in the root of the file system, type y at the CREATE prompt. This may lead to the message NO SPACE LEFT IN / (EXPAND). If the lost+found directory cannot be created, fsck displays the message: SORRY. CANNOT CREATE lost+found DIRECTORY and aborts the attempt to link up the lost inode. This in turn generates the UNREF error message later in phase 4. To abort the attempt to link up the lost inode, type n.
NO SPACE LEFT IN /lost+found (EXPAND) |
Another entry cannot be added to the lost+found directory in the root directory of the file system because no space is available. When preening, fsck expands the lost+found directory.
To expand the lost+found directory to make room for the new entry, type y at the EXPAND prompt. If the attempted expansion fails, fsck displays: SORRY. NO SPACE IN lost+found DIRECTORY and aborts the request to link a file to the lost+found directory. This error generates the UNREF error message later in phase 4. Delete any unnecessary entries in the lost+found directory. This error terminates fsck when preening is in effect. To abort the attempt to link up the lost inode, type n.
UNREF DIR I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time (RECONNECT) |
The directory inode inode-number was not connected to a directory entry when the file system was traversed. The owner UID, mode file-mode, size file-size, and modification time modification-time of directory inode inode-number are displayed. When preening, fsck reconnects the non-empty directory inode if the directory size is non-zero. Otherwise, fsck clears the directory inode.
To reconnect the directory inode inode-number into the lost+found directory, type y at the RECONNECT prompt. If the directory is successfully reconnected, a CONNECTED message is displayed. Otherwise, one of the lost+found error messages is displayed. To ignore this error condition, type n. This error causes the UNREF error condition in phase 4.
This phase checks the link count information obtained in phases 2 and 3. It reports error conditions resulting from:
Unreferenced files
A missing or full lost+found directory
Incorrect link counts for files, directories, symbolic links, or special files
Unreferenced files, symbolic links, and directories
Bad or duplicate blocks in files and directories
Incorrect total free-inode counts
All errors in this phase (except running out of space in the lost+found directory) are correctable when the file system is being preened.
These messages (in alphabetical order) may occur in phase 4:
BAD/DUP type I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time (CLEAR) |
Phase 1 or phase 1B found duplicate blocks or bad blocks associated with file or directory inode inode-number. The owner UID, mode file-mode, size file-size, and modification time modification-time of inode inode-number are displayed.
To deallocate inode inode-number by zeroing its contents, type y at the CLEAR prompt. To ignore this error condition, type n.
(CLEAR) |
The inode mentioned in the UNREF error message immediately preceding cannot be reconnected. This message does not display if the file system is being preened because lack of space to reconnect files terminates fsck.
To deallocate the inode by zeroing out its contents, type y at the CLEAR prompt. To ignore the preceding error condition, type n.
LINK COUNT type I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time COUNT link-count SHOULD BE corrected-link-count (ADJUST) |
The link count for directory or file inode inode-number is link-count but should be corrected-link-count. The owner UID, mode file-mode, size file-size, and modification time modification-time of inode inode-number are displayed. If the -o p option is specified, the link count is adjusted unless the number of references is increasing. This condition does not occur unless there is a hardware failure. When the number of references is increasing during preening, fsck displays this message and exits: LINK COUNT INCREASING
To replace the link count of directory or file inode inode-number with corrected-link-count, type y at the ADJUST prompt. To ignore this error condition, type n.
lost+found IS NOT A DIRECTORY (REALLOCATE) |
The entry for lost+found is not a directory.
To allocate a directory inode and change the lost+found directory to reference it, type y at the REALLOCATE prompt. The previous inode reference by the lost+found directory is not cleared. It will either be reclaimed as an unreferenced inode or have its link count adjusted later in this phase. Inability to create a lost+found directory displays this message: SORRY. CANNOT CREATE lost+found DIRECTORY and aborts the attempt to link up the lost inode. This error generates the UNREF error message later in phase 4. To abort the attempt to link up the lost inode, type n.
NO lost+found DIRECTORY (CREATE) |
There is no lost+found directory in the root directory of the file system. When preening, fsck tries to create a lost+found directory.
To create a lost+found directory in the root of the file system, type y at the CREATE prompt. If the lost+found directory cannot be created, fsck displays the message: SORRY. CANNOT CREATE lost+found DIRECTORY and aborts the attempt to link up the lost inode. This error in turn generates the UNREF error message later in phase 4. To abort the attempt to link up the lost inode, type n.
NO SPACE LEFT IN / lost+found (EXPAND) |
There is no space to add another entry to the lost+found directory in the root directory of the file system. When preening, fsck expands the lost+found directory.
To expand the lost+found directory to make room for the new entry, type y at the EXPAND prompt. If the attempted expansion fails, fsck displays the message: SORRY. NO SPACE IN lost+found DIRECTORY and aborts the request to link a file to the lost+found directory. This error generates the UNREF error message later in phase 4. Delete any unnecessary entries in the lost+found directory. This error terminates fsck when preening (-o p option) is in effect. To abort the attempt to link up the lost inode, type n.
UNREF FILE I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time (RECONNECT) |
File inode inode-number was not connected to a directory entry when the file system was traversed. The owner UID, mode file-mode, size file-size, and modification time modification-time of inode inode-number are displayed. When fsck is preening, the file is cleared if either its size or its link count is zero; otherwise, it is reconnected.
To reconnect inode inode-number to the file system in the lost+found directory, type y. This error may generate the lost+found error message in phase 4 if there are problems connecting inode inode-number to the lost+found directory. To ignore this error condition, type n. This error always invokes the CLEAR error condition in phase 4.
UNREF type I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time (CLEAR) |
Inode inode-number (whose type is directory or file) was not connected to a directory entry when the file system was traversed. The owner UID, mode file-mode, size file-size, and modification time modification-time of inode inode-number are displayed. When fsck is preening, the file is cleared if either its size or its link count is zero; otherwise, it is reconnected.
To deallocate inode inode-number by zeroing its contents, type y at the CLEAR prompt. To ignore this error condition, type n.
ZERO LENGTH DIRECTORY I=inode-number OWNER=UID MODE=file-mode SIZE=file-size MTIME=modification-time(CLEAR) |
A directory entry filename has a size file-size that is zero. The owner UID, mode file-mode, size file-size, modification time modification-time, and directory name filename are displayed.
To deallocate the directory inode inode-number by zeroing out its contents, type y. To ignore the error condition, type n.
This phase checks the free-block and used-inode maps. It reports error conditions resulting from:
Allocated inodes missing from used-inode maps
Free blocks missing from free-block maps
Free inodes in the used-inode maps
Incorrect total free-block count
Incorrect total used inode count
These messages (in alphabetical order) may occur in phase 5:
BLK(S) MISSING IN BIT MAPS (SALVAGE) |
BLK(S) MISSING IN BIT MAPS (SALVAGE) |
A cylinder group block map is missing some free blocks. During preening, fsck reconstructs the maps.
To reconstruct the free-block map, type y at the SALVAGE prompt. To ignore this error condition, type n.
CG character-for-command-option: BAD MAGIC NUMBER |
The magic number of cylinder group character-for-command-option is wrong. This error usually indicates that the cylinder group maps have been destroyed. When running interactively, the cylinder group is marked as needing reconstruction. fsck terminates if the file system is being preened.
If this occurs, contact your local service provider or another qualified person.
FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGE) |
The actual count of free blocks does not match the count of free blocks in the superblock of the file system. If the -o p option was specified, the free-block count in the superblock is fixed automatically.
To reconstruct the superblock free-block information, type y at the SALVAGE prompt. To ignore this error condition, type n.
SUMMARY INFORMATION BAD (SALVAGE) |
The summary information is incorrect. When preening, fsck recomputes the summary information.
To reconstruct the summary information, type y at the SALVAGE prompt. To ignore this error condition, type n.
Once a file system has been checked, a few cleanup functions are performed. The cleanup phase displays the following status messages.
number-of files, number-of-files used, number-of-files free (number-of frags, number-of blocks, percent fragmentation) |
This message indicates that the file system checked contains number-of files using number-of fragment-sized blocks, and that there are number-of fragment-sized blocks free in the file system. The numbers in parentheses break the free count down into number-of free fragments, number-of free full-sized blocks, and the percent fragmentation.
***** FILE SYSTEM WAS MODIFIED ***** |
This message indicates that the file system was modified by fsck. If this file system is mounted or is the current root (/) file system, reboot. If the file system is mounted, you may need to unmount it and run fsck again; otherwise, the work done by fsck may be undone by the in-core copies of tables.
filename FILE SYSTEM STATE SET TO OKAY |
This message indicates that file system filename was marked as stable. Use the fsck -m command to determine if the file system needs checking.
filename FILE SYSTEM STATE NOT SET TO OKAY |
This message indicates that file system filename was not marked as stable. Use the fsck -m command to determine if the file system needs checking.
In latest version of vpopmail we need to add some parameters in startup script of spamassassin to deliver messages in vpopmail (/path_to_vpopmail/domain ).
Without these modification all messages from qmail will be delivered to /var/mail/vpopmail file.
When compile the vpopmail, we have following message:
You can use verry simple method with httpasswd:
htpasswd will return encrypted password
htpasswd -bnBC 10 "" password | tr -d ':\n'