LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-14-2010, 09:47 PM   #1
surgeon
LQ Newbie
 
Registered: Jan 2010
Distribution: Slack, Arch, FreeBSD, LFS
Posts: 4

Rep: Reputation: 0
LILO config & dual booting with PRE. Win 7 64 Ultimate


first post !

appreciate the help in advance,

Current setup includes slackware 13 64 bit, running off an hp hdx16 laptop. In the process of setting up a dual boot scenario with a previously installed version of Windows 7.

In my attempt to copy a 512-bs .BIN image of my LILO Configuration on /dev/sda4, I am under the impression I must first copy that .bin file to media recognizable by Windows and install it in it's /dev/sda1 boot partition, before configuring bcdedit.

My setup appears as follows :
# fdisk -l

/dev/sda1 * 1 13 (Blocks: 102400) Id (7) System (HPFS/NTFS)
^ under the impression this is a boot partition created by the Windows 7 installation initially. fdisk -l states :
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 50998 (Blocks: 409533440) Id (7) System (HPDS/NTFS)
^ Windows 7 partition
/dev/sda3 50998 51520 (Blocks: 4197536) Id(82) System (Linux Swap)
^ Linux Swap
/dev/sda4 51521 60801 (Blocks: 74549632+) Id(83) System (Linux)
^ Slackware partition , LILO is installed here @ the root position.

I've run the following command to copy the first sector of my Linux partition to a .bin file, using : dd if=/dev/sda4 of=/tmp/linux.bin bs=512 count=1

# dmesg | grep 'scsi' reveals:

sd 0:0:0:0 Attached scsi generic sg0 type 0
sd 1:0:0:0 Attached scsi generic sg1 type 5

# dmesg | grep 'hd' reveals:

Registered led device: hp::hddprotect

Another I ran into was, setting the default boot flag to /dev/sda4 via fdisk, runs fine, configuring /etc/lilo.conf to recognize the Windows boot entry as either on /dev/sda1 or /dev/sda2 results in : BOOTMGR not found * Use CTRL-ALT-DEL to reboot. What gives ?


Edit :

Still working on the LILO booting Windows 7 boot partition properly. Continuously getting BOOTMGR missing. What I've learned however, is that on Windows 7 Ultimate, this "100 MB" partition handles Bitlocker encryption, the bootloader and WinRE (the basic files for recovering Windows 7). Unfortunately, it does not seem that LILO is able to boot such a partition. So it looks like I must resort to having BCDEDIT (the default boot loader for Windows) handle the situation.

09/04/10 Update :
http://www.justlinux.com/forum/archi.../t-150601.html
Should assist most people experiencing similar errors/situations.

All the best.

~ surgeon

Last edited by surgeon; 09-04-2010 at 08:26 AM. Reason: spelling errors & update
 
Old 02-15-2010, 02:59 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!


From your post it's not quite clear to me what you're trying to
achieve with the bin file from sda4 ...


I never tried to set-up Win7 in a dual-boot environment, but with
older versions of windows what you normally do it to put lilo in
the MBR of the device, and choose the OS from there.

A minimalistic lilo.conf that should work for you would be something
like:
Code:
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/sda

default = Linux

# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda4
  label = Linux
  read-only
# Linux bootable partition config ends
# Windows bootable partition config begins
other=/dev/sda1
  label=Win7
  boot-as=0x80    # must be C:
# Windows bootable partition config ends

Cheers,
Tink

P.S.: As always - this is untested, and may cause damage to your installation;
use at your own risk. Doesn't take care of graphics or other features.
 
  


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
Installing dual Boot 98/Linux - WONT 'LILO' Dual Boot !? L1nux3d Linux - Laptop and Netbook 15 02-11-2006 06:36 AM
Using LILO to boot CDROM. Sijaiko Linux - Software 1 01-25-2005 09:57 AM
LILO on system with BIOS boot options C,A,CDROM svar Linux - General 12 11-01-2004 09:30 AM
Howto get lilo to boot a cdrom? kinasz Linux - General 2 05-17-2004 02:46 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 06:00 PM


All times are GMT -5. The time now is 06:43 PM.

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