Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Initially I had set up Slackware 13.37 and Windows 7 Home Premium dual boot. After upgrading to Windows 7 Ultimate, the dual-boot window does not show anymore so I cannot choose to boot Slackware.

Is there a way to fix this without deleting the Slackware partition and reinstalling?

share|improve this question

3 Answers 3

up vote 3 down vote accepted

You need to reinstall GRUB, you can do this from a chroot. Boot into a live CD, chroot into your Linux system and issue grub-install.

Something like the following should work (assuming /dev/sda2 is / and /dev/sda1 is /boot, and you want to install to the MBR on /dev/sda):

mount /dev/sda2 /mnt
mount /dev/sda1 /mnt/boot
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys
chroot /mnt /bin/bash
grub-install /dev/sda

Or if you're using LILO, use lilo /dev/sda instead.

share|improve this answer
1  
IIRC Slackware still uses LILO, so the way forward would be to call /sbin/lilo instead of grub-install. –  Ulrich Schwarz Jan 30 '13 at 10:05
    
@UlrichSchwarz Not a Slackware user, so I wouldn't know. Updated with alternative, thanks! –  Chris Down Jan 30 '13 at 10:15

No, you don't delete the linux partition.

The easiest way is setup grub4dos in your Windows 7 installation, or use an external media, do the chroot stuff, and restore the grub from your slack installation.

share|improve this answer

The best way to get back your Linux distros is by simply using the Fedora DVD that you installed with previously.

It hardly takes 1 minute to reconfigure your bootloader.

Then you get your dual boot options with default selected as Linux.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.