Re: [SLE] Restoring linux GRUB bootloader after Windows partition reinstall
"Hylton Conacher (ZR1HPC)" <hylton@global.co.za> writes:
Hi all,
I have a Suse 9.0 boot disk and know I could boot from that but I do not know the command to isue to redetect and reinstall the bootloader. I can remember under LiLo it was issuing the cmd /sbin/lilo but I do not know for GRUB.
[snip]
Fstab posted below: /dev/hdb1 / ext3 defaults 1 1 /dev/hdb9 /boot ext3 defaults 1 2 /dev/hdc2 /data1 auto noauto,user 0 0 /dev/hdc7 /data2 auto noauto,user 0 0 /dev/hdc9 /data3 auto noauto,user 0 0 /dev/hdd1 /data4 auto noauto,user 0 0 /dev/hdb8 /home ext3 defaults 1 2 /dev/hdb10 /opt ext3 defaults 1 2 /dev/hdb6 /usr ext3 defaults 1 2 /dev/hdb7 /var ext3 defaults 1 2 /dev/hdc1 /windows/C vfat defaults 0 0 /dev/hdc5 /windows/D vfat defaults 0 0 /dev/hdc6 /windows/E vfat defaults 0 0 /dev/hdb5 swap swap pri=42 0 0 /dev/hdc8 swap swap pri=42 0 0 devpts /dev/pts devpts mode=0620,gid=5 0 0 proc /proc proc defaults 0 0 usbdevfs /proc/bus/usb usbdevfs noauto 0 0 /dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0 /dev/fd0 /media/floppy auto noauto,user,sync 0 0
[snip]
My bootloader is installed in the MBR and I have a /boot partition. Do I still install it in the /boot partition issuing the command after booting from stiffy:
grub-install --root-directory=/boot /dev/hdb
No: grub-install --root-directory=/boot /dev/hda is what you need. (The /dev/hda IS the mbr). If you have added any disks or partitions since you last installed grub, you need to use: grub-install --root-directory=/boot --recheck /dev/hda (I have never had to use --recheck, so my fingers are crossed here :-) See the grub-install node in info grub
grub has a VERY complete info document. (So complete I cannot really blame you for not wading through it to find the answer:-)
I have to disagree here. I have read both the man and info pages and still do not know what to do in my situation where a boot partition is available and the boot loader is installed in the MBR on installing the OS.
But that is what I meant -- there is so much information in the info pages that one is overwhelmed when searching for the details related to ones own problem :-) (At least I know I was when I went searching for how to boot the diagnostics partition on my laptop -- but the information is there, unlike the majority of KDE programs where the only documentation is the source code.)
Mark Gray wrote: Sorry for the delay but to get final closure on this topic I need to clarify the actions that need to be taken. > "Hylton Conacher (ZR1HPC)" <hylton@global.co.za> originally wrote: > >>>>Hi all, >>>> >>>>I have a Suse 9.0 boot disk and know I could boot from that but I do >>>>not know the command to isue to redetect and reinstall the bootloader. I >>>>can remember under LiLo it was issuing the cmd /sbin/lilo but I do not >>>>know for GRUB. > > [snip] [fstab snip] >>My bootloader is installed in the MBR and I have a /boot partition. Do I >>still install it in the /boot partition issuing the command after >>booting from stiffy: ie >> >> grub-install --root-directory=/boot /dev/hdb > > > No: > > grub-install --root-directory=/boot /dev/hda > > is what you need. (The /dev/hda IS the mbr). So the procedure would be, when I get the Windows CD's: 1) Boot from my Windows bootdisk 2) Install the sorry assed Windows and Quicken 3) Reboot with my SuSE bootdisk 4) Login as root and issue the command: grub-install --root-directory=/boot /dev/hda to get my linuc and its bootloader back again > grub-install --root-directory=/boot --recheck /dev/hda After reading both the --recheck option under both the man and info pages on grub-install, I have decided it is unnecessary for this OS reloading action. Perhaps though it would fix the GRUB bootloader to load Windows, as opposed to chainloader errors, when the Windows option is chosen. Thoughts? -- ======================================================================== Hylton Conacher - Licenced ex-Windows user (apart from Quicken) Registered Linux user # 229959 at http://counter.li.org Using SuSE 9.0 with KDE 3.1 ========================================================================
participants (2)
-
Hylton Conacher (ZR1HPC)
-
Mark Gray