-
Senior Member
registered user
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
-
Senior Member
registered user
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
-
Senior Member
registered user

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.
-
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.
-
Senior Member
registered user
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
-
Senior Member
registered user
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
-
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
-
By alvey in forum MS Windows & New to Linux
Replies: 16
Last Post: 01-10-2007, 02:02 AM
-
By Ripshaft in forum General Support
Replies: 3
Last Post: 02-16-2005, 09:32 PM
-
By FatBoy in forum General Support
Replies: 5
Last Post: 06-15-2004, 01:56 AM
-
By ramu_i in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 01-02-2004, 08:26 AM
-
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
-
Forum Rules

SAMSUNG 64GB 2Rx4 PC4-3200AA-RB4-12-MH1 DDR4 ECC RDIMM M393A8G40BB4-CWECO
$650.00

(LOT OF 6) Samsung 16GB PC5-44800 DDR5-5600B 1Rx8 SODIMM Laptop RAM Memory
$1050.00

SMART(Micron)SafeStor 32GB(1X32GB) 1RX4 NN4-3200AA(DDR4) HPE Server Memory
$159.98

1/ 10/ 100pcs USB 2.0 2GB, 4GB ,8GB ,16GB ,32GB ,64GB 128GB USB Flash Drives Lot
$229.50

Samsung Lenovo 46W0831 192GB lot of 12 16GB DDR4 truDDR4 ECC Reg PC4-2400T RAM
$1049.79

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90

SK hynix 16GB 2Rx4 PC4-2133P-RA0-10 Server Memory Ram HMA42GR7MFR4N-TF
$57.99

x4 Intel 128GB NMB1XXD128GPS Optane Memory 200 Series PMEM Module 3200 DDR4 RAM
$329.99

Microsoft Windows 11 Home 64-Bit USB Flash Drive + Key Retail Box - Original
$39.98