openSuSE 11.1 -install new boot loader- answered wrong root partition -what did it do exactly?

Using the install new bootloader utility from the expert repair tools on the openSuSE 11.1 install DVD, what exactly happens if I answer with a wrong root partition?

For me, it lead to having all but 1 file removed from my other ext2 partitions.
Is it because it decided to do a fsck?? I know that Suse 9.2 has an older implementation of fsck.ext2, but this is unexpected.

Barring malicious intent, and the one time use of Plop boot manager ( from Hiren’s BootCD, whith which I managed an urgent boot into opSuse 11, without any problems), I can’t believe this would happen.

With some details:

After re-installing WinXP, again, a few days later, I proceeded, as many times in the past, in using the install bootloader repair utility from the initial 11.1 install DVD, to reinstall grub and rearrange the boot list.

(My memory is a bit fuzzy from here)

It kindly asked me which is my root partition, only I messed up, and gave it the partition that had Suse 9.2 installed ( sda2 = openSuse 11.1 ; sda5 = suse 9.2 )

As it showed the progress bar, I used the time to do some chores, so I’m not sure how much time it spent here, less then half an hour anyway.

When I got back, it had the screen with a proposed boot list.
I opted first to restore the MBR from a previous save, but this failed ( do not remember the exact error message, but it did not seem important)
I then chose to reread the boot order from my previous list. This also failed, alerting me to a big problem.

After some investigating I found that all my files were removed from the other ext2 partitions, created with 11.1, with a sole exception, a jar file, deep in /usr structure, IIRC… Unsurprisingly, the suse 9.2 partition seems ok.

I have saved a dd image of my partitions, and can expect to recover most of the files, using PhotoRec, but as unnamed and pathless.
Currently I and am looking on how to recover both my file and folder structure, and it would help to know as much as possible about how this utility behaves when given a wrong root partition,

Thanks,
A foolish person

For the data recovery question, I’ve created a thread on linux questions forum (In case anyone is interested):
Data recovery - getting the files and folder structure from ext2 strangely affected

some of my partitions:

sda1 - ntfs - WinXP
sda2 - ext2 - OpenSuse 11.1 (now almost empty)
sda3 - ext3 - OpenSuse 11.3 ( now empty)
sda5 - ext3 -Suse 9.2 (seems ok, not checked)

Missed the 10 minutes mark to edit post …

Typo: all three mentioned are ext2:

sda1 - ntfs - WinXP
sda2 - ext2 - OpenSuse 11.1 (now almost empty)
sda3 - ext2 - OpenSuse 11.3 ( now empty)
sda5 - ext2 -Suse 9.2 (seems ok, not checked)

On 2012-12-09 16:06, messeduplikeafool wrote:
>
> Using the install new bootloader utility from the expert repair tools on
> the openSuSE 11.1 install DVD, what exactly happens if I answer with a
> wrong root partition?

11.1 is old and out of maintenance.

The repair facility that was available time ago has been abandoned
because the maintainer could not cope with it, it was severely broken
beyond repair, it seems.

Thus, it is very difficult to answer your questions.

> For me, it lead to having all but 1 file removed from my other ext2
> partitions.

Ext2? Ext2 is the older filesystem available, nobody uses it except for
small partitions. Typically we use ext4 now. Even 11.1 would use ext3 by
default.

> After some investigating I found that all my files were removed from
> the other ext2 partitions, created with 11.1, with a sole exception, a
> jar file, deep in /usr structure, IIRC… Unsurprisingly, the suse 9.2
> partition seems ok.

You might find more files in /lost+found

> I have saved a dd image of my partitions, and can expect to recover
> most of the files, using PhotoRec, but as unnamed and pathless.
> Currently I and am looking on how to recover both my file and folder
> structure, and it would help to know as much as possible about how this
> utility behaves when given a wrong root partition,

I think the only possibility is recovery from backup.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

Do you know where I might find the source code / scripts used for that utility? Better yet, for the scripts used in that entire set of utilities?

I need to have my stuff reasonably backwards compatible with stuff from the previous millenium, so I’ll keep using ext2 and fat32 partitions.
But I might as well use this “opportunity” to try out the latest openSuse.

thanks

On 12/10/2012 03:36 PM, messeduplikeafool wrote:
> Do you know where I might find the source code / scripts used for that
> utility?

wouldn’t the scripts be right there on the install media that you have?
they would have to be, right?

or are you saying the install media’s repair tools are in a binary
executable?


dd

On 2012-12-10 15:59, dd wrote:
> On 12/10/2012 03:36 PM, messeduplikeafool wrote:
>> Do you know where I might find the source code / scripts used for that
>> utility?
>
> wouldn’t the scripts be right there on the install media that you have?
> they would have to be, right?
>
> or are you saying the install media’s repair tools are in a binary
> executable?

If they are scripts, they will be in that dvd. If they are binaries,
then he has to try the suse source repo, if 11.1 is still there.
Probably not, and then he has to search internet and find a server that
not only keeps the… what’s the name? unmantained? obsolete? tree, but
also the sources tree. Good luck.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)