LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   file system check (https://www.linuxquestions.org/questions/linux-newbie-8/file-system-check-700889/)

383gene 01-29-2009 04:19 PM

file system check
 
Hi - I'm not sure how to implement the fsck command. I want to practice using the it - I am using Fedora. I visited the man pages looking for an example. I have two partitions /dev/sda1 (boot) and /dev/sda2.

These are the two commands and the results
#umount /dev/sda2
umount: /dev/sda2: not mounted
#fsck /dev/sda2
fsck 1.40.8 (13-Mar-2008)
fsck: fsck.lvm2pv: not found
fsck: Error 2 while executing fsck.lmv2pv for /dev/sda2


Thank you, Gene

jstephens84 01-29-2009 04:23 PM

this command is ran by the system. It requires the drive to be unmounted. In short it is ran upon bootup not during a live system. I believe I have seen that it can be ran on a system that is up but is highly discouraged.

repo 01-29-2009 04:41 PM

what filesystem is this?
LVM?

383gene 01-29-2009 04:48 PM

Yes
 
The partition /dev/sda2 is 8e Linux LVM

repo 01-29-2009 05:02 PM

FSCK has no way to figure out what is in such partition.
it is just an errormessage
make sure you fsck the path of the volume and not the actual physical partition.
eq if it is ext3
Code:

fsck.ext3 /dev/VolGroup00/LogVol00

383gene 01-29-2009 05:08 PM

Thank you
 
I have to figure how to send a thank you reply in the post


All times are GMT -5. The time now is 12:57 PM.