Results 1 to 7 of 7

Thread: HDD Boot, fsck repair and reboot ???

  1. #1
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338

    HDD Boot, fsck repair and reboot ???

    Ok, I've been running Knoppix v3.3 hard drive installed for some time, and every 40 mounts of my root partition have caused a forced fsck check on the device this is held on, /dev/hda1...

    Everything has been going great, even though this check can take some time, before Knoppix will actually complete its booting, until, this morning... Upon booting, fsck forced its usual 40 mounted checking, and then printed the following (pardon if I don't type this exactly, considering it was in a boot screen, I didn't have copy/paste) :

    /dev/hda1: ***** REBOOT LINUX *****
    /dev/hda1: somebignumber/somebignumber (1.2% non-contiguous) somebignumber/somebignumber

    fsck failed. Please repair manually and reboot [blah, blah, blah]

    CONTROL-D to exit this shell, and reboot

    -=-=-=-=-=-=-

    Ok, now I am lost - what happened, what should I "have" done? Having no clue what to do in this situation, I did a CTRL-D, rebooted, and came in here to post for help. How much damage am I doing by not "doing what I was supposed to do before", and such???

    Is this severe? Can it be recovered? What should I do NOW? And, lastly, if this happens again, what should I have done?

    Thanks in advance, this boot message has got me scared here,
    Cuddles

  2. #2
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338
    Ok,

    In trying to find my own answers, I have concluded the following, from the above situation:

    I should have mounted the /dev/hda device as r/w access, and performed a fixing fsck on the device. After, hopefully, a good fixing, and a successful fsck completion, rebooted.

    But, I didn't - I just rebooted.

    What I am guessing I should do is, shutdown, boot to the CD, give it cheatcodes to not use my swap, which is also on the "physical" /dev/hda device, to not use my home/root on the /dev/hda1 device, and after booting, perform a fsck on the /dev/hda device.

    Looking through the fsck man pages, I am getting lost. I know I want to use the fix option, but do I want it to have "unlimited" fixing, (it suggests this is a bad thing), do I mount the device previous, or do I let fsck do that part?

    I am in fear that the longer I keep my system up, after knowing about the fsck problem, I am only damaging the file system further, am I right?

    Someone, [?]
    Cuddles

  3. #3
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by Cuddles
    Ok,

    In trying to find my own answers, I have concluded the following, from the above situation:

    I should have mounted the /dev/hda device as r/w access, and performed a fixing fsck on the device. After, hopefully, a good fixing, and a successful fsck completion, rebooted.

    But, I didn't - I just rebooted.

    What I am guessing I should do is, shutdown, boot to the CD, give it cheatcodes to not use my swap, which is also on the "physical" /dev/hda device, to not use my home/root on the /dev/hda1 device, and after booting, perform a fsck on the /dev/hda device.
    You would boot the CD and then check the filesystem assuming it is ext3 e2fsck /dev/hda1 you do not mount the partitions and knoppix will not by default mount the partitions the /swap is irrevalent you should not need to check it.

    Looking through the fsck man pages, I am getting lost. I know I want to use the fix option, but do I want it to have "unlimited" fixing, (it suggests this is a bad thing), do I mount the device previous, or do I let fsck do that part?

    I am in fear that the longer I keep my system up, after knowing about the fsck problem, I am only damaging the file system further, am I right?

    Someone, [?]
    Cuddles
    You can just answer the questions one by one which the command I gave does there will most likely be a lot of them and you are going to want to answer yes to fixing the errors so the -y in the command may be what you want.

  4. #4
    Junior Member
    Join Date
    Oct 2003
    Location
    Atlanta, GA USA
    Posts
    4
    Good post Stephen! I do not have Knoppix installed on my harddrive (I boot from CD on my laptop) - but I do have SuSE as the primary operating system on my desktop.

    The procedure that worked for me was:
    Boot from rescue CD
    Make sure my Linux partition is not mounted (umount /dev/hdb2)

    My partition is reiserfs, so the following command checks the partition:
    reiserfsck --check /dev/hdb2

    I repaired it with the followig command:
    reiserfsck --fix-fixable /dev/hdb2

    Cuddles - I saw you used to support Win98. Sounds like an interesting thing, but probably stressfull. Anyway - a good reference book for Linux is "Running Linux". It can help a lot.

  5. #5
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338
    Thanks Stephen, I am adding this, as with anything else I have "picked up" in tools, and commands, to an ever-increasing amount of "postie notes". I have almost a wall-full of them now, all with "small" cryptic commands on them. I'm getting better, some of them have easily been commited to memory

    BruceG, I agree with you, it was a good post. I dicided to go with the ext3, even though, I think Stephen is using the reiser f/s. Being new to the whole "Linux" world, I didn't want to "stray" to far from my past, and FAT, but wanted something more than just ext2. And, yes, Win98 was stressful, but I enjoyed helping people. What hurt the most was changing from the OS to MSN online phone support, you can't please people who can't get there email, or are having connection problems, that was incredibly stressful. Most of the problems, like email, the server would be down, and you can't do "anything" for them, but just tell them the server is down, and try later. I got a lot of "hate" words during those phone calls. This girl had so much of a hard time during my "stinch" in MSN, that I can't handle even having a phone ring anymore, my stress just goes balistic.

    Oh well, thanks to both of you for the assisitance, I'm off to reboot, and clean-up my file system

    Cuddles

  6. #6
    Senior Member registered user
    Join Date
    Dec 2003
    Location
    Salt Lake City, UT, U.S.A.
    Posts
    1,338
    Did it, but I did have to place a "-f" into the command. It never prompted me for anything, in fact, when I ran just the fsck with the device, it just blurted out the device and "clean" after it, it didn't really take that long either.

    So, I ran "e2fsck -f /dev/hda1" -=- and that went through, I think, six passes, and never asked for any input. It also didn't report any problems. So, I guess I have a "clean bill" of health now. [?]

    Thanks again
    Cuddles

  7. #7
    Member registered user
    Join Date
    Apr 2004
    Posts
    76
    While this didnt happen during a normal boot (happned with a improper shutdown), this should work i guess (and hope). Thanks for all of you that posted.

Similar Threads

  1. fsck.ntfs not found when trying to repair Windows 2000 Pro
    By alvey in forum MS Windows & New to Linux
    Replies: 16
    Last Post: 01-10-2007, 02:02 AM
  2. How would I repair the master boot record with knoppix?
    By Ripshaft in forum General Support
    Replies: 3
    Last Post: 02-16-2005, 09:32 PM
  3. Can I repair HDD with Knoppix?
    By FatBoy in forum General Support
    Replies: 5
    Last Post: 06-15-2004, 01:56 AM
  4. Need to run fsck manually during every reboot
    By ramu_i in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 01-02-2004, 08:26 AM
  5. Auto FSCK every 22 times & keyboard setting at boot
    By suoko in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 10-27-2003, 10:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$13.99



HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin picture

HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin

$12.90



A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G picture

A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G

$13.99



HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM picture

HyperX FURY RAM DDR4 16GB 8GB 32GB 4GB 3200 2666 2400 2133 Desktop Memory DIMM

$9.64



Samsung 128GB (4x 32GB) M86B4G70DM0-CMA3 PC3-14900L 4Rx4 DDR3 ECC Reg Server Mem picture

Samsung 128GB (4x 32GB) M86B4G70DM0-CMA3 PC3-14900L 4Rx4 DDR3 ECC Reg Server Mem

$39.99



Samsung 16GB 2Rx4 PC4-2400 RDIMM DDR4-19200 ECC REG Registered Server Memory RAM picture

Samsung 16GB 2Rx4 PC4-2400 RDIMM DDR4-19200 ECC REG Registered Server Memory RAM

$20.99



Lot of 2 32GB DDR4 2666 PC4-21300 SODIMM RAM Modules Mixed Brand picture

Lot of 2 32GB DDR4 2666 PC4-21300 SODIMM RAM Modules Mixed Brand

$60.00



Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM picture

Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM

$13.25



A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 256GB 4x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$287.96



A-Tech 128GB 2x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM picture

A-Tech 128GB 2x 64GB 4Rx4 PC4-19200 ECC Load Reduced LRDIMM Server Memory RAM

$143.98