LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 11-01-2004, 01:53 PM   #16
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46

He posted it just a few messages back.
 
Old 11-01-2004, 03:21 PM   #17
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
yeah, but hopefully he made some changes between then and now. just so i can try to understand what's happening clearly, please tell me if any of the following statements are wrong:


you have two hard drives, hda and hdb
hda has 2 partitions on it, one with /windows and one with /data
hdb has mandrake on it (which includes a / and a /swap partition)
in /etc/lilo.conf under _global section_, boot = /dev/hdb
when you boot you get the LILO screen, where you choose between "windows" and "mandrake linux"
if you choose "mandrake linux" you boot into mandrake no problem
if you choose "windows" you get an error message saying no operating system found
when you tried to fix the MBR you got an error message
afterwards, when you booted you still got the LILO boot screen


oh, and a quick question. in your original post you said
Quote:
I set up my BIOS to boot to hdb because one of my friends said that I need to boot to the second drive which has linux on it
. what is the default boot order in your bios now?

if possible, could you please post the output of

fdisk -l /dev/hda
fdisk -l /dev/hdb
cat /etc/lilo.conf
cat /etc/fstab

that would be helpful.

Last edited by mcd; 11-01-2004 at 03:25 PM.
 
Old 11-01-2004, 03:40 PM   #18
eyeliner
Member
 
Registered: Aug 2004
Location: Near...
Distribution: Mandriva 2011.0
Posts: 60

Rep: Reputation: 15
Probably he shouldn't have messed with the BIOS's settings.

I never did it and all was working well.
Probably his lilo.conf is wrong...
But unless he posts it...
 
Old 11-01-2004, 03:51 PM   #19
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
probably lilo is installed to /dev/hdb, and the bios is booting that first, so the windows bootloader is being ingnored on /dev/hda.

but i don't really want to guess, it would be better to see the output of those files first.
 
Old 11-01-2004, 04:48 PM   #20
Sandalphon
LQ Newbie
 
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
guys, i hate to beat a dead horse here , but i am having the EXACT same problem,(http://www.linuxquestions.org/questi...hreadid=249805)
my lilo.conf is ok , ive checked a million sources, and i tried everything you guys have mentioned, i also tried installing winXP pro as a fresh install on my second drive only to find out windows won't even do a fresh install , this is some weird sh!t here.....i mean the exact same thing that has happend to this guy, is happening to me .........
 
Old 11-01-2004, 05:33 PM   #21
Skwirl
LQ Newbie
 
Registered: Sep 2004
Location: Michigan
Distribution: Mandrake 10.0
Posts: 13

Original Poster
Rep: Reputation: 0
LILO.CONF

# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

boot=/dev/hdb1
map=/boot/map
default="linux-p3-smp-64GB"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hdb1
initrd=/boot/initrd.img
append="devfs=mount acpi=ht splash=silent"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hdb1
initrd=/boot/initrd.img
append="devfs=mount splash=silent acpi=ht"
read-only
image=/boot/vmlinuz-i686-up-4GB
label="linux-i686-up-4GB"
root=/dev/hdb1
initrd=/boot/initrd-i686-up-4GB.img
append="devfs=mount acpi=ht splash=silent"
read-only
image=/boot/vmlinuz-p3-smp-64GB
label="linux-p3-smp-64GB"
root=/dev/hdb1
initrd=/boot/initrd-p3-smp-64GB.img
append="devfs=mount acpi=ht splash=silent"
read-only
image=/boot/vmlinuz-smp
label="linux-smp"
root=/dev/hdb1
initrd=/boot/initrd-smp.img
append="devfs=mount acpi=ht splash=silent"
read-only
image=/boot/vmlinuz-2.4.25-2mdk
label="2425-2"
root=/dev/hdb1
initrd=/boot/initrd-2.4.25-2mdk.img
append="devfs=mount acpi=ht splash=silent"
read-only
other=/dev/hda1
label="windows"
table=/dev/hda
other=/dev/fd0
label="floppy"
unsafe
image=/boot/vmlinuz-2.6.3-7mdk-i686-up-4GB
label="old_linux-nonfb"
root=/dev/hdb1
initrd=/boot/initrd-2.6.3-7mdk-i686-up-4GB.img
append="devfs=mount acpi=ht"
read-only
image=/boot/vmlinuz-2.6.3-7mdk
label="263-7"
root=/dev/hdb1
initrd=/boot/initrd-2.6.3-7mdk.img
append="devfs=mount acpi=ht splash=silent"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hdb1
initrd=/boot/initrd.img
append="failsafe splash=silent acpi=ht devfs=nomount"
read-only










FSTAB---------

/dev/hdb1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hdb6 /home ext3 defaults 1 2
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
/dev/hdd /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hda1 /mnt/win_c ntfs umask=0,nls=iso8859-1,ro 0 0
/dev/hda5 /mnt/win_d ntfs umask=0,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/hdb5 swap swap defaults 0 0




yes, i know i have superfluous kernels installed, but im leaving everything default until i get this figured out. when i select windows, i dont get operating system not found, i get a blinking underscore. i set up my bios to boot to hda, get lilo, select mandrake, and everything is fine, and yes im allowed to mess with my bios im a systems engineer for a computer company and a programmer in VB.NET and PHP lol. I think the problem is that I overwrote my MBR on hda with lilo, and then windows is too dumb to understand that it needs to write a new mbr and fix itself. when i run fixmbr, i dont get an error, it says it was successfully written. but i dont trust windows and its still not working, so my guess is that windows is f*cking dumb and doesnt realize what is going on. im going to use a program one of my co-workers recommended, which formats the whole hda (mbr and partitions), and reinstall windows. the program apparently writes 0's to the WHOLE drive. he said he had a similar problem and the program fixed it. wish me luck.
 
Old 11-01-2004, 06:00 PM   #22
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
ok, this is curious. you're lilo.conf had this as the first line:

Quote:
boot=/dev/hdb1

this means that when you run lilo, it will install it on the first partition of hdb - not the MBR. if your BIOS is set to boot from hda, you should never get to the lilo boot screen at all. you should (theoretically) either get the windows boot loader, or some sort of error/weird behavior. it might be worth triple-checking the BIOS to make sure that you're set to boot from the master IDE device, and then changing that line in lilo to read

boot=/dev/hda

then don't forget to run lilo! that will install lilo to the MBR of the first hard drive, which is the one being booted by the BIOS. as far as i can tell your entry for "windows" is ok. as a suggestion, if you don't want to remove those other kernel options, you might want to comment them out anyway, since it will at least make trouble-shooting easier. and if you've already tried these steps, my advice: try it again. it will take 5 minutes, which is far better than having to write 00's the the hard drive and reinstall. also, i find that if i'm more stubborn than my computer i usually win.
 
Old 11-01-2004, 06:11 PM   #23
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
ok, i've been doing a little more reading on this problem, and it appears to be pretty commong. i'm still working my way through the search results, i haven't found anything that seems to be a solution yet, although you might read the following discussion:

http://www.linuxforums.org/forum/top...tml&highlight=


i would check with fdisk like they did, to see if you have a "hidden ntfs" partition, and to find out which partitions are set to "bootable".


$ su
Password:
# fdisk /dev/hda

p <-- for print partition table


look for a * next to a partition, that means it's bootable. each partition should also have a type, ie 83 for linux native, 82 for linux swap. i can't remember offhand the number for ntfs, but there's a command to list all types. try 'h' for help.

anyway, check both your disks and look for irregularities. if you can, post the output here. meanwhile i'll keep reading.
 
Old 11-01-2004, 06:19 PM   #24
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
and another thread available here:

http://www.linux-egypt.org/archive/i...hp/t-3244.html

Quote:
to fix this problem you have to open the motherboard setup screen & goto the hard drive advanced options in the IDE options you will find the acsess mode as AUTO & that was the problem ,so to avoid the crash you just need to change the acsess mode to LBE

this i'm not so sure of...i wouldn't try it until someone else (who knows more than me) has weighed in with their opinion. the other suggestions in this thread may still be helpful though, in a general way.


Quote:
windows won't boot if
the partition is not primary
the partition is not marked as bootable
LBA (logical block addressing) is not defined in BIOS but defined in parition table [for example 0C -> FAT32 (LBA) ]
---
LILO won't boot if
linear is mentioned in lilo.conf
if LBA is not mentioned in lilo.conf while it's in BIOS
 
Old 11-01-2004, 06:45 PM   #25
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
another thought: are you sure your MBR isn't being protected by an anti-virus program? sometimes there's a setting in the BIOS that refuses to allow programs to write to the MBR. it's worth checking to see if you can find/change that. otherwise, i'm reading up on ways to examine the windows bootloader, but i'm not sure how much good that will do. i'm running out of ideas.
 
Old 11-01-2004, 08:40 PM   #26
Skwirl
LQ Newbie
 
Registered: Sep 2004
Location: Michigan
Distribution: Mandrake 10.0
Posts: 13

Original Poster
Rep: Reputation: 0
[root@tuxbox skwirl]# fdisk /dev/hda

The number of cylinders for this disk is set to 232581.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):
Command (m for help): p

Disk /dev/hda: 120.0 GB, 120034123776 bytes
16 heads, 63 sectors/track, 232581 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 16639 8385898+ 7 HPFS/NTFS
/dev/hda2 16639 232560 108824310 f W95 Ext'd (LBA)
/dev/hda5 16639 232560 108824278+ 7 HPFS/NTFS




also, BIOS a-v is turned off.
 
Old 11-01-2004, 09:39 PM   #27
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
What do you have on partition 2 and 3?
 
Old 11-01-2004, 10:36 PM   #28
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
ok, so you have one primary bootable ntfs partition which i suppose is C:, and a logical ntfs partition (hda5) which is probably D:. my guess is that your problem has to do with the whole LBA thing. this is the first i've really heard of it, so i don't _know_ what the solution is. i would, however, go through your BIOS and see if you can find an LBA setting. i'm assuming it's a toggle, if so try switching it and see if you can boot windows. you may also need to edit your /etc/lilo.conf file. anyway, do little research on LBA, and the answer is probably out there.


-opjose

you can only have a maximum of 4 primary partitions, 1-4. you can also create extended partitions, which can contain many logical partitions within them. when you create a logical partition, the numbering always starts at 5. so in this case, 2 and 3 don't really exist as partitions. the disk is broken into 2 separate parts, hda1 and hda5.
 
Old 11-01-2004, 11:09 PM   #29
opjose
Senior Member
 
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090

Rep: Reputation: 46
It's unlikely to be an LBA problem.

He was able to boot from the Windows installation CD and he had no trouble attempting to re-install Windows over itself.

This would have failed if the bios was misreporting the drive geometry.


That said, it could be a situation wherein the LBA state was toggled, putting the boot loader where it shouldn't be or overwriting the start of the first partition.

E.G. LBA set to "NORMAL" or "LBA" when Windows was installed, but then changed to AUTO, after which a lilo command was run.

If something like this is true, he is best off backing up (via a Bart type CD) then re-installing Windows after deleting and re-adding the existing Windows partitions.
 
Old 11-01-2004, 11:26 PM   #30
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
sorry if i was just captain obvious, with all that about partitions
 
  


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
Dual Boot WinXP/Mandrake aro_ron_chynn Mandriva 4 01-24-2005 11:13 AM
Dual Boot WinXP & Mandrake 10 darkjedi8359 Mandriva 7 01-15-2005 07:04 AM
Mandrake 10.0/ WinXP dual boot.. HedAche Mandriva 3 11-15-2004 12:26 PM
Mandrake 10 / WinXP dual boot install afireinside81 Linux - Newbie 5 07-01-2004 05:53 AM
WinXP Pro / Mandrake 9.2 Dual Boot X PsychoTron X Linux - Newbie 17 12-18-2003 02:34 PM

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

All times are GMT -5. The time now is 04:03 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