Koozali.org: home of the SME Server

How does SME do ? - Please Developers

WXP

How does SME do ? - Please Developers
« on: November 26, 2001, 04:18:39 PM »
Hey,

 ** I know this is my fault if I lost my datas.. I just want to know some things **

I had E-Smith 4.1.2 on a 60Gb HD.
Then I wanted to install SME v5 but wanted to keep my ibays..
So I decided to put a 8Gb (for the new installation of SME) instead of the 60Gb and moved the 60Gb to IDE2-Master.
The thing is I wanted to delete everything on my 60Gb HD and keep only /home.
Then I wanted to mount this HD on /home (on the 8Gb - SME v5) and that way I could keep my Ibays...

so....

I started the SME v5 installation and typed 'proceed'.
It formatted the 8Gb HD and I thought.. "humm it's taking very long to format an 8Gb HD"...And @!#$ .... it formatted the 60Gb as well :*(

Could the developper (or someone who know) please tell me what SME v5 do if he finds a HD on IDE 2 with :

 - an ext2 boot partition on /dev/hda1
 - a swap parition on /dev/hda5
 - and an ext2 partition full of datas ?

Did he do a : rm * -Rf or did he format the partition ?

I just want to know what SME v5 did to my /dev/hda6 (ext2) partition to see if I can get my datas back !

Basically, I tried to mount /dev/hda6 to see if he formatted the drive but he tells me he can't mount it.. I also tried to mount /dev/hda1 and it worked !!!

So.. /dev/hda1 is still there (the old E-Smith 4.1.2 /boot) or SME used IDE2-Master(60Gb) for /boot ?

I'm lost and really want to get my datas back if possible !

Many thanx

PS: If you a software (program) which could do it please tell me.. It doesnt matter if the software costs 20$ or 3000$ ... I want to get my datas back !

PS2: Excuse my english and please tell me If you didnt understand..

Charlie Brady

Re: How does SME do ? - Please Developers
« Reply #1 on: November 27, 2001, 12:51:23 AM »
WXP wrote:
 
> Could the developper (or someone who know) please tell me
> what SME v5 do if he finds a HD on IDE 2 with :
>
>  - an ext2 boot partition on /dev/hda1
>  - a swap parition on /dev/hda5
>  - and an ext2 partition full of datas ?
>
> Did he do a : rm * -Rf or did he format the partition ?

The installer will have repartitioned the drive, and then added an ext2 file to one or more partitions.
 
> I just want to know what SME v5 did to my /dev/hda6 (ext2)
> partition to see if I can get my datas back !
>
> Basically, I tried to mount /dev/hda6 to see if he formatted
> the drive but he tells me he can't mount it.. I also tried to
> mount /dev/hda1 and it worked !!!

The first rule of data loss is to do nothing that will alter the data on the disk. If you try to mount any partitions, make sure that you do so read-only. Use the "-o ro" mount flag to do that.

> So.. /dev/hda1 is still there (the old E-Smith 4.1.2 /boot)

It's not necessarily the same /dev/hda1. The disk will have been repartitioned.

> or SME used IDE2-Master(60Gb) for /boot ?
>
> I'm lost and really want to get my datas back if possible !
>
> Many thanx
>
> PS: If you a software (program) which could do it please tell
> me.. It doesnt matter if the software costs 20$ or 3000$ ...
> I want to get my datas back !

Some of your data is probably on the drive, and some will have been lost. Your chances of recovery will be much greater if you have any record of exactly how the disk was originally partitioned.

You will really need an expert in file systems to recover as much as possible.

The best of luck

Charlie

WXP

Re: How does SME do ? - Please Developers
« Reply #2 on: November 27, 2001, 01:17:14 AM »
Thanx for your answer Charlie.

In fact I'm a damn lucky guy !!

I stopped my computer before it did too much things..

Grand'Pa (the well known french helper) told me to try to fdisk the hard disk..
I did it and actually it work...

Everything's back ...

Thanx to Grand'Pa :D

guestFF

Re: How does SME do ? - Please Developers
« Reply #3 on: November 27, 2001, 01:37:41 AM »
Good for you WXP!

Maybe you can let us in in this 'magic' trick?

Thanks,

HFW

WXP

Re: How does SME do ? - Please Developers
« Reply #4 on: November 27, 2001, 01:46:54 AM »
Woa it's gonna be gore :D

I'm swiss so it's kinda hard to explain what I did in english lol..

OK So...

Here is quickly what happened :

I had ESSG 4.1.2 on a 60Gb HD
I decided to install SME v5
So I put a 8Gb HD in my server for SME v.5 on IDE1-Master
and on IDE2-Master my 60Gb.
I didnt read carefully the installation step and typed 'proceed'

After some seconds I thought "humm taking long to format a 8Gb HD... Oh damn @!#$ my 60Gb !!!"
I shut my computer down and tried to boot on the 60Gb... wasnt working.

ok here is the story :D

Then I searched all over the web for "+ext2 +unformat... +recover .. bla bla bla"
and didnt find anything for my problem.

I got home and Grand'Pa told me to do some stuff which actually worked :D

Apparently, SME didnt format my partitions.. it only modified the partitions table .. so I used fdisk to recreate the default partitions table and here you go.. it worked.

fdisk /dev/hda

- remove all partition
- create a partition for /boot from sector 1 to 2
- change the type of partition 1 to 83
- create an extented partition from 2 to MAX
- create a partition for the swap from sector 3 to 35
- change the type of partition 5 to 82
- create a partition from sector 36 to MAX
- change the type of partition 6 to 83
- write modification

Voila !

Thanx to Grand'Pa again... !!

guestFF

Re: How does SME do ? - Please Developers
« Reply #5 on: November 28, 2001, 05:02:44 PM »
Thanks for sharing your info!

HFW