LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-08-2009, 08:32 AM   #1
bap_120790
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Rep: Reputation: 0
Unhappy Aborted a Gentoo Install. Kindly recommend me ways to recover my files.


Hello linuxquestions. I am bap_120790 and this is my first post. I appreciate any help offered.

This is what happened:

I have a computer which contains one hard drive. This hard drive has two separate partitions.

On its first partition, WinXP is installed. It is also where all my files are at.

The second partition on the other hand is empty. This was where I wanted to install Gentoo Linux. This is my first attempt to install a Linux OS.

I downloaded its LiveCD ISO then burned it onto a DVD. I read the installation procedures from the manual.

I rebooted then booted up the Live CD. Upon logging on the self sustained desktop of Gentoo, I clicked its graphical installer.

On the partitioning step, the installer offered a "Recommended Layout" option. I remembered reading from the manual that if I didn't know what to do, I should click this.

I clicked this and a message box warned me that: "This option will clear your drive."

When I read it, I first thought that it was only going to clear that partition.

Then it dawned on me that it COULD HAVE meant the WHOLE drive.

That was when I aborted the installation....

Upon rebooting immediately, I discovered I could not boot up WinXP anymore.

My request is:

Do you have any effective means on recovering files from such a hard drive? I am going to buy a new hard drive and attempt to recover my files from there.

That is what happened. Please, help me if it's still possible to get my files.

 
Old 02-08-2009, 08:39 AM   #2
Isix
Member
 
Registered: Mar 2007
Location: Windhoek, Namibia
Distribution: Slackware, Kubuntu, Mandriva & PCLinuxOS
Posts: 80

Rep: Reputation: 18
Get a live CD of some distro like Ubuntu, Mandriva, Knoppix or so --- run the live CD --- see if you can mount the partitions --- you can then use the live CD to copy stuff (if there are any). Gentoo also offers Live CDs.

By the way, I think Gentoo installation is not for the faint-hearted or for those that are completely new to Linux. Do you really have to use Gentoo, if not why not try others ...

Best of luck ...
 
Old 02-08-2009, 09:23 AM   #3
bap_120790
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Original Poster
Rep: Reputation: 0
As of typing this, I'm still waiting for my second hard drive.

Thank you very much for replying, Isix.

I burned a DSL Live CD btw.

I have one question for now:

How do I make the terminal list down all the hard drives which are possible to mount? And is it fine that I'm doing this from the booted GUI of DSL? [I mean, I haven't yet installed DSL on my hard drive)
 
Old 02-08-2009, 09:42 AM   #4
Isix
Member
 
Registered: Mar 2007
Location: Windhoek, Namibia
Distribution: Slackware, Kubuntu, Mandriva & PCLinuxOS
Posts: 80

Rep: Reputation: 18
I have not used DSL before --- so I hope the following commands will help for you.

To list mounted (because it could have mounted automatically) drives do
Code:
df -h
Check the outcome. If what you want to see is not listed, try to explore all mountable partitions by doing do

Code:
su
do get superuser status, and then do
Code:
fdisk -l
Check the outcome >>> I hope for the best ...
 
Old 02-08-2009, 09:46 AM   #5
Isix
Member
 
Registered: Mar 2007
Location: Windhoek, Namibia
Distribution: Slackware, Kubuntu, Mandriva & PCLinuxOS
Posts: 80

Rep: Reputation: 18
Yes, there should be no problem using the not-yet-installed live CD --- in fact that way you can first get the taste of a linux distro before installing it.
 
Old 02-08-2009, 07:35 PM   #6
bap_120790
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Hello again Isix! I tried "sudo su"-ing then typing fdisk -l to check which drives were detectable. Unfortunately, it did not detect anything.

Right now, I'm planning to recover my files by using data recovery software after I get a new HDD.
 
Old 02-08-2009, 09:44 PM   #7
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,072
Blog Entries: 3

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
you have nothing to loose now it is all gone or is it. well try your data recovery program if it does not work this happened one time be for to me. after all else failed. I went in with gparted and changed file system back to vfat in your case it may be ntfs or what ever. now it put the file system back and the data was still there. because on a quick format it does actually delete it. I was lucky got my data back then restarted it. but I do not use windows any more so this type of problem I rarely run into I always custom partition.
 
Old 02-08-2009, 09:54 PM   #8
Isix
Member
 
Registered: Mar 2007
Location: Windhoek, Namibia
Distribution: Slackware, Kubuntu, Mandriva & PCLinuxOS
Posts: 80

Rep: Reputation: 18
You said, when you did "sudo fdisk -l" you got
Quote:
it did not detect anything
Do you mean there was an empty reply. Can someone help us here --- I think it should detect something, at the least it should see itself (the CD itself) which ofcourse is mounted, am I wrong?

If there is any output please post it here.
 
Old 02-08-2009, 10:11 PM   #9
vinnywrite
Member
 
Registered: Jan 2007
Location: lexington NC.
Distribution: Ultimalinux 8.4 & Slackware 12.0.0
Posts: 82

Rep: Reputation: 16
Quote:
Originally Posted by Isix View Post
You said, when you did "sudo fdisk -l" you got


Do you mean there was an empty reply. Can someone help us here --- I think it should detect something, at the least it should see itself (the CD itself) which ofcourse is mounted, am I wrong?

If there is any output please post it here.
O yes thar should be SOMTHING as output----------command not found ---if not root ---the ramdisk from the livecd ----------somthig???
 
Old 02-09-2009, 12:17 AM   #10
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,072
Blog Entries: 3

Rep: Reputation: 323Reputation: 323Reputation: 323Reputation: 323
Quote:
You said, when you did "sudo fdisk -l" you got
if it does not report any thing there is no defined partition fdisk . formated disk partion so you can then do a fdisk sda and create one but if it is empty it does not exist how can you list a partition if it does not exist. you can't. cfdisk /dev/sda or if you are IDE Hard drive cfdisk /dev/hda
 
Old 02-09-2009, 03:14 AM   #11
bap_120790
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you for still replying, Isix.

I now know what problem type I'm facing: I accidentally deleted a partition using the Gentoo installer's "recommended layout" partition maker. But I aborted it, so I don't believe that my partition has been overwritten.

Currently, I'm trying to find a bootable tool that would help me "unerase" my parition.

Do you know of any? Thanks again!
 
Old 02-09-2009, 03:28 AM   #12
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
There's a little program called testdisk which can guess valid partition tables, assuming that the data is intact. Any livecd containing it could be used. I think that the sysrescue cd and the gparted livecd are shipped with this little tool.

If you try gentoo again, don't use the graphical installer, and install as you should, using the manual installation and the handbook.
 
Old 02-09-2009, 05:20 AM   #13
bap_120790
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks. How should I go on using testdisk? I looked it up and it sounds just like what I need (partition recovery).
 
Old 02-09-2009, 05:37 AM   #14
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
First you need a livecd which has it.

Then you just run testdisk on the command line and follow the instructions. It's text based but I think that's intuitive enough. You only need some basic notions about how the disks and partitions are named. Of course, all you know about the previous layout can be helpful when it comes the moment to identify the detected partitions.
 
Old 02-09-2009, 06:48 AM   #15
bap_120790
LQ Newbie
 
Registered: Feb 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I couldn't use testdisk on my non-booting hard drive so I bought the software Partition Table Doctor.

It detected my partitions.

My Partitions used to be:

C: and D:, in NTFS format

now, they were in Ext2 and were divided into three...

My files are still there despite the change of File System, right?

Also, I aborted the install when Gentoo was changing my filesystem, I wonder how much that messed up my drive.
 
  


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
LXer: 11 Simple Ways To Recover Your Screen on Linux and Unix LXer Syndicated Linux News 0 10-31-2008 05:20 AM
LXer: 9 Simple Ways To Recover Your Screen on Linux and Unix LXer Syndicated Linux News 0 08-22-2008 04:41 PM
yum install not working and giving errors .....kindly find a way out sureka Linux - Software 6 06-30-2008 01:01 AM
Gentoo, grub recover? berkay Linux - General 4 08-25-2004 11:18 AM
wish "ABORTED" tcl/tk 8.4 gentoo 1.4 Daem0hn Linux - Software 2 03-16-2004 06:12 AM


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