LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-21-2005, 08:56 PM   #1
Quickdraw
Member
 
Registered: Dec 2003
Location: NY
Distribution: Slackware
Posts: 41

Rep: Reputation: 16
Need a little help with dual boot problem


Hey all

Currently i have three HD's, two Sata 120's which are in software raid 0 running windows 2k, and i have and IDE 30g which is running slackware 10-current, normally in the past i would just enter the bios and change the startup boot disk to which ever os i wanted to go into.
My question is.....is their anyway i can get lilo to dual boot the two? the controller is nForce4. I was thinking it may be possible to use the Ntloader to dual boot the two, that way i don't have to get slackware to see the array....but i would like to use lilo instead, anyone know if this is possible?

Thanks
 
Old 09-21-2005, 09:26 PM   #2
heraklez
LQ Newbie
 
Registered: May 2005
Location: Peru
Distribution: Slackware
Posts: 26

Rep: Reputation: 15
Try to use Grub, is great!!! I have 3 operating systems on mi machine(win 98, win xp, Slackware).
 
Old 09-22-2005, 05:39 AM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Have been avoiding RAID so far because many Linux may have have a problem to recognise a Sata, let alone a RAID.

Suggest to do a

fdisk -l

in root terminal in Slackware to see if your Win2k partition shows up.

Slackware needs Sata.i kernel to recognise Sata disks. If your Slackware shows up the Win2k partition, say sda1 then you can add these lines in /etc/lilo.conf for booting Win2k

other=/dev/sda1
label=My_Win2k

You need to revalidate Lilo every time you amend its lilo.conf by typing

lilo

after editing and saving the file.

Using NTLDR may be the only option if Slackware can't make out where your Win2k partition is. Many Linux could see your RAID as two separate disks.

Installing Grub just passing the bug from Lilo to Grub.

Last edited by saikee; 09-22-2005 at 05:41 AM.
 
Old 09-22-2005, 07:57 AM   #4
DyeKid
Member
 
Registered: Apr 2003
Distribution: Slackware 10.2 (AMD64 Desktop, HP ZV5120US & IBM T20 Laptops) Suse 10.1 (IBM T23 Laptop)
Posts: 58

Rep: Reputation: 15
I think that NTLoader is going to be your best option
Most likely.

If you follow the dual boot FAQ for NT and Linux you should be able to boot both OSes without entering BIOS.
http://www.tldp.org/HOWTO/Linux+NT-Loader.html

In general, you will need to grab the bootsector from the slack distro and make it available (copy it) to your windows c:\

Not knowing your exact disk setup, it's hard to give exact directions on the process.

The advantage of this method is that you will not have to worry about copying over the MBR if you ever have the need to reinstall windows.

General directions follow:

Boot into Slack
#dd if=/dev/hdx# of=/root/bootsect.lnx bs=1 count=512
where the x and # in /dev/hdx# are the correct drive and partition where lilo is installed.

That should create the file named bootsect.lnx with a size of 512b in the /root directory.
Find it and copy it to removeable media that windows and linux both can read. ( I use USB Memory stick, but have used floppys, and CD-RW also)

Once copied, boot into windows, and copy bootsect.lnx to c:\
Then you must have rw access to boot.ini (a hidden system file located at c:\).
It looks something like this:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
c:\bootsect.lnx = "Slackware Linux"


just add the last line and set your system to boot from your windows RAID.
On reboot, it should give you the option to boot both windows and slackware.
 
Old 09-22-2005, 12:52 PM   #5
Quickdraw
Member
 
Registered: Dec 2003
Location: NY
Distribution: Slackware
Posts: 41

Original Poster
Rep: Reputation: 16
Hey guys thanks for your reply, i just got done compiling and installing a custom 2.6 kernel so i think they best option now that i got the kernel the way i like it is to follow DyeKid's advice and to setup the dual boot using the NTloader. right now i'm stuck at work so won't be able to finish it until i get home. thanks again.
 
Old 03-04-2006, 07:02 AM   #6
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Rep: Reputation: 30
Quote:
Originally Posted by saikee
Have been avoiding RAID so far because many Linux may have have a problem to recognise a Sata, let alone a RAID.

Suggest to do a

fdisk -l

in root terminal in Slackware to see if your Win2k partition shows up.

Slackware needs Sata.i kernel to recognise Sata disks. If your Slackware shows up the Win2k partition, say sda1 then you can add these lines in /etc/lilo.conf for booting Win2k

other=/dev/sda1
label=My_Win2k

You need to revalidate Lilo every time you amend its lilo.conf by typing

lilo

after editing and saving the file.

Using NTLDR may be the only option if Slackware can't make out where your Win2k partition is. Many Linux could see your RAID as two separate disks.

Installing Grub just passing the bug from Lilo to Grub.
Great - thanks for that!

I have a dual SATA disk system which also has a 120GB IDE onto which I wangt to install Linux - /dev/sdb1 has the MBR.

Try as I might, I couldn't get the Slack 10.1 install to recognise my SATA disks - until I chanced upon this post and used sata.i as the kernel (I didn't know this option existed!).

Thanks!
 
Old 03-06-2006, 12:51 PM   #7
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Rep: Reputation: 30
Quote:
Originally Posted by DyeKid
Boot into Slack
#dd if=/dev/hdx# of=/root/bootsect.lnx bs=1 count=512
where the x and # in /dev/hdx# are the correct drive and partition where lilo is installed.
The command is: dd if=/dev/hdxx of=/root/bootsect.lnx bs=512 count=1.

I just did this for my laptop. It's working great, except that I cannot get rid of the lilo red menu. Even after I commented out the necessary lines to get rid of it, then running /sbin/lilo -v. Maybe I should post the output of /sbin/lilo -v here to see if you guys catch something I missed.

Last edited by hrp2171; 03-07-2006 at 12:17 PM.
 
Old 03-07-2006, 12:17 PM   #8
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Rep: Reputation: 30
DOH!!! One gotcha about using XP bootloader: Don't forget to update the bootsect.lnx file after making changes to LILO. That's why I was not able to get rid of the LILO menu. DOH!!!
 
  


Reply



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
Dual Boot Problem ziggy1621 SUSE / openSUSE 2 09-07-2005 05:09 PM
Need help fixing boot problem on Ubuntu/WinXp dual-boot Ay-Karamba! Linux - General 5 09-06-2005 09:20 PM
Problem with dual boot/dual drive setup Norab Linux - Hardware 10 08-29-2005 03:13 PM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
problem with Installing red hat linux dual boot(/boot < for 1024 cylinders ) praveenb Linux - Newbie 2 02-13-2004 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:55 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
Open Source Consulting | Domain Registration