LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux rescue :you don't have any linux partitions (https://www.linuxquestions.org/questions/linux-newbie-8/linux-rescue-you-dont-have-any-linux-partitions-923174/)

deep27ak 01-10-2012 11:36 PM

Linux rescue :you don't have any linux partitions
 
Hello All,

I have redhat 5 VM which was running as a ftp server but once I restarted the machine, it is not coming up.

It gets stucked at the point of loading kernel and returns with this error

Code:

kernel panic: not syncing Attempted to kill init


I thought it would be better to go to the rescue mode to fix the issue But when I went into rescue mode

This is the message which appears on the screen

Code:

You donot have any any linux partitions.You will be redirected to shell.Press cancel to reboot.


after this when I enter the shell most of the files goes missing from my file system

there is no fstab, grub or all other main files

To give a try I did the same rescue method in my test vm where I get a message
Code:

your linux partition has been mounted on /mnt/sysimage
to change root you need to type chroot /mnt/sysimage



once I enter the shell I run the command as mentioned and all the files are visible

I did a bit of search on Google and I found that this is a sort of bug in anaconda for RED HAT but I don't see any solution for this bug
https://bugzilla.redhat.com/show_bug.cgi?id=488984

Can anyone please help me overcome this issue as this server contains very critical data.
Or is there any way that I can recover those data.

saahil2012 01-10-2012 11:45 PM

Can you Show me the output of fdisk -l command

deep27ak 01-10-2012 11:58 PM

Thanks for the reply,

Actually for now I have taken a snapshot of current instance and reverted back to the old one, due to which all my recent work has been lost

I won't be able to give you the exact output.

Code:

#fdisk -l
  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1        1830    14699443+  83  Linux
/dev/sda2            1831        1957    1020127+  82  Linux swap / Solaris

I was not getting any proper output for
Code:

#df -h
It was not showing me any proper mount point.


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