Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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've been searching for how to fix my corrupted filesystem with little success. I tried "shutdown -r -F" -- didn't work. I'm running Fedora Core 1. Filesystem is ext3. Here's a screen dump:
[root@coolman root]# fsck /dev/sda2 -n -f
fsck 1.34 (25-Jul-2003)
e2fsck 1.34 (25-Jul-2003)
Warning! /dev/sda2 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences: +9668870 -9668871
Fix? no
/: ********** WARNING: Filesystem still has errors **********
make a backup .
theres no hint i can give except this one.
i can tell you: do a e2fsck with wrong options brought my nearly full harddrive to lost+found.
be carefull <lame>
Already been there. Fortunately, I am running this copy of Fedora under VMware. When I mess up, I just restore a previous good image and my mistake is gone.
Why do you have -f and -n? They are not, at least according to the documentation I have, valid switches. Also, switches belong before the filesystem name.
heh, the only 2 times I tried installing Gentoo and/or Debian, the ext3 file system got fubar'd and rendered my drive useless......had to go to the H/D mfg website and download some tools to a floppy and let the tools fix the drive...........IE.....I lost everything on the drive itself.......luckily I had all data "backed up"
Obviously, using different versions, jazernorth. Here are the options on my version:
-----------------
Usage: fsck.ext3 [-panyrcdfvstDFSV] [-b superblock] [-B blocksize]
[-I inode_buffer_blocks] [-P process_inode_size]
[-l|-L bad_blocks_file] [-C fd] [-j ext-journal]
[-E extended-options] device
Emergency help:
-p Automatic repair (no questions)
-n Make no changes to the filesystem
-y Assume "yes" to all questions
-c Check for bad blocks and add them to the badblock list
-f Force checking even if filesystem is marked clean
-v Be verbose
-b superblock Use alternative superblock
-B blocksize Force blocksize when looking for superblock
-j external-journal Set location of the external journal
-l bad_blocks_file Add to badblocks list
-L bad_blocks_file Set badblocks list
-----------------------
Thanks for your input -- confirms what I suspected -- time to start over. This was a relatively new install anyways. No data lost.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.