LinuxQuestions.org
Visit Jeremy's Blog.
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 09-09-2004, 09:35 PM   #1
dustfinger
LQ Newbie
 
Registered: Sep 2004
Distribution: gentoo
Posts: 10

Rep: Reputation: 0
lilo won't boot windows.


I know there are lots of posts like this all over the web. I know because I have been reading them for many days now. The closest I have found to exactally my problem is at this URL. Assome spaces to be dots. This is my first post so I can't post URLs however I think I should be allowed to post links to other threads in this forum
www linuxquestions org/questions/showthread php?s=&threadid=223533&highlight=lilo+windows+wont+boot

However their solution did not work for me.

Here are my partitions:
Quote:
Disk /dev/hdc: 58140 cylinders, 16 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Warning: The partition table looks like it was made
for C/H/S=*/255/63 (instead of 58140/16/63).
For this listing I'll assume that geometry.
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hdc1 * 0+ 8 9- 72261 7 HPFS/NTFS
/dev/hdc2 9 133 125 1004062+ 82 Linux swap
/dev/hdc3 134 3517 3384 27181980 83 Linux
/dev/hdc4 3518 3647 130 1044225 f W95 Ext'd (LBA)
Here is my fstab:
Quote:
/dev/hdc1 /boot HPFS/NTFS noauto,noatime 1 2
/dev/hdc3 / ext3 noatime 0 1
/dev/hdc2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
Here is my lilo.conf file as it stands right now.
Code:
boot=/dev/hdc                           #Install LILO in the MBR
#map=/boot/map
#install=/boot/boot.1600
prompt                                  #Give the user the chance to select another section
timeout=50                              #Wait 5 (five) seconds before booting the default section
default=gentoo                          #When the timeout has passed, boot the "gentoo" section
vga=788                                 #Frame buffer

image=/boot/kernel-2.6.7-gentoo-r9
        label=gentoo
        read-only
        root=/dev/hdc3

other=/dev/hdc4
        #boot-as = 0x80
        label=windows
        #table=/dev/hdc
        map-drive=0x80 to=0x81
        map-drive=0x81 to=0x80
Before I installed gentoo I had been running Fedora Core 1 and at that time I could boot into windows. I have not touched my windows partition since then and I have nuked the Fedora partition and formated and installed gentoo. Now lilo will not load windows. It just hangs after saying "Loading Windows".

Note: I tried to install grub to see if that would work better, but when I emerged grub the emerge was not completed since my boot partition was not mounted. When I tried to mount the boot partition...
Quote:
root # mount /boot
mount: fs type HPFS/NTFS not supported by kernel
So I probably just have to add an option to my kernel config to make my boot directory mountable, however I don't see that being the cause of my windows booting problem with lilo. Any suggestions?

dustfinger.

Last edited by dustfinger; 09-09-2004 at 09:38 PM.
 
Old 09-09-2004, 11:19 PM   #2
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Why is your boot partition show HPFS/NTFS as it's partition type? Run fdisk /dev/hdc, then use t for type and change it to 83, then w to save the changes.

Then try to mount your boot partition the long way, i.e:
mount -t ext3 /dev/hdc1 /boot
keep changing the 'ext3' part to different filesystems until it succeeds, and then replace the HPFS/NTFS line in your fstab with the right filesystem. This may help get grub installed, and your problem might be solved.
 
Old 09-09-2004, 11:40 PM   #3
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Do you only have single drive on your system?
 
Old 09-10-2004, 01:48 AM   #4
dustfinger
LQ Newbie
 
Registered: Sep 2004
Distribution: gentoo
Posts: 10

Original Poster
Rep: Reputation: 0
CroMagnon,

Currently I am running a full system update and then going to bed for the night. I will take your advice and try changing the fs on boot tomorrow. When I change the fs should I back up my boot dir? I am going to just to be on the safe side.

Demonbane,

I only have one drive and it is /dev/hdc.

Good night and thank you for anyone that can help. I notice that when I checked to see what needed to be updated on my system lilo was among the list. Perhaps the update will solve the problem?

dustfinger.
 
Old 09-10-2004, 02:01 AM   #5
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
I thought you couldn't mount your boot partition? Do you have a boot partition and files in /boot on your root partition?

Backing up is always wise, but I don't know how you're going to do a backup if you can't get to the files...
 
Old 09-10-2004, 02:09 AM   #6
dustfinger
LQ Newbie
 
Registered: Sep 2004
Distribution: gentoo
Posts: 10

Original Poster
Rep: Reputation: 0
CroMagnon,

Haah... Still have not gone to sleep. I had better soon though.
Quote:
I thought you couldn't mount your boot partition?
When I emerge grub it tells me that it cannot mount the boot partition and so the emerge fails. It says that it has important files that it needs to write into that partition. I can access those files. So it does seem that I am mounted. Strangely when I try to mount /boot it says that the kernel cannot read the fs. I would have expected it to say something like "Already mounted boot". So the whole thing is very odd.

Okay. I am sickly tired now so I will post back again tomorrow. Goodnight!
 
Old 09-10-2004, 02:32 AM   #7
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
OK, stop checking your mail and sleep!

Before you go changing that partition, can you paste the output of 'mount'? It may be that you didn't set up a separate boot partition, which would mean the /boot line in fstab doesn't belong there at all. The output from mount will clear this up.
 
Old 09-10-2004, 06:21 AM   #8
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Change /dev/hdc4 to /dev/hdc1 in your lilo config. Gentoo installer probably got confused from your FAT32 and NTFS partitions, so it used the windows partition that it knows best, FAT32.

Mount NTFS as readonly to be on the safe side. NTFS is still experimental when comes to writing to it athough they should have fix it by now.

I would not change the partition type or you can screw up you Windows partition.
 
Old 09-10-2004, 08:11 AM   #9
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
hoi,

first of all this is strange: /dev/hdc1 * 0+ 8 9- 72261 7 HPFS/NTFS ? . This partition is in your fstab as the /boot part,
but being NTFS, how did you manage to install a linux kernel etc. on it ?

second strange thing : windows should be in /dev/hdc4 ,acc. to lilo.conf.but :
" /dev/hdc4 3518 3647 130 1044225 f W95 Ext'd (LBA) " tells this is an extended part. and there are no
logical stations listed ( shoud be /hdc5 and evt. more ) , so where is windows located ?
( if it is on a logical station, lilo.conf should read /dev/hdc5 )

Furthermore i read that windows generally is not happy, running from an logical station.

egag
 
Old 09-10-2004, 07:31 PM   #10
dustfinger
LQ Newbie
 
Registered: Sep 2004
Distribution: gentoo
Posts: 10

Original Poster
Rep: Reputation: 0
CroMagnon,

Here is the output from mount.
Code:
bash-2.05b# mount
/dev/hdc3 on / type ext3 (rw,noatime)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw)

Thank you for replying Electro and egag. I am actually late for a family dinner that I forgot about - Oops! So I had better go, but when I return I will consider your replies. Be back much later tonight.

dustfinger.
 
Old 09-11-2004, 04:35 AM   #11
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
I think electro has explained what happened - the installer screwed up figuring our which partition was which. Damned if I know how that /boot line got in your fstab though - comment it out and try the grub install - you don't have a separate /boot partition, so with nothing to confuse it in the fstab, it should install. Grub is a much better bootloader anyway, so try that out. If you need to know which partition windows boots from, it's likely hdc1.

Don't change the type of the first partition. Although it won't damage the partition if you have, it's unlikely to work properly until you change it back.
 
Old 09-11-2004, 05:53 PM   #12
dustfinger
LQ Newbie
 
Registered: Sep 2004
Distribution: gentoo
Posts: 10

Original Poster
Rep: Reputation: 0
Electro,

I changed my lilo.conf to:

Snippet.
Code:
other=/dev/hdc1
        label=windows
        read-only
        table=/dev/hdc
I commented out /boot from /etc/fstab

When I run /sbin/lilo:
Quote:
root # /sbin/lilo
Warning: COMPACT may conflict with LBA32 on some systems
Added gentoo *
Fatal: First sector of /dev/hdc1 doesn't have a valid boot signature
The only one that seems to satisfy lilo is /dev/hdc4

dustfinger.
 
Old 09-11-2004, 08:46 PM   #13
CroMagnon
Member
 
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
Did you try removing the /boot line in fstab and emerging grub again? If you can get grub installed, you can use the grub prompt to try booting the windows system until you find one that works.

If it were me, though, I'd find another hard drive, back up all my data, wipe that disk clean, and start from scratch - the paritioning looks quite bizarre, and is probably the cause of most of your problems. If you do decide to do that, be sure to install windows first.
 
Old 09-12-2004, 12:20 AM   #14
dustfinger
LQ Newbie
 
Registered: Sep 2004
Distribution: gentoo
Posts: 10

Original Poster
Rep: Reputation: 0
CroMagnon,

I am doing that now. Should /proc/mounts and /etc/mtab be the same? I have...

Code:
root # cat /proc/mounts 
rootfs / rootfs rw 0 0
/dev/root / ext3 rw,noatime 0 0
none /dev devfs rw 0 0
none /proc proc rw,nodiratime 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
none /dev/shm tmpfs rw 0 0
none /proc/bus/usb usbfs rw 0 0

root # cat /etc/mtab
/dev/hdc3 / ext3 rw,noatime 0 0
none /dev devfs rw 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /dev/pts devpts rw 0 0
none /dev/shm tmpfs rw 0 0
none /proc/bus/usb usbfs rw 0 0
dustfinger.
 
Old 09-12-2004, 01:12 AM   #15
dustfinger
LQ Newbie
 
Registered: Sep 2004
Distribution: gentoo
Posts: 10

Original Poster
Rep: Reputation: 0
Okay I left my /proc/mounts and /etc/mtab as they are and I configured my /boot/grub/grub.conf file. I then installed grub. I did not remove lilo. grub installed with no errors so I rebooted the system. All I saw was a cursor flashing at the top of a screen so I hit enter. Then I had some sort of boot error message, however I could not read it because my text was rendered in strips . For instance the letter F would be in two or three virtical slices. Basically everything was very hard to read. I hit another key, I think the enter key, and I was at the grub boot menu I could tell. STill all the text was rendered in strips. I tried booting up in grub and I got the same error. booting windows also gave me an error. Now I want to get lilo back. So I stuck in my gentoo live cd and chrooted into the environment. When I type /sbin/lilo

Quote:
Warning: COMPACT may conflict with LBA32 on some systems.
Warning: '/proc/partitions' does not match '/dev' directory structure.
Name change: '/dev/ide/host0/but1/target0/lun0/disc'-> '/dev/hdc'
The kernel was compiled with DEVFS_FS, but 'devfs=mount' was omitted as a kernel command-line boot parameter; hence, the '/dev' directory structure does not reflect DEVFS_FS device names.
Here is my grub.conf
Code:
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
tite=Gentoo Linux 2.6.7-r9
root = (hd0,0)
kernel /kernel-2.6.7-gentoo-r9 root=/dev/hdc3 vga=788

title=Windows
rootnoverify (hd0,5)
makeactive
chainloader +1

GREAT I see one mistake. rootnoverify (hd0,5). Should probably be rootnoverify (hd0,3) since windows is on /dev/hdc4 correct?

I came down with a very bad throat infection so I am going to hit the hay early tonight. To be on the safe side I am just going to leave my system sitting where it is, still chrooted from the livecd. Perhaps all I need to do is remove grub, but I am feeling to lousy to try something like that tonight.

Thanks again to everyone who have donated their time for my aid. I do appreciate it and tomorrow when I get up I will do some research on this before I go messing around some more.

dustfinger.
 
  


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
Help! LILO can't boot windows! i.of.the.storm Slackware 1 09-03-2005 06:27 PM
Lilo won't boot into windows intuxicator Debian 1 03-18-2005 08:59 PM
lilo boot screen wont show windows to boot into!! please help Fear58 Linux - General 3 07-10-2004 10:55 PM
lilo won't boot windows Quickdraw Slackware 10 02-06-2004 08:26 PM
Lilo won't boot windows Reno Linux - Newbie 1 05-10-2001 10:52 AM


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