LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-18-2005, 02:23 PM   #1
Dillius
Member
 
Registered: Jan 2004
Location: Georgia
Distribution: Debian Etch
Posts: 99

Rep: Reputation: 15
whats wrong with my fsck?


Working my way through learning day to day maintenance of Linux, so I was attempting to use fsck to filecheck my system.

fsck -t ext3 /dev/hda1

I used mount to confirm where the drive was mounted from and that it was ext3, but whenever i try to run the command i get a "command not found" error in the shell. Yet, when I run man fsck, it gives me the manual pages for it.

Anyone know why it's not working?

EDIT: Forgot to mention, reason it's here is i'm running Mandrake 10.1

Last edited by Dillius; 02-18-2005 at 04:39 PM.
 
Old 02-18-2005, 07:34 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I used mount to confirm where the drive was mounted from and that it was ext3, but whenever i try to run the command i get a "command not found" error in the shell. Yet, when I run man fsck, it gives me the manual pages for it."

Most distributions do not allow user to run fsck. Ttry running it as root. The restriction does not apply to the man pages.

"I used mount to confirm where the drive was mounted "

fsck must be run against an unmouted partition. umount the partition before running fsck. If you cannot umount the partition then boot a rescue CD and run fsck from the rescue CD.

------------------------
Steve Stites
 
Old 02-18-2005, 08:18 PM   #3
Dillius
Member
 
Registered: Jan 2004
Location: Georgia
Distribution: Debian Etch
Posts: 99

Original Poster
Rep: Reputation: 15
If I unmount it, mandrake will automatically remount it upon restart, right? I'm pretty sure I can handle manually mounting it I just want to be sure.

EDIT: Also, when I try to unmount it is saying the device is busy. I should probably do this from command before loading KDE right? only problem is I have my bootloader set to load Xwindows automatically... How do I get around this to load just to a command prompt?

Last edited by Dillius; 02-18-2005 at 08:23 PM.
 
Old 02-19-2005, 10:37 AM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"If I unmount it, mandrake will automatically remount it upon restart, right?"

Check /etc/fstab. fstab contains a table of everything that is mounted automatically at boot.

"Also, when I try to unmount it is saying the device is busy."

fsck must be run against an unmouted partition. umount the partition before running fsck. If you cannot umount the partition then boot a rescue CD and run fsck from the rescue CD.


-----------------------------
Steve Stites
 
Old 02-19-2005, 04:14 PM   #5
Dillius
Member
 
Registered: Jan 2004
Location: Georgia
Distribution: Debian Etch
Posts: 99

Original Poster
Rep: Reputation: 15
Yea, it won't let me unmount it because it is an active drive. How do I go about setting up a boot cd?
 
Old 02-19-2005, 04:18 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"How do I go about setting up a boot cd?"

There should be a rescue CD mode on your Mandrake distribution CD.

----------------------
Steve Stites
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Whats wrong with this dist. anti.corp Debian 10 11-28-2005 06:53 AM
Wrong version of FSCK: HOW TO ? penguinlnx Linux - Newbie 12 05-28-2005 05:12 AM
Whats wrong with this? OlRoy Programming 2 05-28-2003 01:21 PM
what the fsck is wrong with sco? saturn_vk General 2 04-25-2003 10:13 AM
DNS- Whats wrong here? bripage Linux - Networking 7 01-22-2003 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration