LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-09-2008, 03:29 PM   #1
sajro
Member
 
Registered: Jan 2008
Location: Tennessee
Distribution: Arch, Debian, Ubuntu, Puppy
Posts: 39

Rep: Reputation: 15
Going insane - I think I broke my system!


I'm totally freaking out right now. I was resizing my partition via GParted on SystemRescueCD and I think I deleted everything on my Linux partition when I accidentally cancelled! Oh my gosh I need that stuff (I don't have an external backup!). My dad has all his students' things on there he needs.

How can I fix this? Grub gives me like error 2 or something. I'm on a Puppy livecd at the moment. I'm freaking out more than I can ever remember freaking out. Please help if you can!

(Kubuntu 7.10, gnome installed too)
 
Old 03-09-2008, 03:37 PM   #2
fair_is_fair
Member
 
Registered: May 2005
Posts: 516

Rep: Reputation: 52
You "cancelled" the operation?

If you did resize the partition in question, there was a good chance Grub would not boot the operating system. You would need to reinstall Grub. Your data "should" still be there, hopefully.

If you formatted the partition, the data is gone forever.

Can you access the partition via live cd to see if it still exists as well as data?
 
Old 03-09-2008, 03:39 PM   #3
sajro
Member
 
Registered: Jan 2008
Location: Tennessee
Distribution: Arch, Debian, Ubuntu, Puppy
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by fair_is_fair View Post
Can you access the partition via live cd to see if it still exists as well as data?
The partition itself exists but there is not report (by GParted) of any data. However, this may simply be that it is corrupted and thus can't tell if there is or isn't data.
 
Old 03-09-2008, 03:55 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Oh, that's not good. If it comes down to it you may have to use a liveCD and photorec or foremost to recover what data you can.
 
Old 03-09-2008, 04:01 PM   #5
sajro
Member
 
Registered: Jan 2008
Location: Tennessee
Distribution: Arch, Debian, Ubuntu, Puppy
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by H_TeXMeX_H View Post
Oh, that's not good. If it comes down to it you may have to use a liveCD and photorec or foremost to recover what data you can.
What are photorec and foremost and how do I get them?
 
Old 03-09-2008, 05:36 PM   #6
Mohtek
Member
 
Registered: Dec 2004
Location: Colorado
Distribution: Kubuntu/Debian/Centos
Posts: 126

Rep: Reputation: 15
photorec

http://www.cgsecurity.org/wiki/PhotoRec

(Googled)

I used that a few weeks ago, and it seems to work well. Its a shell based application which will recover your deleted items. If you dig through the menu systems you will see a way of customizing your search. This program has the potential of dumping a very large collection of files into a lot of temp folders.

Know that even if your files are not accessible, they are not deleted either. That is the benefit/curse of a journaled file system. When you are using photorec or any file recovery program, remember to save in a different partition, lest you overwrite something you are trying to save.
 
Old 03-11-2008, 09:31 AM   #7
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
what does fdisk -l say?
 
Old 03-11-2008, 10:01 AM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
At what stage did you cancel? Just as /after the partition was shrunk or while it was already resizing the file system?
If it's the first, recovery should be easy. Just run testdisk on that drive and try to determine the start and end of the partition as they were before you ran gparted. Then delete the partition, run fdisk and recreate it with the proper end/start. Note that fdisk and testdisk seem to measure differently: the former starts counting from 1 while the latter counts from 0 so you have to add 1 to the start/end numbers reported by testdisk before you can type them into fdisk.
In the other case, things could be more painful and recovery of the raw data may be all that you can do.
 
  


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
I think I completely broke my system :D brokenpromises Linux - Newbie 1 09-19-2007 05:03 PM
python upgrade broke system tools bilkay Linux - Software 2 10-24-2006 02:03 PM
Updating system with yum broke Openoffice.org Jamo Fedora 3 06-15-2005 04:57 AM
Upgrade from KDE 3.2 to 3.3 broke System Notifications... AvatarofVirgo SUSE / openSUSE 4 03-15-2005 07:16 AM
Broke my system... Gillibiabtiag Linux - Newbie 4 09-23-2004 10:37 PM

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

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