LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 175Reputation: 175
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
 
Old 05-16-2009, 07:13 AM   #2
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,716

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

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

Original Poster
Rep: Reputation: 175Reputation: 175
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
 
  


Reply


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 10:55 PM
Howto install linux with BIOS RAID 0, dual boot with windows? jbmigel Linux - Newbie 5 10-28-2005 04:52 AM
Windows + (2 x Linux) = Bootloader? timelord726 Linux - General 6 08-13-2004 01:28 PM
Oops, I let my new windows install overwrite my FC2 bootloader on the MBR... mono Fedora 1 08-03-2004 09:02 PM
Adding Linux to Windows XP bootloader justiceisblind Linux - Newbie 6 01-25-2004 05:05 PM


All times are GMT -5. The time now is 10:24 AM.

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