Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 5th July 2007, 04:11 PM
Hillbilly Offline
Registered User
 
Join Date: May 2004
Posts: 16
Cannot run fsck

I have searched through the forums and found no answer to my question. I am running FC7 x86_64 and I have a weird issue. I have both the e2fsprogs and dosfsutils installed which should provide me with fsck and dosfsck. I am familiar with running fsck and dosfsck on my Ubuntu systems and have never had this particular problem. I cannot run fsck from the command line. When I type the command it says it cannot find it. I have done a “which” and it is not found, however, it is installed (or at least the packages that contain it are). I have run this in sudo form, as my regular user, and as root. The command can not be found, however, I the man page is available. Any ideas?
Reply With Quote
  #2  
Old 5th July 2007, 04:37 PM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,371
Hello:
I expect you will find fsck located in
/sbin/
try
updateddb
and
locate fsck
Then to run fsck you need to have full root access
su - <---- the dash is important
http://www.fedorafaq.org/basics/#root

Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #3  
Old 5th July 2007, 04:39 PM
Hillbilly Offline
Registered User
 
Join Date: May 2004
Posts: 16
That is what I said. I did su, then put in password and got root prompt. Then I tried to run it without success. Then, I did a which and it said it did not find fsck in any folders.
Reply With Quote
  #4  
Old 5th July 2007, 05:00 PM
Seve's Avatar
Seve Offline
Retired Community Manager
 
Join Date: Oct 2004
Location: The GTA, Ontario, Canada
Age: 54
Posts: 12,371
Hello:
Quote:
Originally Posted by Hillbilly
That is what I said. I did su, then put in password and got root prompt. Then I tried to run it without success. Then, I did a which and it said it did not find fsck in any folders.
Re-read the previous response again.
i.e.
Quote:
Then to run fsck you need to have full root access
su - <---- the dash is important
http://www.fedorafaq.org/basics/#root
Unless you somehow managed to remove it from you installation?

PHP Code:
# locate fsck
/.autofsck
/sbin/dosfsck
/sbin/e2fsck
/sbin/fsck
/sbin/fsck.cramfs
/sbin/fsck.ext2
/sbin/fsck.ext3
/sbin/fsck.jfs
/sbin/fsck.msdos
/sbin/fsck.vfat
/sbin/fsck.xfs
/sbin/jfs_fsck
/sbin/jfs_fscklog
/usr/share/man/man5/e2fsck.conf.5.gz
/usr/share/man/man8/dosfsck.8.gz
/usr/share/man/man8/e2fsck.8.gz
/usr/share/man/man8/fsck.8.gz
/usr/share/man/man8/fsck.ext2.8.gz
/usr/share/man/man8/fsck.ext3.8.gz
/usr/share/man/man8/fsck.jfs.8.gz
/usr/share/man/man8/fsck.vfat.8.gz
/usr/share/man/man8/fsck.xfs.8.gz
/usr/share/man/man8/jfs_fsck.8.gz
/usr/share/man/man8/jfs_fscklog.8.gz 
PHP Code:
# which fsck
/sbin/fsck 
PHP Code:
# uname -a
Linux seve 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 14:56:37 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux 
Seve
__________________
Registered Linux User: #384977
.................................................. ............
See the Links below for more Help and those much wanted extras ... :)
Reply With Quote
  #5  
Old 5th July 2007, 06:18 PM
Iron_Mike's Avatar
Iron_Mike Offline
Registered User
 
Join Date: Jul 2005
Location: Ft Huachuca, AZ
Posts: 3,762
Quote:
Originally Posted by Hillbilly
That is what I said. I did su, then put in password and got root prompt. Then I tried to run it without success. Then, I did a which and it said it did not find fsck in any folders.

You need to use su - (su dash) to use the root environment. Be warned do not run fsck on a mounted file system.
Reply With Quote
  #6  
Old 5th July 2007, 08:26 PM
Hillbilly Offline
Registered User
 
Join Date: May 2004
Posts: 16
I understand what you are saying now. What confuses me is that I never had to do that when I was running Ubuntu. I could run fsck as a standard user. Granted, fsck probably is a tool that should be kept to root use or at least not given to every user. But I am dealing with a home computer where I am the only user. When running Ubuntu I could run fsck as regular user or if nothing else, I could run it as root just by a su. It would just be nice if which would tell me that the file was in /sbin.
Reply With Quote
Reply

Tags
fsck, run

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot run fsck.. please help cyberbob Using Fedora 4 30th April 2007 05:05 PM


Current GMT-time: 04:45 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat