LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Fixing HD errors in Knoppix (https://www.linuxquestions.org/questions/linux-general-1/fixing-hd-errors-in-knoppix-57701/)

KungFuHamster 05-01-2003 04:30 PM

Fixing HD errors in Knoppix
 
After a surprise power outage a few days ago (one of the many joys of living out in the fringes of civilization :mad: ), I'm having some trouble with HD errors on my Gentoo box. During startup, fsck will see the errors and attempt to fix them, but without any luck, and I'm stuck with the choice of either rebooting or dropping out of the init system and fixing the problem manually.

The only problem is that the tools to fix the errors is on the root partition, which has to be unmounted to be checked for errors.

I've managed to find an old Knoppix disk (v3.1) and tried runing fsck on the partition in question, but here's what I get every time:

Code:


# fsck -p /dev/hdb3
fsck 1.30-WIP (30-Sep-2002)
Could not determine filesystem type for /dev/hdb3
fsck: fsck.auto: not found
fsck: Error 2 while executing fsck.auto for /dev/hdb3

How can I fix my poor Gentoo box with Knoppix?

david_ross 05-01-2003 04:43 PM

Try adding "-t ext3" - replace ext3 with ext2, reiserfs etc depending on your filesystem.

KungFuHamster 05-01-2003 04:48 PM

No dice.

Code:

# fsck -p -t ext3 /dev/hdb
fsck 1.30-WIP (30-Sep-2002)
fsck.ext3: Permission denied while trying to open /dev/hdb
You must have r/w access to the filesystem or be root
#


acid_kewpie 05-01-2003 04:50 PM

hdb or hdb3?

KungFuHamster 05-01-2003 04:52 PM

I tried both hdb and hdb3, and got the same errors.

The Gentoo bootup finds the errors on hdb3, but I wasn't sure if fsck could check single partitions or not.

fancypiper 05-01-2003 04:54 PM

Try switching to a virtual console rather than from the gui. I don't think the gui has root permission.

control-alt-F1 through F6 - one should appear. Alt-F<n> (which seems to be random on my knoppix) should take you back to X.

fancypiper 05-01-2003 04:57 PM

Quote:

I wasn't sure if fsck could check single partitions or not.
A good man is easy to find and info isn't much harder! :p

man fsck
info fsck

KungFuHamster 05-01-2003 05:13 PM

Quote:

Originally posted by fancypiper
Try switching to a virtual console rather than from the gui. I don't think the gui has root permission.

control-alt-F1 through F6 - one should appear. Alt-F<n> (which seems to be random on my knoppix) should take you back to X.


That did it! ctrl-alt-f2 gives you a root terminal! Thanks!


All times are GMT -5. The time now is 01:13 AM.