LinuxQuestions.org
Visit Jeremy's Blog.
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 02-15-2006, 10:49 AM   #1
Dr_Death_UAE
Member
 
Registered: Jul 2005
Location: U.A.E
Distribution: FreeBSD,Fedora,Solaris,AIX
Posts: 168

Rep: Reputation: 30
fsck damaged my file system


hi,

i was facing some problems with my wireless , when i run some software like wifi_radar and wpa_supplicant, my linux hung.

so i thought its may be some damaged files cause the problem .

i just run "fsck" , it show me that my linux partition in mounted /dev/hda2 (i have windows on /dev/hda1)

and then i reboot , and i cant enter my linux (stuck in the grub).

I boot from knoppix CD, it show my widows partition is ok, but it cant mount my linux partition.
it give me this error message:
mount: I could not determine the filesystem type, and none was specified.

I boot fedora CD, and it show me my /hda2 as Linux native without mounted point.

/dev/hda1 vfat
/dev/hda2 Linux native
/dev/hda3 swap

any advice ?

sorry for my English

Last edited by Dr_Death_UAE; 02-15-2006 at 11:42 AM.
 
Old 02-15-2006, 12:30 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Try re-running fsck on /dev/hda2. Fsck should only repair filesystems: I've never seen any damage from using it.
 
Old 02-15-2006, 12:38 PM   #3
Dr_Death_UAE
Member
 
Registered: Jul 2005
Location: U.A.E
Distribution: FreeBSD,Fedora,Solaris,AIX
Posts: 168

Original Poster
Rep: Reputation: 30
i cant enter my hda2.

im also shocked, i always use fsck to fix problems.

i think i will format my linux, and recover it later.

i google it, but no clear solution.

thankx
 
Old 02-15-2006, 12:39 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You should still be able to fsck it.
 
Old 02-15-2006, 03:52 PM   #5
Dr_Death_UAE
Member
 
Registered: Jul 2005
Location: U.A.E
Distribution: FreeBSD,Fedora,Solaris,AIX
Posts: 168

Original Poster
Rep: Reputation: 30
Hi matir,

I fixed the problem, i used knoppix 4.2, its fsck was good and work fine with me, i was using old version of knoppix before.

fsck -a /dev/hda2
its fix most blocks and Inode's

but know when fedora start booting it stop and give me this message:

Uncompressing Linux... Ok, booting the kernel.
Red Hat nash version 4.2.15 starting
exec of init (/bin/sh)failed!!!: 2
Kernel panic - not syncing: Attempted to kill init!

i'll google it now.
 
Old 02-16-2006, 01:51 AM   #6
Dr_Death_UAE
Member
 
Registered: Jul 2005
Location: U.A.E
Distribution: FreeBSD,Fedora,Solaris,AIX
Posts: 168

Original Poster
Rep: Reputation: 30
hmmmm, still one issue, there is no mount point for /hda2

any suggestion.

thankx
 
Old 02-16-2006, 01:59 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
If /dev/hda2 is your root filesystem, it should be mounted on /.
 
Old 02-17-2006, 02:19 AM   #8
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
You did not run fsck while /dev/hda2 was mounted, did you? The best way is to boot your system up from a rescue disk (knoppix works fine) and then fun fsck on your /dev/hda2 without mounting it. Do not run fsck on mounted filesystems, it may indeed break them! If you need to check your root filesystem (which is of course always mounted when your system is up), you can use:

Code:
shutdown -rF now
to force the filesystems to be checked on bootup.

Last edited by alienDog; 02-17-2006 at 02:27 AM.
 
Old 02-17-2006, 09:10 AM   #9
Dr_Death_UAE
Member
 
Registered: Jul 2005
Location: U.A.E
Distribution: FreeBSD,Fedora,Solaris,AIX
Posts: 168

Original Poster
Rep: Reputation: 30
thankx guys, i mount my system from knoppix after fix the block and Inodes issue , i recover my files and formate my system.

Matir, no my /dev/hda2 wasnt mounted on / after i fix it. that was the only problem remained.

alienDog, yes that what i did, i run fsck when my /hda2 was mounted.

you are right, knoppix in the perfect and safest to recover systems.

Best Regards.
 
Old 02-02-2010, 05:07 AM   #10
frodo
LQ Newbie
 
Registered: May 2005
Location: Indiana, U.S.A.
Distribution: Slackware
Posts: 16

Rep: Reputation: 1
Sorry to add to such an old thread, but I thought that it should be added that you should >>never<< run fsck on a mounted file system, always use the rescue mode of your install CD or something like Knoppix as was suggested earlier.
 
Old 02-03-2010, 08:21 AM   #11
Dr_Death_UAE
Member
 
Registered: Jul 2005
Location: U.A.E
Distribution: FreeBSD,Fedora,Solaris,AIX
Posts: 168

Original Poster
Rep: Reputation: 30
wooow this thread is 4 year's old (^_*), but thanks for your comment's it may help someone from google
 
  


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
Hard drive; file system error; fsck failure linubex Mandriva 16 07-24-2006 08:50 PM
Running fsck (or e2fsck) on root file system... xbill311x Linux - Newbie 2 01-02-2006 10:54 PM
[LFS 61][failed fsck] with reiser file system mr_demilord Linux From Scratch 3 10-13-2005 04:56 AM
Hard drive; file system error;automate fsck jumbo25 Linux - Software 1 10-05-2005 12:08 AM
booting file system errors => cannot run fsck snake_eye Slackware 7 08-26-2004 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:28 AM.

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
Open Source Consulting | Domain Registration