LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-29-2011, 09:42 PM   #1
adjeiinfo
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
Red face 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
 
Old 01-29-2011, 11:02 PM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Quote:
Originally Posted by adjeiinfo View Post
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/

Last edited by lugoteehalt; 01-30-2011 at 12:17 AM.
 
Old 01-30-2011, 04:02 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,991

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
Tell us everything you did.
 
Old 01-30-2011, 02:52 PM   #4
adjeiinfo
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Original Poster
Rep: Reputation: 0
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!
 
Old 01-30-2011, 03:01 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853
Quote:
Originally Posted by adjeiinfo View Post
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!
 
Old 01-31-2011, 03:20 AM   #6
adjeiinfo
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you TobiSGD,

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

Last edited by adjeiinfo; 01-31-2011 at 03:28 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu: Partion help - Unable to access windows partition ubuntufag Linux - Newbie 18 10-18-2010 11:17 PM
problem mounting a linux partion from another ext3 partion fkeith Linux - Hardware 1 10-14-2007 08:33 PM
Can't allow partion permissions for a vfat partition, mounted as my home folder DrD Linux - General 19 07-26-2006 01:26 PM
how do i move files from my windows partion to my linux partion awesome_man Linux - Newbie 2 01-30-2004 01:51 PM
is /boot,/swap, / partition unable to be created under the second active partion? yunxiang Linux - General 8 06-04-2003 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration