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
  •  


Cisco Catalyst WS-C2960X-24PD-L GigE PoE 370W, 2 x 10G SFP+, LAN Base H22 picture

Cisco Catalyst WS-C2960X-24PD-L GigE PoE 370W, 2 x 10G SFP+, LAN Base H22

$94.00



Cisco WS-C3750X-48PF-S 48 Port PoE Gigabit Switch w/ C3KX-NM-10G & Dual 1100WAC picture

Cisco WS-C3750X-48PF-S 48 Port PoE Gigabit Switch w/ C3KX-NM-10G & Dual 1100WAC

$121.88



CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED picture

CISCO MERAKI MS120-24P-HW 24-PORT GIGABIT CLOUD MANAGED PoE SWITCH - UNCLAIMED

$103.74



Cisco Nexus 48-Port 10G SFP+ Switch N9K-93128TX w/ 9K-M12PQ 12-Port 40G QSFP picture

Cisco Nexus 48-Port 10G SFP+ Switch N9K-93128TX w/ 9K-M12PQ 12-Port 40G QSFP

$112.49



🔥🔥🔥 CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi Module 🔥🔥🔥 picture

🔥🔥🔥 CISCO SFP-10G-SR V03 10-2415-03 850nm 10GBASE-SR SFP+ Multi Module 🔥🔥🔥

$6.80



Cisco Nexus N3K-C3048TP-1GE 48P 1GbE 4P SFP+ Switch N3K-C3048TP-1GE picture

Cisco Nexus N3K-C3048TP-1GE 48P 1GbE 4P SFP+ Switch N3K-C3048TP-1GE

$89.00



Cisco Nexus N3K-C3064PQ-10GX 48P 10GbE SFP+ 4P QSFP+ Switch (Fair) picture

Cisco Nexus N3K-C3064PQ-10GX 48P 10GbE SFP+ 4P QSFP+ Switch (Fair)

$85.00



Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850 picture

Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850

$30.99



Cisco C9200L-STACK-KIT Stacking Kit New Sealed picture

Cisco C9200L-STACK-KIT Stacking Kit New Sealed

$435.57



Cisco WS-C3850-48P-L 48-Port Gigabit 3850 PoE Switch w/ 715W+ Lifetime Warranty picture

Cisco WS-C3850-48P-L 48-Port Gigabit 3850 PoE Switch w/ 715W+ Lifetime Warranty

$125.00