Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

windows and gentoo installation problems [now partly solved]

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
13 posts • Page 1 of 1
Author
Message
blkdragon
n00b
n00b
Posts: 50
Joined: Mon Nov 20, 2006 5:18 am
Contact:
Contact blkdragon
Website

windows and gentoo installation problems [now partly solved]

  • Quote

Post by blkdragon » Sun Nov 26, 2006 9:38 am

hi!

im trying to dual-boot windows 98 with Gentoo, and keep running into problems...

my partition table looks like this:

/dev/hda1= 512Mb, Windows 98 Partition. Gentoo identifies it as a W95 FAT partition.
/dev/hda2= ~5GB, Linux / partition.
/dev/hda3= ~500Mb, Linux Swap.

every time i install windows 98 onto /dev/hda1, it wipes my MBR and i get:

Code: Select all

Disk I/O error. Replace Disk and press any key to continue...
and then i have to reinstall grub onto /dev/hda.

then i formatted my /dev/hda1 partition from Gentoo using

Code: Select all

mkfs.vfat -F 32 /dev/hda1
, and reinstalled windows onto it. then when i try and boot windows from grub i get:

Code: Select all

Disk I/O error. Replace Disk and press any key to continue...
the process repeats itself.

In the grub menu, i enabled Windows 98 as a bootable option, with the options:

Code: Select all

rootnoverify (hd0,0)
makeactive
chainloader +1
boot
is this a problem with the grub options for windows, or something about the partitioning that isn't right?[/code]
Last edited by blkdragon on Wed Nov 29, 2006 2:48 am, edited 2 times in total.
Lovin' Choc Cake...

Toshiba Portege 7020CT
PII, 366Mhz, 192Mb RAM, 30GB HDD, XP & Gentoo

Hewlett Packard 8833
PIII, 1Ghz, 512Mb RAM, 80+40Gb HDD, XP & Gentoo

Non-Branded Computer
P4, 1.6Ghz, 512Mb RAM, 160Gb HDD, XP & Gentoo
Top
Kaste
Guru
Guru
User avatar
Posts: 546
Joined: Wed Dec 21, 2005 7:37 am
Location: /home Sweet /home

  • Quote

Post by Kaste » Sun Nov 26, 2006 9:51 am

Hi blkdragon
The boot command is only neccessary if you boot from within grub, i.e. starting it up and then typing in everything by hand.

Code: Select all

rootnoverify (hd0,0) 
makeactive 
chainloader +1
Did you actually try booting into windows after reinstalling grub and before formatting /dev/hda1? It is expectable for windows to break the mbr when installing and to have to reinstall grub. I would have put ms win on the disk first and then linux, but this way it should work just as well you just have to reinstall grub whenever windows ruins it.
Top
SirYes
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Sun Jan 15, 2006 10:14 am
Location: Lodz, Poland
Contact:
Contact SirYes
Website

  • Quote

Post by SirYes » Sun Nov 26, 2006 11:59 am

Is there any chance that the Windows' partition is not marked as bootable? What does this show you on your machine?

Code: Select all

# fdisk -l /dev/hda
BTW. It's perfectly doable to setup a dual boot between Windows and Linux. I did it many times. Currently it runs fine on six computers (mine and family's) I have access to. :)
My blog: In search for ultimate programming language
Top
blkdragon
n00b
n00b
Posts: 50
Joined: Mon Nov 20, 2006 5:18 am
Contact:
Contact blkdragon
Website

  • Quote

Post by blkdragon » Sun Nov 26, 2006 9:42 pm

hi! thanks for the replies, and when i type

Code: Select all

fdisk -l /dev/hda
i get /dev/hda1 as being maked by the *, for the bootable flag.

as for the boot option, i edited out the "boot" part in /boot/grub/grub.conf and it still dosent work.

im still stuck for ideas.
Lovin' Choc Cake...

Toshiba Portege 7020CT
PII, 366Mhz, 192Mb RAM, 30GB HDD, XP & Gentoo

Hewlett Packard 8833
PIII, 1Ghz, 512Mb RAM, 80+40Gb HDD, XP & Gentoo

Non-Branded Computer
P4, 1.6Ghz, 512Mb RAM, 160Gb HDD, XP & Gentoo
Top
SirYes
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Sun Jan 15, 2006 10:14 am
Location: Lodz, Poland
Contact:
Contact SirYes
Website

  • Quote

Post by SirYes » Sun Nov 26, 2006 10:06 pm

I read carefully once again your first post and I'd like to ask you for more information.
  1. You've stated that when you install *only* Windows 98 onto the hard drive, and you run it in a "normal" way you get:

    Code: Select all

    Disk I/O error. Replace Disk and press any key to continue...
    Is this correct?
  2. Then you install Linux and setup grub as a boot loader. Then you configure it to start Windows and get:

    Code: Select all

    Disk I/O error. Replace Disk and press any key to continue...
    again? Do you see a trend here? I do. Grub tries its best to start your Windows. But it looks like the Windows installation is broken, and grub just repeats the process.
My advice:
Install Windows and get it to start properly, without I/O errors, okay? Then we'll guide you to get a working dual boot with Linux in that configuration.

Deal? ;)
My blog: In search for ultimate programming language
Top
blkdragon
n00b
n00b
Posts: 50
Joined: Mon Nov 20, 2006 5:18 am
Contact:
Contact blkdragon
Website

  • Quote

Post by blkdragon » Sun Nov 26, 2006 10:49 pm

SirYes wrote:You've stated that when you install *only* Windows 98 onto the hard drive, and you run it in a "normal" way you get:

Code: Select all

Disk I/O error. Replace Disk and press any key to continue...
Is this correct?
Unfortunately, i installed Gentoo before Windows. The installation CD that i have has worked fine previously on other machines that i have.
SirYes wrote:Then you install Linux and setup grub as a boot loader. Then you configure it to start Windows and get:

Code: Select all

Disk I/O error. Replace Disk and press any key to continue...
again? Do you see a trend here? I do. Grub tries its best to start your Windows. But it looks like the Windows installation is broken, and grub just repeats the process.
Again, I installed Gentoo first. Gentoo boots fine from Grub, and after i install windows to /dev/hda1 THATS when i start having problems with Grub not being able to boot "the windows partition" and so on.

Maybe I should have added:

After i install windows, my installation of Gentoo and everything is TOTALLY broken. No grub, no nothing, just

Code: Select all

Disk I/O error. Replace Disk and press any key to continue...
I reinstall grub from the LiveCD using

Code: Select all

mount /dev/hda2 /mnt/gentoo
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
grep -v rootfs /proc/mounts > /etc/mtab
grub-install /dev/hda
This fixes my MBR, and allows me to boot from the HDD, into Gentoo.

Refomatted /dev/hda1 with:

Code: Select all

mkfs.vfat -F 32 /dev/hda1
Reinstalled Windows onto it.

Try to boot into windows from Grub, and *surprise surprise*

Code: Select all

Disk I/O Error. Replace Disk and press any key to continue...
AH!! this is really fustrating.

thanks for you help.
Lovin' Choc Cake...

Toshiba Portege 7020CT
PII, 366Mhz, 192Mb RAM, 30GB HDD, XP & Gentoo

Hewlett Packard 8833
PIII, 1Ghz, 512Mb RAM, 80+40Gb HDD, XP & Gentoo

Non-Branded Computer
P4, 1.6Ghz, 512Mb RAM, 160Gb HDD, XP & Gentoo
Top
SirYes
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Sun Jan 15, 2006 10:14 am
Location: Lodz, Poland
Contact:
Contact SirYes
Website

  • Quote

Post by SirYes » Mon Nov 27, 2006 12:25 am

blkdragon wrote:Unfortunately, i installed Gentoo before Windows. The installation CD that i have has worked fine previously on other machines that i have.
Oops, too swift conclusions, I apologize.
Gentoo boots fine from Grub, and after i install windows to /dev/hda1 THATS when i start having problems with Grub not being able to boot "the windows partition" and so on.

Maybe I should have added:

After i install windows, my installation of Gentoo and everything is TOTALLY broken. No grub, no nothing, just

Code: Select all

Disk I/O error. Replace Disk and press any key to continue...
Try to boot into windows from Grub, and *surprise surprise*

Code: Select all

Disk I/O Error. Replace Disk and press any key to continue...
AH!! this is really fustrating.
Really, this Windows installation didn't went right. Your description confirms that. :( (Only Windows -> I/O Error, Grub -> Windows -> I/O Error -- this is the same! Grub boots your Windows correctly, really! But it's Windows that refuses to start). It's expected that Windows should be able to start normally first, then you set up a dual boot with Linux.

Looks like something is very wrong with the FAT32 partition you have there. Try using Windows 98 start floppy and execute "chkdsk /f c:" to be 100% sure that the partition is free of errors. Maybe "sys a: c:" or "fdisk /mbr" will be necessary. Maybe even a reinstall.

Just look:
http://www.experts-exchange.com/Hardwar ... 39605.html
http://www.tek-tips.com/viewthread.cfm? ... 490&page=7
http://www.dewassoc.com/kbase/hard_driv ... sector.htm
http://home.att.net/~rayknights/pc_boot/w98bboot.htm
http://users.bigpond.net.au/hermanzone/ ... k_IO_error

Alternatively, you can also run "fdisk -l /dev/hda" from under Linux to obtain exact numbers of cylinders for your Linux partitions. Write them down. Then *delete* the hda2 and hda3 partitions and leave only the FAT32 partition. Having a written copy of cylinders' numbers you'll be able to boot from Linux LiveCD and recreate back the partitions later.
This will leave exactly one partition on disk, the one which Windows 98 should use for its installation. Then try to reinstall or repair Windows so it boots correctly. After that, boot from Linux CD and restore the other partitions. Mount them and reinstall Grub (you've written excellent exact steps to set it back, BTW!!!) All *should* be fine then.

The above boils down to one thing, really. The Windows installation you're trying to put onto the first partition just isn't right somehow. Do your dirty work and make it run correctly, then come back here so we'll be able to help you with Linux things. You see, we don't really like to fix problems with the other OS.... :?
My blog: In search for ultimate programming language
Top
blkdragon
n00b
n00b
Posts: 50
Joined: Mon Nov 20, 2006 5:18 am
Contact:
Contact blkdragon
Website

  • Quote

Post by blkdragon » Mon Nov 27, 2006 3:13 am

thanks for your help.

ran

Code: Select all

dosfsck /dev/hda
from Gentoo, and then reformatted (again) with

Code: Select all

mkdosfs /dev/hda1
ran

Code: Select all

dosfsck /dev/hda1
again, and this time it showed

Code: Select all

/dev/hda1: 0 Files, 0/6583 Clusters
tried to reinstall windows (on a freshly formatted partition) but this time it showed:
Setup cannot create files on your startup drive and cannot setup Windows 98
so, onto method 2: delete the partitions.

ran

Code: Select all

fdisk -l /dev/hda
and it came back with:

Code: Select all

/dev/hda1: 1-62, 62 Cylinders total.
/dev/hda2: 63-758, 696 Cylinders total.
/dev/hda3: 759-789, 31 Cylinders total.
went into cfdisk, re-did the partitions. wrote the new/old partitions to disk, rebooted into the Windows 98 Setup, did the whole "Welcome to Microsoft" thing, setup finished, rebooted, and *ta da*

Code: Select all

Disk I/O Error. Replace disk and press any key to continue...
The way i see it, i have 2 options:

a) give up

or,

b) Reformat everything, and install windows on a clean hard drive.

Of course, option B entails reinstalling Gentoo as well, but you know. It's a learning process.
Lovin' Choc Cake...

Toshiba Portege 7020CT
PII, 366Mhz, 192Mb RAM, 30GB HDD, XP & Gentoo

Hewlett Packard 8833
PIII, 1Ghz, 512Mb RAM, 80+40Gb HDD, XP & Gentoo

Non-Branded Computer
P4, 1.6Ghz, 512Mb RAM, 160Gb HDD, XP & Gentoo
Top
SirYes
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Sun Jan 15, 2006 10:14 am
Location: Lodz, Poland
Contact:
Contact SirYes
Website

  • Quote

Post by SirYes » Mon Nov 27, 2006 8:12 am

It's a learning process.
Oh, yes it is. But it looks like that you too have more problems installing Windows than it's worth it. I was (unsuccessfully) trying to install Windows XP on a SATA drive after Gentoo was already running smoothly. I was wondering: why the heck am I trying to install this "Windows virus", while Linux already runs? In the end I needed to use a more recent install disk (with SP1 on it), because Windows didn't know about SATA drives! [digression end]

Three more things:
  • If you boot from Windows CD-ROM you should see the option to start command line instead of installer. In MS-DOS you have the "format" command, try this instead of formatting the partition using Linux tools.
  • Make sure that the Windows' partition starts at the beginning of disk. If that's not the case, find a LiveCD with gparted or qtparted and try to move Linux partitions to the end of the disk.
  • You haven't posted the output of "fdisk -l" ;)
My blog: In search for ultimate programming language
Top
blkdragon
n00b
n00b
Posts: 50
Joined: Mon Nov 20, 2006 5:18 am
Contact:
Contact blkdragon
Website

  • Quote

Post by blkdragon » Mon Nov 27, 2006 8:31 am

SirYes wrote:Make sure that the Windows' partition starts at the beginning of disk. If that's not the case, find a LiveCD with gparted or qtparted and try to move Linux partitions to the end of the disk.
I already did that.
SirYes wrote:You haven't posted the output of "fdisk -l" ;)
I did, cept i simplified it a bit:

Code: Select all

/dev/hda1: 1-62, 62 Cylinders total.
/dev/hda2: 63-758, 696 Cylinders total.
/dev/hda3: 759-789, 31 Cylinders total.
Lovin' Choc Cake...

Toshiba Portege 7020CT
PII, 366Mhz, 192Mb RAM, 30GB HDD, XP & Gentoo

Hewlett Packard 8833
PIII, 1Ghz, 512Mb RAM, 80+40Gb HDD, XP & Gentoo

Non-Branded Computer
P4, 1.6Ghz, 512Mb RAM, 160Gb HDD, XP & Gentoo
Top
SirYes
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Sun Jan 15, 2006 10:14 am
Location: Lodz, Poland
Contact:
Contact SirYes
Website

  • Quote

Post by SirYes » Mon Nov 27, 2006 10:03 am

blkdragon wrote:
SirYes wrote:You haven't posted the output of "fdisk -l" ;)
I did, cept i simplified it a bit:

Code: Select all

/dev/hda1: 1-62, 62 Cylinders total.
/dev/hda2: 63-758, 696 Cylinders total.
/dev/hda3: 759-789, 31 Cylinders total.
Right, I overlooked that (expected some other format), sorry!

Good luck with your multiboot machine! :)
My blog: In search for ultimate programming language
Top
blkdragon
n00b
n00b
Posts: 50
Joined: Mon Nov 20, 2006 5:18 am
Contact:
Contact blkdragon
Website

  • Quote

Post by blkdragon » Wed Nov 29, 2006 2:48 am

Update:

Installed Windows. Works fine.

Installed Gentoo. Also works fine, albeit no GUI, (yet).

I've been having some problems with Grub, though.

My /boot/grub/grub.conf:

Code: Select all

timeout 5

# By default, boot the first entry.
default 0

splashimage=(hd0,1)/boot/grub/splash.xpm.gz

# For booting GNU/Linux
title  Gentoo Linux
root (hd0,1)
kernel /boot/gentoo-2.6.18 root=/dev/hda2 video=vesafb-tng:mtrr2,ywrap,mode:1024x768@60 lapic
#initrd /initrd.img

# For booting Windows NT or Windows95
title Windows 98
rootnoverify (hd0,0)
makeactive
chainloader  +1

Problem is, on boot, there is no selector, as in, i cant select with OS i want to boot. It just boots straight into Gentoo.

update2:

actually, i can boot into windows, by hitting the down arrow and pressing enter. no selector screen, just a lot of guess work.

update3: fixed.

fact: i need to learn to type more accurately.

my /boot/grub/grub.conf b4 i got the selector:

Code: Select all

splashimage=(hd0,1) /boot/grub/splash.xpm.gz
and then after:

Code: Select all

splashimage=(hd0,1)/boot/grub/splash.xpm.gz
ah lol.
Lovin' Choc Cake...

Toshiba Portege 7020CT
PII, 366Mhz, 192Mb RAM, 30GB HDD, XP & Gentoo

Hewlett Packard 8833
PIII, 1Ghz, 512Mb RAM, 80+40Gb HDD, XP & Gentoo

Non-Branded Computer
P4, 1.6Ghz, 512Mb RAM, 160Gb HDD, XP & Gentoo
Top
SirYes
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Sun Jan 15, 2006 10:14 am
Location: Lodz, Poland
Contact:
Contact SirYes
Website

  • Quote

Post by SirYes » Wed Nov 29, 2006 10:22 am

Glad you did it!! Super cool!! :mrgreen:

And while we are at the grub splash topic. Check out these resources:
  • http://www.schultz-net.dk/downloads/grub/gentoo.xpm.gz
  • [topic=490488]topic #490488[/topic]
  • [post=3540510]post #3540510[/post]
Personally, I use the last one.

Cheers!
My blog: In search for ultimate programming language
Top
Post Reply

13 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy