FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to manually run fsck on my Fedora 8/Windows XP dual-boot machine (Dell Inspiron 6000), on which the Fedora install is hosed in some mysterious way. I don't think I understand how to do this correctly, since I am running into the following situation:
I insert the F8 rescue CD and boot up. When asked whether I want to mount the filesystem, I choose 'Skip' and go straight to a command line. I want to run
>fsck -c /dev/mapper/VolGroup00-LogVol00 (I believe this is correct.)
However, because I haven't mounted the filesystem, there is no 'VolGroup00-LogVol00' in /dev/mapper.
If I instead boot from the rescue CD and choose to mount the filesystem in /mnt/sysimage, an entry for VolGroup00-LogVol00 appears in /dev/mapper. However, running the above command gives the following warning:
fsck 1.40.2(12-Jul-2007)
WARNING: couldn't open /etc/fstab. No such file or directory.
e2fsck 1.40.2(12-Jul-2007)
/dev/mapper/VolGroup00-LogVol00 is mounted.
WARNING!!! Running e2fsck on a mounted filesystem may cause SEVERE filesystem datage. Do you really want to continue(y/n)?
I of course choose no. I understand that one shouldn't run fsck on a mounted filesystem, but how do I run it on an unmounted filesystem from the rescue CD???
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
As a simple workaround for those weary of picking the right PVs:
As root (or user allowed to shut down the box) type at a console "shutdown -r -F now". That'll perform an immediate reboot with a forced file system check (-F option) for all partitions and you can watch the results during boot...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.