Help needed for system recovery!

I am running OpenSuse Release 12.3 (64-bit) / Linux 3.7.10-1.16-desktop / GNOME 3.6.2 on my desktop.

I installed Wine to see if I could still use a legacy Windows program. I ran ‘setup.exe’ (from the CD of the windows legacy program) using Wine.

On powering off my computer after that exercise, it hung at one point during the run-down. I think I waited long enough, and then switched off the machine by hand.

Now I cannot start my computer - it hangs at the GRUB screen, i.e. only the word GRUB appears on the screen and nothing further seems to happen. What shall I do next?

Please help!

Greetings

Desperate

That sounds like you would need a recovery of Grub.
How have you installed openSUSE? Is Grub written into the MBR or have you created a separate partition for /boot?

What I’m interested in is the Windu legacy program. It looks like it damaged the boot. What is it?
Mind: Linux + Wine is not a replacement for Windows.

I can’t remember. I think I have written GRUB into the MBR. (I have a (Gentoo) system recovery disk with which I can rewrite the MBR).

It’s a program for viewing data from the British 1881 census called Viewer 2.0 (should worḱ with anything from Win95 up to WinNT)

Having tried MBR rewrite, I confirm that did not solve the problem!

For your information I now have the following output from fdisk

 root@sysresccd /root % fdisk -l

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders, total 156250000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x08a0089f


   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63     9815776     4907857    7  HPFS/NTFS/exFAT
/dev/sda2   *    20482048   156248063    67883008    f  W95 Ext'd (LBA)
/dev/sda3         9816064    11872255     1028096   82  Linux swap / Solaris
/dev/sda4        11872256    20482047     4304896   83  Linux
/dev/sda5        20484096    62429183    20972544   83  Linux
/dev/sda6        62431232   156248063    46908416   83  Linux


Partition table entries are not in disk order

Where does the boot fail??

Also I assume you did not run setup.exe as root?? So I can’t imagine how wine would mess up the system???

I cannot get access to any of my files (e.g. log files). Any ideas? All I have is the partition map as above and, otherwise: “it hangs at the GRUB screen, i.e. only the word GRUB appears on the screen and nothing further seems to happen”

No, I did not run setup.exe as root.

Hmm…doesn’t look good, does it?

Boot to a live dvd/cd you should be able to see the files with that. You may want to run fschk on the HD partitions. Also allow you to backup any important data

What file system are you using?

Yes, I have done that, i.e. recovered my files from sda6 (which is an ext4 fs). Now what? (My imagination runs only as far as a reinstallation of Opensuse 12.3!)

Test this link: Restore GRUB | Novell User Communities

Very useful, thanks.

the find command returns 2 results:

 grub> find /boot/grub/stage1
 (hd0,3)
 (hd0,4)

The root command returns the message

root (hd0,3) Filesystem type is ext2fs, partition type 0x83

and exactly the same with root (hd0,4)

On the other hand:

grub> root (hd3,3)

Error 21: Selected disk does not exist
 

And exactly the same with root (hd4,4)

The setup command appears to have worked

grub> setup (hd0) 
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,4)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
 

I will now proceed to reboot…:wink:

To my surprise it wanted to boot into my previous version of Opensuse, i.e. 11.3, and then limited to rescue functions :frowning:

I do believe I will have to reinstall Opensuse 12.3:(

Well, you don’t have five harddisks, do you?
(hd0,3) means first harddisk, 4th patition = sda4
(hd3,3) would mean 4th harddisk, 4th partition = sdd4
(hd4,4) 5th harddisk, 5th partition = sde5

The setup command appears to have worked

grub> setup (hd0) 
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,4)/boot/grub/stage2
/boot/grub/menu.lst"... succeeded
Done.
 

So you set up (hd0,4) = sda5 as root

Is 11.3 on sda5? And sda4 maybe contains 12.3?
Then try to use (hd0,3) as root when setting up grub.

And only run one root command when setting up grub, otherwise it’s confusing.
So either “root (hd0,3)” if 12.3 is on sda4 or “root (hd0,4)” if 12.3 is on sda5.
Followed by “setup (hd0)”.

Yes, you are right, only one hard disk. The Novell instructions referred to ‘(hd#,#), where # is the partition returned by find command’, so I misinterpreted it, didn’t I?

Anyway, I have reinstalled Opensuse12.3 with a minimum of fuss and all was where I expected it to be, with a few exceptions (e.g. firewall settings needed renewing, printers needed to be reinstalled), so I consider my problem essentially to be solved. So thanks to all for the help!

By the way, I preferred not to try Wine again in order to run my old Windows program. Instead I installed the Oracle Virtualbox and it works a treat! Great stuff!!

Greetings and thanks
hn

I agree, that could be clearer. Maybe by writing (hdx,y)? Or “(hd$,#), where $ and # are the values returned by find command”…

But the find command did return (hd0,3) and (hd0,4) and not just 3 and 4…:wink:

I don’t think, openSUSE 12.3 would be away.
If you have installed two different versions of openSUSE, it can be result of using different bootloaders. :wink:
openSUSE 12.3 has got a new one.
But that shouldn’t be a problem!
Can you post the file content of /boot/grub/menu.lst, please?

You have to configure “multiboot”.

There is no file (or directory) called menu.lst in the /boot/grub folder. Not is there one in the grub2 or the grub3-efi folders, neither visible nor hidden.

menu.lst is not used for Grub2

So it would only be on the older OS versions partition.

11.3 uses grub2 and it is setup different then legacy grub.

So you need to decide which grub and which OS you plan to control the boot.