LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-2005, 08:17 PM   #1
leapingfrog
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Rep: Reputation: 0
Missing /boot folder and others....


Hey Guys,

I run a local RedHat server that I use for web development. One day while developing, all the sudden my Samba network drive disconnected, SSH quit working, and Webmin would no longer load up. So, I rebooted, only to be brought to a grub command prompt.

I loaded Knoppix off a CD and found out that, on my hard drive, my /boot folder is empty, and so is my /etc folder ... I'm not sure what happened, or if anything else is missing, but how hard is this to fix? How would I go about fixing this? Or would it be easier to format/reinstall (although I would rather not do this if at all possible).

Also, any ideas on why this happened?

Thanks for your input,
Andrew

Last edited by leapingfrog; 05-01-2005 at 08:19 PM.
 
Old 05-01-2005, 08:31 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Three possible reasons:
1. Malicious cracker ruined it,
2. Hard disk needs replacement,
3. Sudden power failure had fatal results (this is unlikely)
 
Old 05-01-2005, 09:01 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
In addition to emerson's statement #2 it would be
good to know what kind of file-system layout you
had originally, whether all partitions to all mount-
points were on the same physical device, for instance.


Cheers,
Tink
 
Old 05-01-2005, 09:38 PM   #4
leapingfrog
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hmm, I don't know much about linux, but I have all my partitions on one hard drive and when I installed redhat, I had the hard drive automatically partitioned in the setup.
 
Old 05-02-2005, 01:51 AM   #5
LancerNZ
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Fedora Core 2
Posts: 42

Rep: Reputation: 15
You didn't at any time plug in a hard drive from another distro (as secondary drive) which alo had its own /boot sector did you? Modern Redhat versions detect the double /boot and decide not to mount them. This is usually temporary... once you disconnect the secondary drive, the first one from then on boots as normal. The redhat rescue CD should have restore options for boot sector recovery... you should be albe to recover a destroyed GRUB from there.

Last edited by LancerNZ; 05-02-2005 at 01:53 AM.
 
Old 05-03-2005, 12:47 AM   #6
leapingfrog
LQ Newbie
 
Registered: Jul 2004
Posts: 7

Original Poster
Rep: Reputation: 0
Hmm, how do I run a boot sector recovery w/ the rescue CD?

I thought I knew ... I booted off my RedHat CD and at the prompt I typed 'linux rescue' and then proceeded from there only to get a prompt that said "You do not have any linux partitions" and it brings me to a shell prompt where I can't do much of anything.

This doesn't make much sense to me since my data is still in-tact ... I can retrieve it in knoppix. Why can't it see I had linux installed?

Thanks for any input.
Andrew
 
Old 05-03-2005, 04:42 AM   #7
LancerNZ
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Fedora Core 2
Posts: 42

Rep: Reputation: 15
Usually the procedure goes something like...

Boot from the CD into rescue mode (push ENTER at prompt)
OK through any Language settings etc.
The Rescue should detect your Linux install and mount it it /mnt/sysimage/
Make the detected install at /mnt/sysimage into the focused system by typing...
chroot /mnt/sysimage/
Once that's active, reinstall GRUB for your system with the command...
grub-install /dev/hda

It's odd that you can't see the Linux pratitions though. I would at this point use somethign like parted (which comes on System Rescue CD - http://www.sysresccd.org/ ) to see whether the partitions are screwed. You can likely do this or similar under Knoppix as well.
 
Old 05-03-2005, 05:17 AM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Re: Missing /boot folder and others....

Quote:
Originally posted by leapingfrog
I run a local RedHat server that I use for web development. One day while developing, all the sudden my Samba network drive disconnected, SSH quit working, and Webmin would no longer load up. So, I rebooted, only to be brought to a grub command prompt.
According to this description the boot sector is functional.

Edit: Why don't you run file system utilities like e2fsck, this my show useful error messages.

Last edited by Emerson; 05-03-2005 at 05:20 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian kernel header problem and missing folder draggin Debian 11 08-22-2005 05:09 PM
missing a folder? Doug.Gentry Linux - General 4 01-29-2005 03:20 PM
on reboot files are missing from /boot folder aus9 Mandriva 4 12-26-2004 05:25 AM
missing folder thebblack Linux - General 2 12-02-2004 05:52 PM
Missing documentary for Mandrake linux 9.1 (starter.html folder) FutureEX Mandriva 1 10-15-2003 09:21 AM

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

All times are GMT -5. The time now is 01:58 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
Open Source Consulting | Domain Registration