You cannot fsck a mounted filesystem so when possible (subject to running applications and users) you would simply 'umount' a filesystem (provided it's not / (root) or /usr) and then fsck it.
If it's the root filesystem then I'd normally take the system down and boot from DVD
into single user. Then fsck root and/or usr filesystems. Booting this way means the hard disk root filesystem is not mounted when running fsck as the system root is the DVD.
Doing a read-only fsck "-n" is recommended to see how much damage there is.
ehe may i know what are the difference between Unix & Linux, and what are the advantages of having Unix as well as disadvantages of having Unix or if u dun mind i am dumb do pls tell me what are the advantages as well as the disadvantages of having linux as well. thanks (1 Reply)
i have a major problem, i renamed the ld.so.1 file.
so i want to reboot into single user mode / fail safe / cdrom single user but i will not mount the root disk.
if i look in /dev/dsk all i see is ide disks (cdrom) and no actual disks. (2 Replies)
Hi all.
I have a problem:
My server is HP DL380 G5, and installed Sun OS 5.10 generic i86pc
I have misstake when hit command "crle -l /opt/nms/lib", so default library path "/lib:/usr/libs" lose.
Now, I can't restart system, message is: "Warning:init(1m) existed on fatal signal 9".
So, i... (6 Replies)
Hi,
A server is running solaris 10. From the OK prompt, I have used the command 'boot -F failsafe' and here I am trying to mount a remote directory using the command:
#mount 10.238.233.13:/export/home/ssuser /tmp/mnt
but i dont get any response for sometime and then it shows the error... (4 Replies)
Hi all,
Tried googling what is solaris failsafe, but results from oracle only show how to use it, but not what is it
Can any kind soul here shed some light or point me to some documentation ?
Do we need to install failsafe during the OS installation ?
is failsafe located on the same disk... (2 Replies)
Discussion started by: javanoob
2 Replies
LEARN ABOUT LINUX
systemd-fsck
SYSTEMD-FSCK@.SERVICE(8) systemd-fsck@.service SYSTEMD-FSCK@.SERVICE(8)NAME
systemd-fsck@.service, systemd-fsck-root.service, systemd-fsck - File system checker logic
SYNOPSIS
systemd-fsck@.service
systemd-fsck-root.service
/lib/systemd/systemd-fsck
DESCRIPTION
systemd-fsck@.service and systemd-fsck-root.service are services responsible for file system checks. They are instantiated for each device
that is configured for file system checking. systemd-fsck-root.service is responsible for file system checks on the root file system, but
only if the root filesystem was not checked in the initramfs. systemd-fsck@.service is used for all other file systems and for the root
file system in the initramfs.
These services are started at boot if passno in /etc/fstab for the file system is set to a value greater than zero. The file system check
for root is performed before the other file systems. Other file systems may be checked in parallel, except when they are on the same
rotating disk.
systemd-fsck does not know any details about specific filesystems, and simply executes file system checkers specific to each filesystem
type (/sbin/fsck.*). This helper will decide if the filesystem should actually be checked based on the time since last check, number of
mounts, unclean unmount, etc.
If a file system check fails for a service without nofail, emergency mode is activated, by isolating to emergency.target.
KERNEL COMMAND LINE
systemd-fsck understands these kernel command line parameters:
fsck.mode=
One of "auto", "force", "skip". Controls the mode of operation. The default is "auto", and ensures that file system checks are done
when the file system checker deems them necessary. "force" unconditionally results in full file system checks. "skip" skips any file
system checks.
fsck.repair=
One of "preen", "yes", "no". Controls the mode of operation. The default is "preen", and will automatically repair problems that can be
safely fixed. "yes" will answer yes to all questions by fsck and "no" will answer no to all questions.
SEE ALSO systemd(1), fsck(8), systemd-quotacheck.service(8), fsck.btrfs(8), fsck.cramfs(8), fsck.ext4(8), fsck.fat(8), fsck.hfsplus(8),
fsck.minix(8), fsck.ntfs(8), fsck.xfs(8)systemd 237 SYSTEMD-FSCK@.SERVICE(8)