LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 11-13-2010, 08:17 PM   #1
tlawren300
LQ Newbie
 
Registered: Nov 2010
Posts: 12

Rep: Reputation: 0
dual boot problem


I am having some trouble setting up a dual boot with Win XP and Slackware 13.1. Lilo lists both Linux and Windows, but when I select Windows, all I get is a black screen. I have two hard drives, sda1 and sdb1. I first installed Windows on sdb1 (it is a smaller, older drive). I then installed Slackware on sda1 and selected to install Lilo on the MBR. I'm guessing that by doing this, I wrote over the Windows information that was already there. Could this be my problem? I feel like this should be an easy fix, but I just don't know where to start in order to fix it.

If it helps, here is the end of my lilo.conf file.

# Windows bootable partition config begins
other = /dev/sdb1
label = Windows
table = /dev/sdb
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda1
label = Linux
read-only
# Linux bootable partition config ends

Thanks to those that respond in advance.
 
Old 11-13-2010, 08:39 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,539

Rep: Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496Reputation: 2496
Quote:
installed Slackware on sda1 and selected to install Lilo on the MBR. I'm guessing that by doing this, I wrote over the Windows information that was already there Could this be my problem?
Yes, part of it at least. This usually happens in the reverse, installing windows automatically overwrites the mbr without asking or notifying the user. At least you were notified. Another part of the problem is that windows is not on the first drive so it needs to be mapped. I haven't used Lilo for years so don't know how to do this. You could try searching "boot windows from second drive with lilo" or something similar.
 
Old 11-13-2010, 09:10 PM   #3
tlawren300
LQ Newbie
 
Registered: Nov 2010
Posts: 12

Original Poster
Rep: Reputation: 0
I tried mapping the drives, and now I get an error

NTLDR missing... press ctrl alt delete to restart

I guess that is at least a step in some direction, because before I just got a black screen.

Could I fix the MBR using the Windows CD and then re-install Lilo (or maybe Grub) somewhere else? Or, if I fixed the MBR, would I have to re-install Lilo?
 
Old 11-13-2010, 11:45 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Probably just a matter of getting the correct partition. Sounds like you picked the recovery partition. Try /dev/sdb2 before messing with other installs.
 
Old 11-14-2010, 12:26 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Does lilo have os-prober,?
If so "sudo os-prober"
then whatever update you would do with lilo.
 
Old 11-14-2010, 12:26 AM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Does lilo have os-prober,?
If so "sudo os-prober"
then whatever update you would do with lilo.
 
Old 11-14-2010, 07:02 AM   #7
hughetorrance
Member
 
Registered: Aug 2009
Location: London North West
Distribution: x86_64 Slack 13.37 current : +others
Posts: 459

Rep: Reputation: 59
What happens when you boot to the other drive,I mean you have two sda1 and sdb1...using the F number at first boot select the drive to boot from,on my N01 box I use F11 on my N02 box I use F8,if you have,nt got an F number you can change the boot order in the BIOS.

While you are working on the problem you can discover other ways to boot an OS...for example Smart Boot manager on the UBCD will boot your windoze and from the 13.1 DVD you can use pkgtool and create a boot stick for Slack.

There are several ways to do most things... ! I wish I knew more of them. LOL
 
Old 11-14-2010, 08:23 AM   #8
arief karfianto
LQ Newbie
 
Registered: Dec 2009
Location: Indonesia
Distribution: Redhat, Fedora, CentOS, Suse, OpenSuSE, Slackware, Onebase, Ubuntu, Mandriva, Mepis, IPCop, Mint
Posts: 14

Rep: Reputation: 1
can you send the output of these commands:

cat /etc/fstab

dmesg | grep sda

dmesg | grep sdb

I'm familiar with Slackware, I hope can I help you.
 
Old 11-14-2010, 08:29 AM   #9
tlawren300
LQ Newbie
 
Registered: Nov 2010
Posts: 12

Original Poster
Rep: Reputation: 0
I do have the right partition. I tried changing /dev/sdb1 to /dev/sdb2 in lilo.conf and when I ran lilo I got a fatal error about not being able to load /dev/sb2.

fdisk -l gives...

Device Boot Start End Blocks Id System
/dev/sda1 * 1 38305 307684881 83 Linux
/dev/sda2 38306 38913 4883760 5 Extended
/dev/sda5 38306 38913 4883728+ 82 Linux swap

Device Boot Start End Blocks Id System
/dev/sdb1 1 30400 244187968+ 7 HPFS/NTFS

If I just reinstalled everything, and put Windows on the first drive and Slack on the second, could that fix my problem? I would physically switch the drives first, because I want the Slack drive to be the bigger drive. I don't want to do this though, because it would take a good part of my day.
 
Old 11-14-2010, 08:31 AM   #10
tlawren300
LQ Newbie
 
Registered: Nov 2010
Posts: 12

Original Poster
Rep: Reputation: 0
bash-4.1# cat /etc/fstab
/dev/sda5 swap swap defaults 0 0
/dev/sda1 / ext4 defaults 1 1
#/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

bash-4.1# dmesg | grep sda
sd 0:0:0:0: [sda] 625140335 512-byte logical blocks: (320 GB/298 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda:
sda1 sda2 <
sda5
sd 0:0:0:0: [sda] Attached SCSI disk
EXT3-fs (sda1): error: couldn't mount because of unsupported optional features (240)
EXT2-fs (sda1): error: couldn't mount because of unsupported optional features (240)
EXT4-fs (sda1): mounted filesystem with ordered data mode
Adding 4883720k swap on /dev/sda5. Priority:-1 extents:1 across:4883720k

bash-4.1# dmesg | grep sdb
sd 2:0:0:0: [sdb] 488395055 512-byte logical blocks: (250 GB/232 GiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdb:
sdb1
sd 2:0:0:0: [sdb] Attached SCSI disk
 
Old 11-14-2010, 08:45 AM   #11
arief karfianto
LQ Newbie
 
Registered: Dec 2009
Location: Indonesia
Distribution: Redhat, Fedora, CentOS, Suse, OpenSuSE, Slackware, Onebase, Ubuntu, Mandriva, Mepis, IPCop, Mint
Posts: 14

Rep: Reputation: 1
Well, do you have a Windows installer CD?

After mapping you said that NTLDR is missing..

These steps usually works for me:

-If you have one, try to boot from windows CD,
-select repair mode,
-change direcory (cd) to CD ROM drive
-and then copy the NTLDR, maybe in i386 directory. cp NTLDR c:

and then exit and reboot
 
Old 11-14-2010, 08:48 AM   #12
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Try this

change

other = /dev/sdb1

to

other = chainloader (hd1,0)+1
 
Old 11-14-2010, 08:51 AM   #13
arief karfianto
LQ Newbie
 
Registered: Dec 2009
Location: Indonesia
Distribution: Redhat, Fedora, CentOS, Suse, OpenSuSE, Slackware, Onebase, Ubuntu, Mandriva, Mepis, IPCop, Mint
Posts: 14

Rep: Reputation: 1
Quote:
Originally Posted by AwesomeMachine View Post
Try this

change

other = /dev/sdb1

to

other = chainloader (hd1,0)+1
Yes.. you should try this first..
 
Old 11-14-2010, 09:01 AM   #14
tlawren300
LQ Newbie
 
Registered: Nov 2010
Posts: 12

Original Poster
Rep: Reputation: 0
I changed other = /dev/sdb1 to other = chainloader (hd1,0)+1 and ran /sbin/lilo -v and got

Fatal: open chainloader(hd1,0)+1: No such file or directory
 
Old 11-14-2010, 09:12 AM   #15
arief karfianto
LQ Newbie
 
Registered: Dec 2009
Location: Indonesia
Distribution: Redhat, Fedora, CentOS, Suse, OpenSuSE, Slackware, Onebase, Ubuntu, Mandriva, Mepis, IPCop, Mint
Posts: 14

Rep: Reputation: 1
What about

rootnoverify (hd1,0)
makeactive
chainloader +1
 
  


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
[SOLVED] Can't select XP OS in a dual boot with Isadora at boot screen (grub problem) faby1321 Linux Mint 10 08-10-2010 06:07 PM
dual boot dual drive XP and FC6 problem arjay Fedora 2 05-20-2007 11:38 AM
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
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 - Newbie

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