Koozali.org: home of the SME Server

Fixing "Error loading OS" when using RAID1 to upgrade harddrive

Offline 7eis

  • *
  • 47
  • +0/-0
I help maintain a SME Server (apart from my own), and few days ago a 2nd drive was added to the machine, and sync initiated.

The goal was to upgrade the harddrive.

When the sync finished the 1st harddrive was removed and he tried to boot from the freshly synced drive. No success. The machine reported "Error loading OS". He could not come up with a solution to this on his own, and I had no success finding anything helpfull searching for various keywords.

So I decided to try and install grub and manually add the partition. This was not needed, as the current installation was easy "fixable".

Using http://www.sysresccd.org/ I booted up and issued
Code: [Select]
# grub
>grub root (hd0,0)
>grub boot (hd0)
>grub exit
eject the disc and reboot. If you did a nolvm install you should be able to use gparted on the sysresccd to expand the partition to fit the new drive.

Very simple solution to a very frustrating problem (hence this post) :-)

Thanks for a great community and some very reliable and powerfull hardware!

Offline linuxhelp

  • *
  • 173
  • +0/-0
    • Linux PC & Server Support
Re: Fixing "Error loading OS" when using RAID1 to upgrade harddrive
« Reply #1 on: August 24, 2008, 10:59:39 PM »
Hello

same problem, that by default use of to disks as Raid 1 the grub menu.lst does not

have to entries to boot at disk0 and disk1 with a automatic failure option to boot

automaticly the next disk if one fails.

http://wiki.linux-club.de/opensuse/Grub,_Raid1_Ausfallsicherheit

see there for manual
Linux PC & Server Support
http://www.linuxonlinehelp.de
.. i Love SME..

Offline Marco Hess

  • *
  • 149
  • +0/-0
    • http://www.through-ip.com
Re: Fixing "Error loading OS" when using RAID1 to upgrade harddrive
« Reply #2 on: August 25, 2008, 04:01:51 PM »
When the sync finished the 1st harddrive was removed and he tried to boot from the freshly synced drive. No success. The machine reported "Error loading OS". He could not come up with a solution to this on his own, and I had no success finding anything helpfull searching for various keywords.

I had a similar issue when upgrading from a 160G drive to a 750G drive.

Solved it by going through "Upgrade from CD" on the 7.3 installation CD.

See http://forums.contribs.org/index.php?topic=40867.msg189696#msg189696

Marco
Adelaide - Australia