Koozali.org: home of the SME Server

grub-install Question - unexpected solution

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
grub-install Question - unexpected solution
« on: January 18, 2008, 10:12:20 AM »
Hi,
I have a 7.3 server that appears to be compromised by a power surge - boots to flashing cursor, no grub or any other message.

1) I can boot to CD, so I'm going to attempt a grub-install to dev/sda1 -  have 3 SATA drives, so is this correct?

2) Also gnu.org says if there is a /boot partition, then the command is:
grub-install  dev/sda1 --root-directory=/boot /dev/sda1
But there is no separate /boot partition with SME server, right?

Just being super cautious at this stage - could someone put me at ease, please?
Thanks a lot.
« Last Edit: January 18, 2008, 04:53:53 PM by ardugh »
SME Server is a fantastic product - thank you!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: grub-install Question
« Reply #1 on: January 18, 2008, 03:10:25 PM »
I have a 7.3 server that appears to be compromised by a power surge - boots to flashing cursor, no grub or any other message.

1) I can boot to CD, so I'm going to attempt a grub-install to dev/sda1 -  have 3 SATA drives, so is this correct?

No. If you can boot to CD, and can mount both / and /boot file systems, then you can safely use the upgrade option from CD, and that will replace grub correctly.

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: grub-install Question
« Reply #2 on: January 18, 2008, 04:52:37 PM »
Solved in another way:
Out on interest I removed one of the drives from the RAID array and rebooted. To my surprise the system booted.
I pushed in a spare, resync'd them and all is well.
Seeing the drive is still under g'tee, my day ends with a  :grin:

Thanks for the advice, though.
SME Server is a fantastic product - thank you!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: grub-install Question
« Reply #3 on: January 18, 2008, 07:25:12 PM »
Out on interest I removed one of the drives from the RAID array and rebooted. To my surprise the system booted.

You shouldn't be surprised. If a drive fails, you want the surviving drive/drives to be able to boot.