Suggest you try rebooting and adding the following to the kernel command line via GRUB while booting:
Is this similar to going into single user mode and unmounting your drives, then running fsck? Your way has less steps .
Quote:
Originally Posted by Smiling Dragon
If you are trying to unmount your own root partition, I think you'll have problems doing that...
You can force fsck to read mounted volumes, just don't let it make any changes (I think that's the -f and -n flags, but check your man page).
If you want to do a proper fsck of root including repairs, you'll really want to boot off something else (pop a boot disk in the drive and reboot) then run your fsck.
To easily get at /home, just boot up into single user / maintenance mode ('init', 'reboot' or 'halt' commands should do this for you - again, check your man pages for the flags to use to get single user mode).
A slightly more ghetto solution (I have been know to do this on occasion) is to hard power cycle the server (ie pull the cord out of the back rather than press the power button) which will force an fsck on bootup. That said, it might also corrupt the filesystem so, you know, maybe don't do this if the data really really matters.
Single user mode worked .
Is there a difference between single user mode, pressing ctrl+alt+f2 and logging into root, or using sudo -i? I figured pressing ctrl+alt+f2 and logging into root, or using sudo -i would have the same effect as using single user mode.
I don't seem to be able to get man pages up for any command. When I try the "No manual entry for..." message is displayed. When checking my $MANPATH variable I get the following
/opt/SUNconn/man:
However, when I check this directory it doesn't exist. Searching for any man directories results... (3 Replies)
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)
Hi everyone,
I hope this question goes here. Anyways, I have a unique situation where my friend's comp has Fedora installed and wants to add Win XP as a dual boot without formatting the drive. Is it possible to create a partition on the current hard drive and then install win xp? I couldn't find... (4 Replies)
I have an ASCII file that I receive on a monthly bases that is fixed length. I break the file into separate files based on a 5 character numerical sequence. I have 20 different sequences I have to find.
the input file looks something like this
xy-ins 2008yuthnrlsinrthsntwilgrha33260001... (4 Replies)
I'm sure it's really easy, but I have searched on Google and on the forums and haven't found anything.
For instance, if I open the grep manual (man grep), I can't close it.
I've tried ctrl+c, ctrl+x, scrolling to the bottom of the manual.
How can I exit the manual without closing the shell?
... (8 Replies)
Hi,
While executing the following command i am getting output as command not found.
iostat
output: command not found
Also, man iostat is displaying "NO Manual Entry"
Why is it so? (5 Replies)
I will shortly be adding a fedora flavor to my devel box. I currently have XP (installed first on an ssd), ubuntu 10.04 (installed second on the first partition of a platter drive), and I want to add either Cent or SL on the second partition of the platter drive. I will probably also want to... (0 Replies)
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
LEARN ABOUT MOJAVE
fsck.xfs
fsck.xfs(8) System Manager's Manual fsck.xfs(8)NAME
fsck.xfs - do nothing, successfully
SYNOPSIS
fsck.xfs [ filesys ... ]
DESCRIPTION
fsck.xfs is called by the generic Linux fsck(8) program at startup to check and repair an XFS filesystem. XFS is a journaling filesystem
and performs recovery at mount(8) time if necessary, so fsck.xfs simply exits with a zero exit status.
If you wish to check the consistency of an XFS filesystem, or repair a damaged or corrupt XFS filesystem, see xfs_check(8) and
xfs_repair(8).
FILES
/etc/fstab.
SEE ALSO fsck(8), fstab(5), xfs(5), xfs_check(8), xfs_repair(8).
fsck.xfs(8)