Koozali.org: home of the SME Server

RUSH SME Server 7 boot problem after power surge -- GRUB !

Offline ldkeen

  • *
  • 405
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #15 on: March 04, 2007, 08:12:18 PM »
The command should be
Code: [Select]
grub-install /dev/sda

Offline haymann

  • *
  • 212
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #16 on: March 05, 2007, 01:06:30 AM »
Quote from: "ldkeen"
The command should be
Code: [Select]
grub-install /dev/sda
Code: [Select]
Format of install_device not recognized. :?

How about this? I have connected a USB drive to the server that won't boot, anyone know how I can access it in rescue mode so I can copy my files to it? I see that rescue mode loads a USB storage driver, but I don't know how to access the disk...

I still don"t understand why I can't get ssh going correctly, I can ping the non-booting server, but I can't connect using Putty or WinSCP :?

Offline ldkeen

  • *
  • 405
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #17 on: March 05, 2007, 04:52:12 AM »
Hayman,
To fix the grub problem up, try this:
Boot into rescue mode from the installation CD and choose the option to mount the filesystem.
then do:
Code: [Select]
#chroot /mnt/sysimage
then edit /etc/mtab and change the mount point for /boot from /dev/md1 to /dev/sda1
the run:
Code: [Select]
#grub-install /dev/sda
Lloyd

Offline haymann

  • *
  • 212
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #18 on: March 05, 2007, 03:06:36 PM »
Thanks Idkeen,

I don't have access to the server today, but I'll try that the next time I am on site. Thanks again for the suggestions.
Ryan

Offline haymann

  • *
  • 212
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #19 on: March 05, 2007, 08:17:17 PM »
Ok, I was able to stop by for a moment and was successfully able to modify /etc/mtab to point /boot to /dev/sda1. I then ran grub-install /dev/sda and I never got the prompt back... I didn't get any errors, and I was able to type characters, etc...; but I never got a prompt back. After waiting several minutes and not seeing any HD activity and seeing nothing from the console, I hit the reset switch (as I couldn't exit gracefully), pulled the CD and the server booted to a grub prompt.

I had to leave then, but I don't know if that is what I was supposed to accomplish or not... Looks like Grub is installed, but I still don't know how to get it to continue to boot. I will continue to search for answers, but would appreciate any pointers!
Thanks,
Ryan

Edit: I forgot to mention that I tried using boot at the grub prompt, but I received an error that said something to the effect that the kernel need to be loaded or couldn't be found... I then ran out of time, but will be back there this evening I hope.

Offline haymann

  • *
  • 212
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #20 on: March 06, 2007, 03:28:21 AM »
I tried again and let it sit longer and finally got a message that said grub was installed. When I rebooted though it hangs at the checking filesystems stage...
Code: [Select]
Checking filesystems
/dev/md1: Resize inode not valid.

/dev/md1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)

***An error occurred during the file system check
***Dropping you to a shell; the system will reboot
***when you leave the shell.
Give root password for maintenance
(or type Control-D to continue):


I enter my password and get
Code: [Select]
(Repair filesystem) 1 #
Any suggestions?
Ryan

Offline ldkeen

  • *
  • 405
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #21 on: March 06, 2007, 12:49:42 PM »
Ryan,
Check to make sure that /dev/md1 is mounted by typing mount at the prompt, then try:
(Repair filesystem) 1 #fsck /dev/md1
and see what happens?
Lloyd

Offline haymann

  • *
  • 212
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #22 on: March 06, 2007, 01:14:04 PM »
Idkeen, I thank you so much for your assistance! I was very nervous about most of this as I had no backup, but it seems that everything is still here!!

 :pint: This one is for you!
Ryan

Offline ldkeen

  • *
  • 405
  • +0/-0
RUSH SME Server 7 boot problem after power surge -- GRUB !
« Reply #23 on: March 06, 2007, 02:05:54 PM »
Ryan
That's great, Sorry I forgot to mention that grub-install takes along time.
BTW you asked how to access the usb disk from rescue mode, for future reference:
Boot sme rescue and mount the filesystem
Code: [Select]
#chroot /mnt/sysimage
#modprobe usb-storage
(check dmesg to find the device ID ie /dev/sdd etc)
#mknod /dev/sdd b 8 48
#mknod /dev/sdd1 b 8 49
#mknod /dev/sdd2 b 8 50
.... and so on

NOTE: The numbers are important. The first is always 8, the second starts at a multiple of 16
(ie sda is 0, sdb is 16, sdc is 32, sdd is 48 etc) and the numbered devices go up incrementally from there.
You should find your usb disk located in /media so mount it using the following:
Code: [Select]
#mount /media/CORSAIR (replace CORSAIR with your device name)
Lloyd