Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-16-2009, 03:12 AM   #1
Senior Member
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,726

Rep: Reputation: 187Reputation: 187
No Windows 7 Bootloader after Linux sw RAID-1 install

Hi all,

forgive me, but I am pretty sure, this has been asked and solved before. But after searching the forums here and the web I have found tons of contributions describing similar problems, just not exactly what I am looking for. If I just have overlooked something, I't be grateful for a pointer.

Here's my problem.

I set up a new machine with two identical SATA harddiscs.

1. Partitioning

sda1 swap
sda2 Linux RAID Autodetect
sda3 NTFS
sda4 Linux RAID Autodetect
and exactly the same for /dev/sdb.

2. Installation of Windows 7
After installing Windows 7 to /dev/sda3, it worked quite well.

3. Software RAID-1, LVM and LUKS
Not sure, how relevant this information is for my problem, but just in case it I include it. The software RAID partitions are:
/dev/md0: /dev/sda2, /dev/sdb2
/dev/md1: /dev/sda4, /dev/sdb4
The NTFS partitions are not part of any array.
Then I set up the RAID, encrypted /dev/md1 with LUKS, and set up logical volumes using LVM. /dev/cryptvg/root is now mounted under /, and /dev/cryptvg/home is mounted under /home. I guess this is all irrelevant for my problem, but I am not sure, so I mention it just for competeness.

4. Installation of Slackware 12.2 and Multi-boot LILO setup
Finally I installed Slackware 12.2 to the system, set up /etc/lilo.conf for multiboot of Win and Lin, and installed it to the MBR of /dev/md1. The "Other" section points to /dev/sda3, which is the system partition of my previous Windows 7 install (i. e. drive "C:").

Result: Linux good, Windows lost bootloader
Slackwware 12.2 boots properly. But selecting "Windows" in the LILO boot menu gets me an error message: "No Bootloader".

I hope someone can give me a clue, what to look for. Here is my setup.

# LILO configuration file
# generated by 'liloconfig'
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=1"
boot = /dev/md0
raid-extra-boot = mbr-only


# VESA framebuffer console @ 1024x768x256
vga = 773


# Linux bootable partition config begins
image = /boot/vmlinuz
  initrd = /boot/initrd.gz
  root = /dev/cryptvg/root
  label = Linux
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/sda3
  label = Windows
#  table = /dev/sda
# Windows bootable partition config ends
/dev/sda1        swap             swap        defaults         0   0
/dev/sdb1        swap             swap        defaults         0   0
/dev/cryptvg/root /                ext3        defaults         1   1
/dev/cryptvg/home /home            ext3        defaults         1   2
/dev/md0         /boot            ext2        defaults         1   2
/dev/sda3        /windows/C       ntfs-3g     umask=077        1   0
/dev/sdb3        /windows/D       ntfs-3g     umask=000        1   0
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
/dev/sda2, which is part of /dev/md0, is marked as "bootable". Could this be the problem?

I wouldn't mind to re-install Windows 7, but I wouldn't want to affect my Linux install with this, if possible. Is there a way, and would it help, at all?

Thanks for any hints and tips that point me in the right direction.

Old 05-16-2009, 06:13 AM   #2
Senior Member
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,726

Original Poster
Rep: Reputation: 187Reputation: 187
Meanwhile I tried to boot Windows after flagging /dev/sda2 as the only bootable partition. Didn't help...

Old 05-16-2009, 10:12 AM   #3
Senior Member
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,726

Original Poster
Rep: Reputation: 187Reputation: 187

Recipe telegram:
Re-install Window
Boot with Slackware installation DVD
Login as root, when prompted
Start RAID and open LUKS device
mount root volume to /mnt
chroot /mnt
mount /proc, /sys and /boot
run lilo

Reboot, and all was fine.

This thread can be regarded as CLOSED.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
Howto install linux with BIOS RAID 0, dual boot with windows? jbmigel Linux - Newbie 5 10-28-2005 03:52 AM
Windows + (2 x Linux) = Bootloader? timelord726 Linux - General 6 08-13-2004 12:28 PM
Oops, I let my new windows install overwrite my FC2 bootloader on the MBR... mono Fedora 1 08-03-2004 08:02 PM
Adding Linux to Windows XP bootloader justiceisblind Linux - Newbie 6 01-25-2004 04:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration