LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-25-2003, 05:55 PM   #1
subzero0
Member
 
Registered: Aug 2003
Location: NY
Distribution: Mandrake
Posts: 36

Rep: Reputation: 15
How to check file system for errors?


I use ReiserFS and while i realise that this file system is journaled and often doesnt need disk checking i suspect one or two of my files of data corruption. This is due to the blackout where the computer was not turned off properly or the power surge that occured when the electricity finally did come back on. Mandrake 9.1 still thinks i have ext3 as my filesystem and ran the ext3 fsck program when i booted my computer. Ofcourse this did nothing. How could i run reiser's fsck program on my system?
 
Old 08-25-2003, 07:21 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
reiserfsck /dev/hd<XX>

# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page
 
Old 08-26-2003, 12:44 AM   #3
subzero0
Member
 
Registered: Aug 2003
Location: NY
Distribution: Mandrake
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by fancypiper
[B]reiserfsck /dev/hd<XX>
Problem with that is the reiserfsck program is on the root drive and this is the drive i want to check. As im sure you know the drive has to be unmounted in order to be checked.

So still the question remains, how do i check this drive?
 
Old 08-26-2003, 07:59 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Install CD1 has a rescue mode.

System Recovery I

Or, any live CDor bootable floppy can be used for rescue.

KNOPPIX Linux Live CD
Linux Bootable Business Card
Tom's Root and Boot floppy

Last edited by fancypiper; 08-26-2003 at 08:21 AM.
 
Old 08-29-2003, 10:59 AM   #5
subzero0
Member
 
Registered: Aug 2003
Location: NY
Distribution: Mandrake
Posts: 36

Original Poster
Rep: Reputation: 15
Yes but the iso cd and floppy disk does not have the reiserfsck program on them so when i use these to boot up and get myself to a prompt the reiserfsck program is still on the unreachable partition. Unreachable because the partition is not mounted. When i do mount it and use the program it gives me the message that the partition needs to be unmounted for me to run the utility. Do you see my dilema?
 
Old 08-29-2003, 11:12 AM   #6
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
I think you can get it done by booting into single user mode with the root partition mounted read-only. If you're using lilo, at the menu, press ESC and then specify single and ro as boottime options.
 
Old 08-29-2003, 11:16 AM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
shutdown -r -F now

Cool

{edit}

What does your fstab look like?

And look into a bootable Live CD, such as Knoppix or my new personal favorite:
www.slackware-live.org
For rescue/backup/recovery/anything..

{/edit}

Last edited by MasterC; 08-29-2003 at 11:19 AM.
 
Old 08-29-2003, 11:20 AM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Quote:
Yes but the iso cd and floppy disk does not have the reiserfsck program on them
That's strange. I have it on my Mandrake install, my Tom's root and boot and my Knoppix.
 
Old 08-29-2003, 11:21 AM   #9
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
shutdown -r -F now
probably won't do given mandrake thinks the file system is ext3.
 
Old 08-29-2003, 11:23 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by quatsch
shutdown -r -F now
probably won't do given mandrake thinks the file system is ext3.
Realized that about 12 seconds too late Hence, the edit

There shouldn't really be a good reason his distro should believe a partition to be something it's not, that's why I'm curious what the fstab looks like, it should be written in there what filesystem it's using, and that's what fsck uses... (note the 0's 1's and 2's at the end of each entry in fstab)

Cool
 
Old 08-29-2003, 11:37 AM   #11
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Cheap Linux "live" CDs
 
Old 08-29-2003, 07:57 PM   #12
subzero0
Member
 
Registered: Aug 2003
Location: NY
Distribution: Mandrake
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by fancypiper
That's strange. I have it on my Mandrake install, my Tom's root and boot and my Knoppix.
Sorry for this error. The reiserfsck program is on the cd and loads from the command line in rescue boot.

I tried single and ro as boot time options but recieved the same reiserfsck error i always do: "This partition is loaded with write permissions. Cannot continue" or something to that effect. So no progress was made there.

I tried the "shutdown -r -F now" command but did not yield any information about my fstab but instead, "surprise surprise", shutdown my computer.
 
Old 08-29-2003, 08:31 PM   #13
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
so what does your
/etc/fstab
look like?
 
Old 08-29-2003, 08:33 PM   #14
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You can't fsck a mounted filesystem, BTW
 
Old 08-29-2003, 08:48 PM   #15
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you can if it's mounted read-only
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
An error Occurred during the file system check. Dropping you to shell; the system wil aneikei Linux - Newbie 3 02-11-2010 07:38 PM
file system check GoBoy Linux - Software 1 03-27-2005 04:39 AM
file system check nakkaya Linux - Software 5 03-14-2003 11:28 PM
How to check what is your file system? Alinuxnoob Linux - Newbie 2 03-31-2002 01:37 AM
"File system with errors, check forced" Luis Rosso Linux - General 5 02-02-2001 07:26 PM

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

All times are GMT -5. The time now is 01:23 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