Discussion:
[SATLUG] CHKDSK for Fedora?
Jose Calderon
2010-04-08 18:49:15 UTC
Permalink
Hello,

I haven't posted much since ya'll always seem to answer my questions before
I ask but my friend and I were hoping for some help with a particular
issue.

We have a hard drive with WinXP and Fedora 12 partitions loading from grub.
We were wondering if there is an equivalent to CHKDSK that can be initiated
from Fedora so that the scan can run before loading an OS, much the way
CHKDSK runs on a restart? We understand fsck is supposed to do this but
we're not able to figure out the correct command.

Any help would be greatly appreciated - thanks!

--Jose
David Kowis
2010-04-08 18:58:27 UTC
Permalink
Post by Jose Calderon
Hello,
I haven't posted much since ya'll always seem to answer my questions before
I ask but my friend and I were hoping for some help with a particular
issue.
We have a hard drive with WinXP and Fedora 12 partitions loading from grub.
We were wondering if there is an equivalent to CHKDSK that can be initiated
from Fedora so that the scan can run before loading an OS, much the way
CHKDSK runs on a restart? We understand fsck is supposed to do this but
we're not able to figure out the correct command.
http://linux.die.net/man/8/fsck.vfat

There's fsck.vfat and a quick yum provides */fsck.vfat should find you
the package.

If it's ntfs... http://www.linux-ntfs.org/doku.php?id=ntfsck might be of
assistance.


David
Howard Haradon
2010-04-08 19:14:13 UTC
Permalink
Post by David Kowis
Post by Jose Calderon
Hello,
I haven't posted much since ya'll always seem to answer my questions before
I ask but my friend and I were hoping for some help with a particular
issue.
We have a hard drive with WinXP and Fedora 12 partitions loading from grub.
We were wondering if there is an equivalent to CHKDSK that can be initiated
from Fedora so that the scan can run before loading an OS, much the way
CHKDSK runs on a restart? ?We understand fsck is supposed to do this but
we're not able to figure out the correct command.
http://linux.die.net/man/8/fsck.vfat
There's fsck.vfat and a quick yum provides */fsck.vfat should find you
the package.
If it's ntfs... http://www.linux-ntfs.org/doku.php?id=ntfsck might be of
assistance.
David
--
Remember also that the partition that you are fscking
must not be mounted. I generally will boot from a live CD
of the same distro and then fsck the unmounted partition
as root or sudo.

Good luck, Howard
Daniel J. Givens
2010-04-08 19:22:31 UTC
Permalink
If you are wanting to fsck the root fs at boot, you can run the
following before reboot:

touch /.autofsck

If you want it to fsck every boot, you can run:

tune2fs -c1 /dev/sda1

Of course, /dev/sda1 would be whatever partition needs to be fsck'd.

There's not really any reason to do that every boot, unless you're
really paranoid. The only time I ever run a fsck is if there are
problems. And most times, if you need to fsck, there are probably
going to be problems that are going to be difficult, if not
impossible, to recover from. My suggestion would be to implement good
backups so that when you need to fsck, you are ready to recover.

--
Daniel J. Givens
Post by Jose Calderon
Hello,
I haven't posted much since ya'll always seem to answer my questions before
I ask but my friend and I were hoping for some help with a particular
issue.
We have a hard drive with WinXP and Fedora 12 partitions loading from grub.
We were wondering if there is an equivalent to CHKDSK that can be initiated
from Fedora so that the scan can run before loading an OS, much the way
CHKDSK runs on a restart? We understand fsck is supposed to do this but
we're not able to figure out the correct command.
Any help would be greatly appreciated - thanks!
--Jose
--
_______________________________________________
SATLUG mailing list
http://alamo.satlug.org/mailman/listinfo/satlug to manage/unsubscribe
Powered by Rackspace (www.rackspace.com)
Loading...