Sponsored Content
Top Forums UNIX for Dummies Questions & Answers fsck on a mounted file system? Post 89857 by Perderabo on Wednesday 16th of November 2005 10:39:04 AM
Old 11-16-2005
If fsck changes nothing, it can do no damage. Normally I use -n to prohibit fsck from changing stuff, but the Solaris man page says -N works too. So it is not dangerous. How useful it is on a mounted filesystem varies. It depends on how busy the filesystem is. I would do a "sync" first (although I think that fsck does its own sync).

Your original message would bother me enough to unmount the filesystem and then do an fsck on it. When I suspect trouble, even with an unmounted filesystem, I do a -n first. Too many times I have run an interactive fsck and been stuck typing y a few hundred times. With -n, I can gauge how many and how severe the errors are. Then I can decide if my next step is fsck, fsck -y, or newfs.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File System Check (fsck)

I am having a problem with fsck. I am new to UNIX but was placed in a position where I must learn it. Anyway, one of the instructions that I have been given is to use 'fsck -f -y' when I am having trouble with the filesystem. The problem is that I am getting an error message that says the -f... (1 Reply)
Discussion started by: mawalton
1 Replies

2. UNIX for Dummies Questions & Answers

how many directory can be mounted on one file system

I have a question and seek help. How many directory can be mounted on one file system on UNIX with solaris 9? For example, I have one file system as /dev/dsk/cieit0a6. I have created one directory as /u01/app/oracle and mounted this directory to cieit06. It works. Then I create another directory as... (4 Replies)
Discussion started by: duke0001
4 Replies

3. HP-UX

fsck! How to run Full File System Check

Dear all I am new for HP-UX. I have HP rp2470 running HP-UX 10.x When i run fsck in a root, the output is as below: #:root> fsck fsck: /dev/vg00/rlvol1: mounted file system continue (y/n)? y ** /dev/vg00/rlvol1 ** Last Mounted on /stand ** Phase 1 - Check Blocks and Sizes ** Phase... (3 Replies)
Discussion started by: hungevntelecom
3 Replies

4. Solaris

How to find which file system was not mounted ?

Hello all, can someone help on how can i check if all file system were mounted during reboot? I know that we have first to look on /etc/vfstab; the containing of this one should be mounted during boot of system, and after with : df -k we can see if mentioned file system on vfstab were... (3 Replies)
Discussion started by: vitchi
3 Replies

5. Solaris

FSCK root file system (/dev/vx/dsk/bootdg/rootvol)

Hi, I need to fsck the root file system on my Solaris 9 server. It is a UFS file system but it is under Veritas control. I want to know which fsck I need to use to check the file system. The default Solaris fsck (/usr/sbin/fsck) or the Veritas (/lib/fs/vxfs/sparcv9/fsck) fsck? I take it I... (3 Replies)
Discussion started by: gwhelan
3 Replies

6. SCO

file system not getting mounted in read write mode after system power failure

After System power get failed File system is not getting mounted in read- write mode (1 Reply)
Discussion started by: gtkpmbpl
1 Replies

7. UNIX for Dummies Questions & Answers

Run fsck on root file system

If i run fsck on one filesystem and fsck need to repair some things then this partition must be unmounted correct ? So running fsck on root file system isn't possible within same OS ? correct ? What is the best way to do that, live cd ? BR, Jurif (5 Replies)
Discussion started by: jurif
5 Replies

8. Solaris

Not able to run fsck on root file system

I am trying to root disk mirroring on SunFire V210 Server. There are two disks on this server c1t0d0 and c1t1d0 . I completed all the steps and I updated the vfstab file too. After I have updated the vfstab file I run df -h command but could not see the changes i made in vfstab. Suddenly the server... (1 Reply)
Discussion started by: newbi8321
1 Replies

9. Red Hat

File system mounted or not

Hi, I know something about file system that its a directory to hold files. My query is how to identify file system is mounted or not .Can you give me some examples? OS --- Linux 2.6 (7 Replies)
Discussion started by: Maddy123
7 Replies

10. AIX

Fsck -n on mounted FS - how unreliable ?

greetings all, we had SAN bobbles recently and so I ran fsck against all local FS on all systems. our domino servers present a moving set of alleged corruption, both JFS and JFS2 FS. Am I playing whack-a-mole with special effects (i.e. false positives) produced by vigorous filesystem... (9 Replies)
Discussion started by: maraixadm
9 Replies
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 /usr/lib/systemd/systemd-fsck DESCRIPTION
systemd-fsck@.service is a service responsible for file system checks. It is instantiated for each device that requires a file system check. systemd-fsck-root.service is responsible for file system checks on the root file system. The root file system check is performed before the other file systems. Either service is enabled at boot if passno in /etc/fstab for the filesystem is set to a value greater than zero. systemd-fsck will forward file system checking progress to the console. If a file system check fails, emergency mode is activated, by isolating to emergency.target. KERNEL COMMAND LINE
systemd-fsck understands one kernel command line parameter: 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. SEE ALSO
systemd(1), fsck(8), systemd-quotacheck.service(8) systemd 208 SYSTEMD-FSCK@.SERVICE(8)
All times are GMT -4. The time now is 08:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy