Sponsored Content
Full Discussion: Fsck ques
Top Forums UNIX for Dummies Questions & Answers Fsck ques Post 302263324 by bluescreen on Monday 1st of December 2008 10:14:40 AM
Old 12-01-2008
I speak from experience on this one: run fsck on an unmounted root partition. You must boot the system from a cdrom (or dvd) with:

Code:
ok boot cdrom -s

and then run fsck.

If you run fsck on a mounted root partition you WILL corrupt it beyond repair. Your only option will be to reinstall the OS or try a restore from a backup.

HTH
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

fsck -y

Once in a while, I would think it advisable to run fsck -y to check the disk. Should I sign in as su or sudo? What is the difference and which is preferred? Thank you in Advance! (4 Replies)
Discussion started by: rpatrick
4 Replies

2. Shell Programming and Scripting

Ques

If a file is compressed, how can i uncompress on the fly using pipes(handling this in the shell script depending on the command line arguments passed to the script) ex: ex_pr.sh -d disable -f ex_pr_1212.log.Z (6 Replies)
Discussion started by: dreams5617
6 Replies

3. Solaris

fsck

OS: Solaris 5.8 Everytime I run fsck -y I get: FILE SYSTEM STATE IN SUPERBLOCK IS WRONG; FIX? yes Do I need to run fsck with the backup superblock option or is there some other option I should use. I have tried the format->analyze->read option but that does not report any corrupt blocks.... (5 Replies)
Discussion started by: run_time_error
5 Replies

4. UNIX for Dummies Questions & Answers

fsck - what should be done?

I want to use fsck to check and repair my linux system. When I use this command, what do I need to pay attention to or what should I do to make job running successfully. Thanks for your inputs for a newbie. (3 Replies)
Discussion started by: duke0001
3 Replies

5. UNIX for Dummies Questions & Answers

ques regarding date command

i have couple of my assignment questions What command results in adding today's date and time to the file yesterday.txt What command results in creation of a new file named yesterday.txt that contains yesterday's date but no time (3 Replies)
Discussion started by: doomed47
3 Replies

6. Shell Programming and Scripting

Field separator Ques.

Hello... Im trying to use "- " as field separator... I used awk -F"- " '{print $3}' input_file ... but it's not working, it assumes that the field separator is "-" and not "- " ... Any ideas ?? :( Thanks (6 Replies)
Discussion started by: yahyaaa
6 Replies

7. UNIX for Dummies Questions & Answers

Service ques

hi, Can someone tell me what commands do you use to start service back upin solaris ? Regards Charneet (1 Reply)
Discussion started by: charneet
1 Replies

8. UNIX for Dummies Questions & Answers

about fsck

i want to know what does it mean by doing a consistentcy check fsck on a disk and why journaling filesystems dont need to do it and what is meant by disk is in a consistent state when writing because entries are recorded in a journal and then to the metadata and then removed from journal (1 Reply)
Discussion started by: farhan_t49
1 Replies

9. Solaris

unable to repair the / filesystem. Run fsck manually (fsck -F ufs /dev/rdsk/c1t0d0s0)

What can I fix this issue? I have ran below commands but everything is same.:confused: WARNING: Last shutdown is later than time on time-of-day chip: check date. The / file system (/dev/rdsk/c1t0d0s0) is being checked WARNING - unable to repair the / filesystem. Run fsck manually (fsck -F... (4 Replies)
Discussion started by: getrue
4 Replies

10. UNIX for Advanced & Expert Users

UNIX ques!! Ans URGENT!!

hello guys!! need 1 favour from u all.. Can u jst tell me the answers for these ques?? 1. ls - l _____ : command to return all files that end with single digit and those with TXT extension 2. ls -l report* _______ : command to return all files that start with the word RPT except those with LOG... (1 Reply)
Discussion started by: Gan_7
1 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 01:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy