Re: [SLE] Restoring linux GRUB bootloader after Windows partition reinstall
"Hylton Conacher (ZR1HPC)" <hylton@global.co.za> writes:
Hi all,
I currently have a single machine with 3 HDD's namely: 1) 20Gb linux partitioned drive 2) 6.5Gb Win95 OS drive (my documents are sitting under /home on linux) 3) 7.5Gb linux native drive for backup of the hda's /home etc.
My Win95 install on hdb recently went bottoms up after several linux distro installs on hda. I would therefore like to reload Windows and the financial software I use (Quicken98) as I have not seen or found a linux alternative as yet.
Problem 1: Selecting Windows from the GRUB bootloader does not load Windows but gives chainloader errors. Therefore I will be booting from a Win95 boot disk to install Windows.Everything I think should be fine until I want to boot back into my preferred OS (linux).
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.
any pointers?
You should have given your exact partition table descriptions, but guessing at them I would suggest: grub-install /dev/hda This assumes you do not have a /boot partition on /dev/hda, if you do the command would be: grub-install --root-directory=/boot /dev/hda (It also assumes you have a valid /boot/grub/device.map, if not you need to look into the option --recheck) grub has a VERY complete info document. (So complete I cannot really blame you for not wading through it to find the answer:-)
Mark Gray wrote:
"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.
any pointers?
You should have given your exact partition table descriptions, but guessing at them I would suggest:
grub-install /dev/hdb
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
This assumes you do not have a /boot partition on /dev/hda, if you do the command would be:
grub-install --root-directory=/boot /dev/hda
(It also assumes you have a valid /boot/grub/device.map, if not you need to look into the option --recheck) 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
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.
Thankfully there is this list :) -- ======================================================================== Hylton Conacher - Registered Linux user # 229959 at http://counter.li.org Using SuSE 9.0 with KDE 3.1 ========================================================================
participants (2)
-
Hylton Conacher (ZR1HPC)
-
Mark Gray