|Subject:||Re: fixing the "grub loading stage1.5" hanging error|
|Date:||Tue, 30 Oct 2007 07:04:39 -0600|
To answer your question, no, we are not umounting before installing grub, and yes, we are syncing after installing grub.
Here is the process that we are following to install grub.
It used to be a lot simpler, but we keep adding changes in an attempt to resolve the problem we are seeing with the corrupt stage2 file.
For example, the extra “setup (hd0,0)” was added.
However unlikely, we even added the extra sleep at the end, in case journaling was the issue.
After installing grub, the system is rebooted and it goes through the natural shutdown process, including unmounting the disk.
if [ -d /boot/grub -a -d /usr/local/lib/grub/i386-pc ] ; then
mv /boot/grub /boot/grub.old
mkdir -p /boot/grub
cp -f /usr/local/lib/grub/i386-pc/* /boot/grub/
cp -f /boot/grub.old/menu.lst /boot/grub/
echo "Can not find grub stage files and such that we need for installing..."
/usr/local/sbin/grub --batch --device-map=/boot/grub/device.map --config-file=/boot/grub/menu.lst <<EOT
if [ -d /boot/grub.old ] ; then
rm -rf /boot/grub.old
# Wait for journaling on ext3.
|[Prev in Thread]||Current Thread||[Next in Thread]|