LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dual boot problem (https://www.linuxquestions.org/questions/linux-newbie-8/dual-boot-problem-844122/)

tlawren300 11-13-2010 08:17 PM

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.

yancek 11-13-2010 08:39 PM

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.

tlawren300 11-13-2010 09:10 PM

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?

syg00 11-13-2010 11:45 PM

Probably just a matter of getting the correct partition. Sounds like you picked the recovery partition. Try /dev/sdb2 before messing with other installs.

EDDY1 11-14-2010 12:26 AM

Does lilo have os-prober,?
If so "sudo os-prober"
then whatever update you would do with lilo.

EDDY1 11-14-2010 12:26 AM

Does lilo have os-prober,?
If so "sudo os-prober"
then whatever update you would do with lilo.

hughetorrance 11-14-2010 07:02 AM

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

arief karfianto 11-14-2010 08:23 AM

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.

tlawren300 11-14-2010 08:29 AM

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.

tlawren300 11-14-2010 08:31 AM

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

arief karfianto 11-14-2010 08:45 AM

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

AwesomeMachine 11-14-2010 08:48 AM

Try this

change

other = /dev/sdb1

to

other = chainloader (hd1,0)+1

arief karfianto 11-14-2010 08:51 AM

Quote:

Originally Posted by AwesomeMachine (Post 4158437)
Try this

change

other = /dev/sdb1

to

other = chainloader (hd1,0)+1

Yes.. you should try this first..

tlawren300 11-14-2010 09:01 AM

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

arief karfianto 11-14-2010 09:12 AM

What about

rootnoverify (hd1,0)
makeactive
chainloader +1


All times are GMT -5. The time now is 02:29 PM.