LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 05-01-2003, 05:30 PM   #1
KungFuHamster
Member
 
Registered: Feb 2003
Location: Middle of frickin' nowhere
Distribution: The One True Distro
Posts: 230

Rep: Reputation: 30
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 ), 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?
 
Old 05-01-2003, 05:43 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
Try adding "-t ext3" - replace ext3 with ext2, reiserfs etc depending on your filesystem.
 
Old 05-01-2003, 05:48 PM   #3
KungFuHamster
Member
 
Registered: Feb 2003
Location: Middle of frickin' nowhere
Distribution: The One True Distro
Posts: 230

Original Poster
Rep: Reputation: 30
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
#
 
Old 05-01-2003, 05:50 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
hdb or hdb3?
 
Old 05-01-2003, 05:52 PM   #5
KungFuHamster
Member
 
Registered: Feb 2003
Location: Middle of frickin' nowhere
Distribution: The One True Distro
Posts: 230

Original Poster
Rep: Reputation: 30
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.
 
Old 05-01-2003, 05:54 PM   #6
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
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.
 
Old 05-01-2003, 05:57 PM   #7
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
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!

man fsck
info fsck
 
Old 05-01-2003, 06:13 PM   #8
KungFuHamster
Member
 
Registered: Feb 2003
Location: Middle of frickin' nowhere
Distribution: The One True Distro
Posts: 230

Original Poster
Rep: Reputation: 30
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
slowly fixing all the errors, please help :-\ y0shi Slackware 13 10-24-2004 09:25 PM
fixing kernel errors entropyguy Linux - Newbie 0 10-13-2004 07:01 PM
fixing dvd-r errors festriaqua Linux - Software 0 08-11-2004 09:45 PM
Errors in Knoppix zoobie Linux - Newbie 7 04-06-2004 10:40 PM
Fixing my fstab with Knoppix TheFishingGeek Linux - General 2 06-01-2003 11:41 PM


All times are GMT -5. The time now is 04:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration