LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   No Windows 7 Bootloader after Linux sw RAID-1 install (https://www.linuxquestions.org/questions/linux-newbie-8/no-windows-7-bootloader-after-linux-sw-raid-1-install-726364/)

gargamel 05-16-2009 03:12 AM

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

Code:

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:
Code:

/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.

/etc/lilo.conf.
Code:

# 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
  read-only
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/sda3
  label = Windows
#  table = /dev/sda
# Windows bootable partition config ends

/etc/fstab
Code:

/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.

gargamel

gargamel 05-16-2009 06:13 AM

Meanwhile I tried to boot Windows after flagging /dev/sda2 as the only bootable partition. Didn't help...

gargamel

gargamel 05-16-2009 10:12 AM

SOLVED


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.

gargamel


All times are GMT -5. The time now is 09:21 PM.