I have a machine with many file system errors. I booted into rescue mode - I tried to run "e2fsck -p /dev/hda1" but it says something about inconsistency and cannot run with -p. So then I just run "e2fsck /dev/hda1" and I have to answer MANY fixes with a "y". How can you just tell it to fix it and dont ask? I'd hate to say how many 'y' I have answered. The filesystem is ext3, I was surprised this even happened. Jerry
Jerry Geis spake the following on 1/18/2007 12:42 PM:> I have a machine with many file system errors. > > I booted into rescue mode - I tried to run "e2fsck -p /dev/hda1" > but it says something about inconsistency and cannot run with -p. > So then I just run "e2fsck /dev/hda1" and I have to answer MANY > fixes with a "y". > > How can you just tell it to fix it and dont ask? > I'd hate to say how many 'y' I have answered. > > The filesystem is ext3, I was surprised this even happened. > > JerryI don't think you can, other than holding down the "y" key. And I am not sure if that will work. That "feature" is there for a reason. If your filesystem is that damaged, and e2fsck makes a wrong guess as to what to do, it could be damaged even more. You might want to back up the drive just in case. You might have to do something like dump or dd to get a good backup. -- MailScanner is like deodorant... You hope everybody uses it, and you notice quickly if they don't!!!!
On Thu, 18 Jan 2007 at 3:42pm, Jerry Geis wrote> I booted into rescue mode - I tried to run "e2fsck -p /dev/hda1" > but it says something about inconsistency and cannot run with -p. > So then I just run "e2fsck /dev/hda1" and I have to answer MANY > fixes with a "y". > > How can you just tell it to fix it and dont ask? > I'd hate to say how many 'y' I have answered.'man e2fsck' . . -y Assume an answer of ?yes? to all questions; allows e2fsck to be used non-interactively. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jerry Geis wrote:> > How can you just tell it to fix it and dont ask? > I'd hate to say how many 'y' I have answered. >e2fsck -y /dev/hda1 "man e2fsck" is your friend. :) Beware what you're automatically answering yes to, back up your drive first. Max -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with CentOS - http://enigmail.mozdev.org iD8DBQFFr94THoeeepPau2ERAg9MAKCZZwhND3kwpIG8yAi1qig/1xCG+wCfUxpe JcqysOvJgQgfPmJ6HKMbXCE=ScvK -----END PGP SIGNATURE-----