LinuxQuestions.org
Visit Jeremy's Blog.
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 03-05-2006, 07:51 PM   #1
raffigee
Member
 
Registered: Feb 2006
Distribution: Backtrack
Posts: 41

Rep: Reputation: 15
problem with backtrack


Here's my problem:

my laptop already has windows xp installed.

I created a new primary ext2 partition using partition magic.

i installed backtrack and works fine.

but the problem is that i can't choose to boot from windows anymore.

the only way i can acces windows is to insert a win98 cd rom and rewrite the Mbr (fdisk /mbr)

how can i make it so i get the option of choosing

i'd love to be able to have 2 OS on my comp.

thanks for any help
 
Old 03-05-2006, 08:11 PM   #2
raffigee
Member
 
Registered: Feb 2006
Distribution: Backtrack
Posts: 41

Original Poster
Rep: Reputation: 15
i have been reading that for a multiboot Linux/Windows, (say windows is installed first). When installing Linux it's supposed to ask you either you want to install Lilo or grub but backtrack (installatioin from live-cd) doesn't ask me nothing.

Does this mean there is no way of installing Backtrack and windows for multiboot ?????
 
Old 03-05-2006, 08:39 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
I haven't used backtrack, but if it's installed to your hard disk you should be able to install either lilo or grub manually. There's a lilo howto at http://tldp.org/HOWTO/LILO.html and grub info at http://www.gnu.org/software/grub/ which may be helpful.
 
Old 03-05-2006, 09:57 PM   #4
raffigee
Member
 
Registered: Feb 2006
Distribution: Backtrack
Posts: 41

Original Poster
Rep: Reputation: 15
i downloaded grub 2 to my usb pen stick but have no clus at all on how to install it.

p.s. this will be my very 1st installation in Linux environnement.
 
Old 03-06-2006, 01:45 AM   #5
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
If the machine just boots into Back|Track after you install it, all you need to do is edit the lilo.conf file to enable booting to Windows.

Get back to the point where the system boots directly into Back|Track, and then post the /etc/lilo.conf file here so we can tell you what needs to be changed.
 
Old 03-06-2006, 01:33 PM   #6
raffigee
Member
 
Registered: Feb 2006
Distribution: Backtrack
Posts: 41

Original Poster
Rep: Reputation: 15
ok so here's what's in lilo.conf:

boot=/dev/hda
prompt
timeout=20
bitmap=/boot/splash.bmp
change-rules
reset
vga=normal
image=/boot/vmlinuz
root=current
label=slax
read-write
 
Old 03-06-2006, 01:52 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
If your Windows install is on /dev/hda1 the following should work. You'll need to re-run the lilo command after changing /etc/lilo.conf
Code:
other = /dev/hda1
  label = windows
  table = /dev/hda
 
Old 03-06-2006, 02:07 PM   #8
raffigee
Member
 
Registered: Feb 2006
Distribution: Backtrack
Posts: 41

Original Poster
Rep: Reputation: 15
if i understand correctly, I have to edit this lilo.conf file everytime i want to switch from one OS to another ??
 
Old 03-06-2006, 02:16 PM   #9
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
No, what this does is add another item to the lilo menu. When you boot the PC, you be able to select which OS to start into. You can select the OS to boot by moving up and down through the menu withthe arrow keys, or by typing the label text (e.g. windows) and pressing enter.

Last edited by gilead; 03-06-2006 at 02:17 PM.
 
Old 03-06-2006, 02:18 PM   #10
raffigee
Member
 
Registered: Feb 2006
Distribution: Backtrack
Posts: 41

Original Poster
Rep: Reputation: 15
ok cool thank you very much. I will try this tonight.
 
Old 03-07-2006, 10:16 AM   #11
raffigee
Member
 
Registered: Feb 2006
Distribution: Backtrack
Posts: 41

Original Poster
Rep: Reputation: 15
ok tried what you suggested but system still boots directly in Linux.

Here's my lilo.conf file:

boot=/dev/hda
prompt
timeout=20
bitmap=/boot/splash.bmp
change-rules
reset
vga=normal
image=/boot/vmlinuz
root=current
label=slax
read-write
other=/dev/hda2
label=windows
table=/dev/hda

where's my mistake ??
 
Old 03-07-2006, 02:09 PM   #12
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
So you don't even get a menu for the 2 second timeout period you've set (20 tenths of a second)? Did you re-run the lilo command after modifying /etc/lilo.conf so the boot record could be updated?

Here's what I thought your /etc/lilo.conf file would look like (you might need to modify the root entry). I've also changed the mount mode to read-only so that any file system checks can be run. Usually the boot process changes this to read-write, I'm assuming that backtrack will also:
Code:
boot = /dev/hda
prompt
timeout = 20
bitmap = /boot/splash.bmp
#change-rules         <= This is for changing partition-type numbers
#reset                <= This goes with the change-rules command
vga = normal
image = /boot/vmlinuz
  root = /dev/hda9    <= Change this to your root partition
  label = slax
  read-only
other = /dev/hda2
  label = windows
  table = /dev/hda
 
Old 03-07-2006, 03:43 PM   #13
raffigee
Member
 
Registered: Feb 2006
Distribution: Backtrack
Posts: 41

Original Poster
Rep: Reputation: 15
no i did not run the lilo command. All i did is edit the éetcélilo.conf and saved the file. P.s. what is the command to run the lilo command ?

Also i don't get the part where you say hda9 ?? I already had windows installed on the system so shouldn't it be
windows hda1 and linux hda2 ??

i thought it would be more simple than this. Maybe i just have to run the lilo command for it to work. I'll try to find out what the command is and i'll try it again tonight.
 
Old 03-07-2006, 05:05 PM   #14
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Try running lilo as root and see if that works. The suggested changes are only for the case where it doesn't work (if it ain't broke... ). What I was saying in the suggested config was that using root = current might be a cause of problems if your version of lilo wasn't using it properly.
 
Old 03-08-2006, 08:58 AM   #15
raffigee
Member
 
Registered: Feb 2006
Distribution: Backtrack
Posts: 41

Original Poster
Rep: Reputation: 15
I ran lilo and still didn't work.

Then I changed only the word current to hda2 (linux) and left hda1 (windows) and ran lilo as root.

Got an error message: "Number not valid: hda2"

So the problem is with the word current. Why doesn't accept the word hda2 ??

thanks for your help btw i making some progress at least
 
  


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 Backtrack hopesfall Linux - Distributions 3 01-20-2008 10:43 PM
Backtrack Wireless Network gelf1979 Linux - Wireless Networking 0 03-03-2006 12:08 PM
perl problem? apache problem? cgi problem? WorldBuilder Linux - Software 1 09-17-2003 08:45 PM


All times are GMT -5. The time now is 10:37 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration