LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-15-2003, 06:39 PM   #1
eneko
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 9.0
Posts: 14

Rep: Reputation: 0
Partition formatted, mount points, data lost


Hi,

I'm a true newbie to Linux and not a "computer-person" at all. I've screwed up my hard disk fiddling with a partition for Windows. All my own fault. I'll try to explain how it happened and what is my situation now (all data lost?) probably in not a very technical way, but I'll try to give as much detail as I can think of. If there is any further info that I can provide, just ask, please. But bear in mind that outside a graphical environment I find myself quite lost, I'm afraid.

I could not install Windows in a partition I made to that effect because its setup program would not recognize a XP-compatible partition. That doesn't bother me anymore, I can live with that. But since Windows setup reformatted the /mnt/windows partition Linux could not boot. So I got the Mandrake 9.0 installation CD and tried to fix that (why should I'd thought I could do so, I don't know).

I had originally allocated 5Mb to Linux in the root partition. Then there was the small swap partition, 10Mb for Windows and 25Mb for my data that was mounted on “/home”.

At the stage of choosing the new partitions or keep those existing ones I believe I made a mistake. I formatted the windows partition again so it would not give me any more problems starting Linux (I left installation of Windows for a better occasion). But then I forgot (read, “I was so stupid as to not”) setting the 25Mb partition properly so the data was kept in place. Obviously, at the end of installation I found that all my data was no longer there, in the “/home” folder. Gone. (I have my regular backups, but unfortunately last week was especially productive...)

I read some documentation and help files on the Internet and learned that there won't be a chance of recovering my data if I had done a hard drive format. Then found some software that claims that can recover data even after the hard drive has being formatted, but seems to run under windows even if you are trying to recover a Linux hard drive. That's a choice, although I'll have to get me someone that can work that out.

But then I realised (I'm still not used to the whole mount/partitions thing), that KDiskFree only showed two of the partitions:

DEVICE TYPE SIZE MOUNT POINT FREE FULL

/dev/hda1 ext3 5.3 GB / 3.4 GB 35.0%
/dev/hda6 vfat 9.9 GB /mnt/windows 9.9 GB 0.0%

That is, my other drive, hda3, the one with the data, did not appeared there, nor even empty. In my ignorance, and in an exercise of wishful thinking I considered the possibility of my data being still actually there, somewhere in the hard drive, but just hidden from the system. After all, I just asked Mandrake installation to format hda6.

I had a look at my fstab file, which reads,

/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
none /mnt/cdrom supermount dev=/dev/scd0,fs=auto,ro,--,iocharset=iso8859-15,codepage=850,umask=0 0 0
/dev/hda6 /mnt/windows vfat iocharset=iso8859-15,codepage=850,umask=0 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0

And then in DiskDrake, where the partition actually appears. It is blank, that is, it has no mount point written on it. And the details displayed are:

Device: hda3
Type: Journalised FS: ext3 (0x483)
Start: sector 32644143
Size 21GB (58%), 45521217 sectors
Cylinder 2032 to 4865

My question, finally, is, Is it possible that my data is still there? I've tried to determine the mount point of the partition in “/home”, to check whether I just had left the system blind to that partition, but DiskDrake said that if I format the partition (although I just added the mount point) all data in the partition will be lost. If there is the slightest chance of recovering my data, I don't want to repeat the mistake. What should I do (apart from more frequent backups and avoid fiddling with what I do not understand)?

Any help will be greatly appreciated. Thanks.

eneko
 
Old 11-15-2003, 07:48 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
What you need is a stable system to run so that you can examine all of your partitions to see what is there and what is not. I recommend using one of the CD based Linux systems such as knoppix. As a second choice you could try a bootable floppy system like tomsrtbt. knoppix is better than tomsrtbt because it has more software available on it. Also with knoppix you can do at least part of your work from a GUI whereas tomsrtbt is all command line (and has much less software available for your use).

Boot knoppix. Then, one by one, mount each of your hard disk partitions and try to list the files there.

Another alternative is to boot your install CD and look for a rescue function instead of using the installer. I don't know whether the Mandrake install CD has a rescue function or not. If it does then you could use that to inspect all of your partitions.

Once you find out what data you still have and where it is then you can work out a reasonable recovery plan.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 11-16-2003, 01:39 AM   #3
eneko
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 9.0
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you.

Fortunately I already had Knoppix around, so I'll try that now.

I just realized that in my first message I've talked several times of Mb when I wanted to say Gb. A 40 Gb hard drive is new and far toooo big for me yet :-)
 
Old 11-16-2003, 04:13 AM   #4
eneko
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 9.0
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks, Steve!!

I started Knoppix from my CD-Rom and it automatically detected the hda3 partition that I was missing, and all the data was there. Yes!

Now I'm not sure where to go from here.

To make a backup of my data in cdroms I have a problem because Knoppix is running from the cd drive. I can try to set up a friend's usb cdrw, but I have had awful experiences with usb and Linux, and anyway I do not know how to get to su mode in Knoppix, it keeps asking me for a root password I didn't set in the first place.

And I couldn't find any CD-writing application in Knoppix anyway, so even if I copy Knoppix to my HD and run it from there, I don't know if I should try to execute from Knoppix the programs installed in Mandrake. (???)

I'm talking about standar CD-rom burning here because I've always done it like that, I'm not familiar with backup applications. Maybe there there is the answer, but I'll need some piece of advice on that.

Or maybe I'm just making things too complicated. Now I'm know the data is there, how can I mount that unmounted, but already formatted partition without losing the data, as DiskDrake says it will happen? Or can I make a backup from Mandrake of a partition it cannot see into?

Thanks again, Steve!
 
Old 11-16-2003, 11:36 AM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"Or can I make a backup from Mandrake of a partition it cannot see into?"

From your description in your first post I though that you did not have a working Linux system other than the install CDs. If you have a working Mandrake system which ignores /dev/hda3 then boot your Mandrake system, login as root or su to root, then issue these commands:

mkdir /aristotle
mount /dev/hda3 /aristotle

and you can access your data through /aristotle. If you want you can put a line in /etc/fstab which will automatically mount /dev/hda3 every time you boot:
/dev/hda3 /aristotle ext2 defaults 1 2


"And I couldn't find any CD-writing application in Knoppix anyway, so even if I copy Knoppix to my HD and run it from there, I don't know if I should try to execute from Knoppix the programs installed in Mandrake. (???)"

Knoppix is designed as a general purpose system. You can built a special purpose CD system that functions as a better rescue CD by using LifeBoat:

http://users.rcn.com/srstites/LifeB....home.page.html

If you want to use LifeBoat you have to first build a stable system and then build a Lifeboat CD in preparation for the next emergency.


-----------------------------
Steve Stites
 
Old 11-16-2003, 02:42 PM   #6
eneko
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 9.0
Posts: 14

Original Poster
Rep: Reputation: 0


Thank you, Steven. Everything is allright now: Mandrake can look into the data now and these are being burned into cds as I write.

I don't understand why a command line can determine a mount point so easily while doing the same with DiskDrake implies erasing existing data. But there you go...

I know mine may have seemed a stupid problem for you, but I wouldn't have solved it on my own in a lifetime. And now I know a bit more about Linux. Thanks a lot.

Cheers!

eneko
 
Old 11-16-2003, 03:15 PM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I don't understand why a command line can determine a mount point so easily"

That is the power of the command line. Unix has a large number of simple commands that can be used in very powerful combinations. Unfortunately they are hard to learn and poorly documented. I suggest that you force yourself to read all of:
man mount

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 11-16-2003, 08:46 PM   #8
eneko
LQ Newbie
 
Registered: Nov 2003
Distribution: Mandrake 9.0
Posts: 14

Original Poster
Rep: Reputation: 0
I'll do
 
  


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
help! lost data... mount and new partition puhdy2005 Linux - General 3 11-07-2005 03:28 AM
formatted my c:, linux boot data lost, how could i recover sas_tvr Linux - General 1 01-18-2005 06:56 AM
mount points and partition clarification tuxrules Linux - Newbie 8 07-21-2004 05:16 PM
creating mount points and is the data safe if i change system JMK Linux - Newbie 4 01-22-2004 09:57 AM
partition mount points fireal Linux - Newbie 10 06-28-2003 03:05 AM

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

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