LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-24-2008, 07:25 PM   #1
Nishtya
Member
 
Registered: Feb 2004
Location: The armpit of the universe, or at least the armpit of the U.S.
Distribution: PCLinuxOS, Sabayon, Debian & willing to try any noob friendlies
Posts: 170

Rep: Reputation: 30
repartitioning disaster - loss of data, assistance appreciated


Hi.

Well, I don't know where I went wrong. But, I tried to resize (make two smaller partitions one) which I believe went okay with gparted. Then, like the TOTAL COMPLETE MORON I am, I installed PCLOS with its drake utility on the newly made partition). Now, below is what my fdisk USED to look like (before resizing, and PCLOS install) after the install ((I specifically told it sdb3) my sdb2 (main install of linux and all my data is BLOTTO). Tried recovering with my favorite grub rescue (it doesn't notice an hdb1 which is sdb2, right?) OK, grub counts from 0 and the rest of the world counts from 1 got it...where is it? Yes, I am hysterical now.

Previous:
Disk /dev/sdb: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00029c6f

Device Boot Start End Blocks Id System
/dev/sdb1 1 76 610438+ 82 Linux swap / Solaris
/dev/sdb2 77 2626 20482875 83 Linux
/dev/sdb3 * 2627 3786 9317700 83 Linux
/dev/sdb4 3787 4870 8707230 83 Linux

Now:

/dev/hdb1 * 1 76 610438+ 82 Linux swap / Solaris
/dev/hdb3 2627 4870 18024930 83 Linux


please...pleading here... Any help just recovering the data from what was my main linux install on hdb2 (debian of course) would be appreciated and if I could procreate I would happily name the output after you.
 
Old 02-25-2008, 06:14 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,118
Blog Entries: 54

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
What happened is the drive was repartitioned and the partitions where reformatted. Reformatting itself only lays down the filesystem structure. In such cases with gpart or testdisk you could try to recover your partitions but *installing* stuff and booting GNU/Linux effectively writes data over, wiping what's left. This leaves you with a less than optimal chance to recover ("carve") data out of what's left using testdisk or foremost (all on the HELIX Live CD). Needless to say you should immediately stop and boot a Live CD and write whatever you carve to another physical disk.
 
Old 02-25-2008, 10:42 AM   #3
masterclassic
Member
 
Registered: Jun 2007
Distribution: Knoppix
Posts: 140

Rep: Reputation: 23
Perhaps you can recover files using "photorec".
 
Old 02-25-2008, 12:11 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,118
Blog Entries: 54

Rep: Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785Reputation: 2785
Uh. yeah. That's what I meant to say. Photorec.
 
Old 02-25-2008, 07:32 PM   #5
Nishtya
Member
 
Registered: Feb 2004
Location: The armpit of the universe, or at least the armpit of the U.S.
Distribution: PCLinuxOS, Sabayon, Debian & willing to try any noob friendlies
Posts: 170

Original Poster
Rep: Reputation: 30
unSpawn and all who replied: First thank you... unspawn you hit the nail on the head and did try exactly just that - not write to the darn thing but I think my attempts to mount it just compounded the problem - it was if there were a hole in the disk. I came "so close" to just using gparted to give it a file syste again, but didn't seen how to use it in this situation.

Near as I can figure, drake (part of the PCLOS install utility) just didn't like the looks of the reiser and decided to unallocate it. Not sure if "unallocating" is quite the same as reformatting. Even though I explicitly told it to stay the heck away from it and it did confirm it wasn't getting touched. I never even entered a mount point for it. Figured I would just redo grub and fstab after the fact.

I never got anywhere with the recovery tools I tried. So promptly set off on the next disaster. Long story and I think I have a thread here to that effect somewhere.

I got too cocky. Thought I had backed up enough, etc. etc. etc.

Moral of story? Backup TWICE as much and often as you think you need to. Thanks again. And I am off to work with live CDs only for awhile. I always considered myself a newbie even after 4 years. And this proves it.
 
Old 02-25-2008, 08:32 PM   #6
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Use photorec but be prepared for a lot of work. By overwriting your files, PCLinux also wiped the name of each and every file so what you'll get from is an overwhelming mass of anonymous files - most of which should be fine although larger files (particularly video and mp3) tend to be trickier.
 
Old 02-26-2008, 05:24 AM   #7
Fred Caro
Member
 
Registered: May 2007
Posts: 667

Rep: Reputation: 59
lost data

Dear Nish***
I am not as knowledgable as some that have replied but after a simmilar experience I wonder if the drive has in fact been reformated or if you have just lost the partition paramitors? I could be just showing ignorance but the renaming of your harddrive seams odd. Have you tried editing the bootloader or relabeling the system?
 
  


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
repartitioning assistance - making one partitioning from two with gparted Nishtya Linux - Newbie 3 02-24-2008 06:54 PM
Repartitioning in YaST without losing data gumb Suse/Novell 22 12-29-2007 06:32 PM
Repartitioning without losing data Cdzin Slackware 4 01-30-2005 08:27 PM
Repartitioning Without Damaging Data Cr4wford Linux - Hardware 5 11-02-2003 01:06 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration