LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   new partition on partion in use (https://www.linuxquestions.org/questions/linux-newbie-8/new-partition-on-partion-in-use-859489/)

adjeiinfo 01-29-2011 08:42 PM

new partition on partion in use
 
Hi guys,

I made a very silly mistake, I know.
I tried to create a new extended partion on my /dev/sda3 which was actually in use.
The creation went well, but when I rebooted I got a kernel panic error.
I tried to access the previous partition with knoppix live cd but I got
an error telling me the mount failed.
I'm using a centOS 5.5
Please do anyone know what to do in such case in order to recover the data?
Any help will be wellcome because all my project I just completed is there.
Thank

lugoteehalt 01-29-2011 10:02 PM

Quote:

Originally Posted by adjeiinfo (Post 4241973)
Hi guys,

I made a very silly mistake, I know.
I tried to create a new extended partion on my /dev/sda3 which was actually in use.
The creation went well, but when I rebooted I got a kernel panic error.
I tried to access the previous partition with knoppix live cd but I got
an error telling me the mount failed.
I'm using a centOS 5.5
Please do anyone know what to do in such case in order to recover the data?
Any help will be wellcome because all my project I just completed is there.
Thank

The usual thing would be 'testdisk', the problem, at least with me, is identifying which of the many files it recovers is the one you are after. The sooner you try to recover the data the better: it might get lost with time.

The University of Kent in the UK used to offer a download on its big download facility for all sorts of stuff of a big *.iso of a forensic tool for recovering data from computers. Sorry, forgotten what it is called. EDIT: http://www.plainsight.info/

syg00 01-30-2011 03:02 AM

Tell us everything you did.

adjeiinfo 01-30-2011 01:52 PM

I really want to thank you for taking your time to read my post.
I solved the problem by using a live cd of knoppix. From the live cd
I found that the /dev/sda3 could not be mounted because some blocks were missing
after I created the partition.
I googled a bit and found that I could fix the problem with some fiew command.
I remounted the volume and everything is ok now.
Fortunately nofile went away.

What I learned from this mistake:
NEVER ATTEMPT TO CREATE PARTITION, NOR MODIFY partion size of a partition in use!

TobiSGD 01-30-2011 02:01 PM

Quote:

Originally Posted by adjeiinfo (Post 4242585)
I really want to thank you for taking your time to read my post.
I solved the problem by using a live cd of knoppix. From the live cd
I found that the /dev/sda3 could not be mounted because some blocks were missing
after I created the partition.
I googled a bit and found that I could fix the problem with some fiew command.
I remounted the volume and everything is ok now.
Fortunately nofile went away.

What I learned from this mistake:
NEVER ATTEMPT TO CREATE PARTITION, NOR MODIFY partion size of a partition in use!

What you should have really learned from this is: EVER HAVE A BACKUP OF YOUR IMPORTANT DATA!

adjeiinfo 01-31-2011 02:20 AM

Thank you TobiSGD,

You are completely right!
Actually I had the backup but not the most recent.


All times are GMT -5. The time now is 07:00 PM.