LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-07-2006, 05:17 AM   #1
acdc
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Rep: Reputation: 15
Boot UP CRASHES


I run Fedora core 4 on my laptop with kernel 2.6.15-1.183, I had logged in as root to add a new module for my WiFi card and by mistake ran FSCK as root and answered yes to its queries, after which the system became unstable and crashed. When I rebooted i get this error message.

mkroot dev:- label / not found
mounting root file system
mount error 2 mounting ext3
switching to new root
error opening /dev/console !!!! : 2
error dup2'ing FD of 0 to 0
error dup2'ing FD of 0 to 1
error dup2'ing FD of 0 to 2
unmounting old /proc
unmounting old /sys
switchroot: mount failed : 22
kernel panic - not syncing attempted to kill init

and lots of hexadecimal numbers come up.

In rescue mode, the rescue program is unable to find out linux partitions on the machine.

My boot partition is on /dev/hda1 and I am able to mount it in rescue mode

My / partition is on /dev/hda2 and if I try to mount it the error appears - "mounting /dev/hda2 failed invalid arguement"

Please tell me what to do, as I need to use the laptop for an important presentation and my data is on that machine also.

Please do help.

Regards
AC.
 
Old 03-07-2006, 07:25 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
So, you ran fsck on a mounted file system, ignoring the warning that this was likely to destroy your hard drive's contents. And now you want to recover the contents? ROTFL

You might be able to find something of the ruined partition. In rescue mode, try a
Code:
cat /dev/hda2 | grep -A 20 -B 20 "some string from important presentation"
where, of course, the stuff in quotes (and the number of before and after lines) needs to be set by you. If (and, unfortunately, that's a big if) you can find remnants of the presentation on the drive, copy them (by adding a > /media/floppy/ an the end of the grep command) to floppies so you can edit them later. (You will need to mount and format the floppies first.)

After you've extracted anything you can to floppies (and, of course, verified that the floppies are readable and contain what you think they should contain), I'm afraid you'll need to delete the partition and reinstall your Linux system.

Before you do the reinstall, you could try a e2fsck /dev/hda2 from your rescue disk. It might be able to make the disk partition mountable. But you should try to get as much off the partition as you can before you let fsck "fix" any more for you.

Oh, a further thought: you mention only two partitions. That makes me think you may have a a default Fedora installation, with a /boot partition and a LVM partition containing a both the swap space and the root file system. If that's the case, you're really sunk, because fsck does not (yet) "understand" logical volumes, and so it really messes up the LV information. (You can use fsck on a LV, but only on the components shown in /dev/mapper, not on /dev/hda2. And, from what you said, you can't even mount the partition, much less get the mapper to access it.)

Last edited by PTrenholme; 03-07-2006 at 07:28 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeBSD-6.0 crashes at boot-options screen. qwijibow *BSD 6 11-09-2005 07:18 AM
Mandrake 10.1 crashes during boot Nath001 Linux - Newbie 0 11-22-2004 05:33 PM
ksysv crashes and net not working at boot kzzz Linux - General 0 10-05-2004 07:57 PM
KDE hangs or crashes on first boot? pnoguy Slackware 3 08-16-2004 02:48 AM
SuseWatcher crashes on boot (8.2 KDE) KyngNothing Linux - Newbie 2 11-04-2003 07:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:24 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