grub can't load windows - error 12: Invalid Device Requested (hd0,9)
Good morning, friends! I have windows 98se at /dev/hda9 (it is called unit F: by Windows). As we know windows 98 put its initialization files on C: (IO.SYS, MSDOS.SYS, etc.), but I formated C: to NTFS in order to install Windows XP. Grub is restored and SuSE, Slackware and Windows XP can boot, but Windows 98 couldn't. I don't want to use C: in FAT, could I use GRUB to boot Windows 98 from /dev/hda9 (F:), directly? My Grub file contains these lines for Win98 partition: title Windows 98SE rootnoverify (hd0,8) makeactive chainloader +1 The following error occurs: Error 12: Invalid Device Requested (hd0,8) Is there any chance to maintain Windows 98 bootable on /dev/hda9 (F:)? Do I need the erased files from unit C:? Thanks for any help. adagilson
Adagilson Batista Bispo da Silva wrote:
I have windows 98se at /dev/hda9 (it is called unit F: by Windows). As we know windows 98 put its initialization files on C: (IO.SYS, MSDOS.SYS, etc.), but I formated C: to NTFS in order to install Windows XP.
Big mistake. Until your C: is restored to FAT12/FAT16/FAT32, your /dev/hda9 system cannot be started from that HD. There's no need for NTFS on C: when you're putting XP on a logical partition, or even if putting it directly on C: for that matter. When you use NTFS, you complicate your access to doze data while booted to Linux. C: can be as little as about 40M and still be used to boot a choice from XP, 98 & W2K if you want, each on logical partition(s) coexisting with as many Linux installations as you can manage to keep track of, subject of course to the maximum partition limit of your HD.
Grub is restored and SuSE, Slackware and Windows XP can boot, but Windows 98 couldn't.
I don't want to use C: in FAT, could I use GRUB to boot Windows 98 from /dev/hda9 (F:), directly?
I've never heard of any such thing. 98 is DOS, and DOS simply doesn't know anything about booting except from A: or C:. What could work is a DOS boot floppy with proper configuration files to boot from A: but run from your hda9, much like many do to boot doze off the HD but use a floppy for Grub and Linux. I've done it, but your hda9 may need to start below logical cylinder 1024 for it to work for you. The floppy will need to be Win98SE bootable, with IO.SYS, MSDOS.SYS and COMMAND.COM. Also you'll want an AUTOEXEC.BAT to set COMSPEC to a HD location of COMMAND.COM, and may want a CONFIG.SYS for driver(s).
My Grub file contains these lines for Win98 partition:
title Windows 98SE rootnoverify (hd0,8) makeactive chainloader +1
The following error occurs:
Error 12: Invalid Device Requested (hd0,8)
Your 98SE doesn't start from (hd0,8), it only runs from there, just like Linux using a separate partition for /boot.
Is there any chance to maintain Windows 98 bootable on /dev/hda9 (F:)?
None. But see above. Also, you might create some other primary in the system and use Grub to map, hide, unhide, makeactive and so forth so that the correct "C:" is set for it when you choose it off the Grub menu.
Do I need the erased files from unit C:?
They won't do you any good unless 98 thinks they're on A: or C:. -- "Blessed is the nation whose God is the Lord." Psalm 33:12 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/partitioningindex.html
Thanks for replying, brother! Felix Miata escreveu:
Adagilson Batista Bispo da Silva wrote:
I have windows 98se at /dev/hda9 (it is called unit F: by Windows). As we know windows 98 put its initialization files on C: (IO.SYS, MSDOS.SYS, etc.), but I formated C: to NTFS in order to install Windows XP.
Big mistake. Until your C: is restored to FAT12/FAT16/FAT32, your /dev/hda9 system cannot be started from that HD. There's no need for NTFS on C: when you're putting XP on a logical partition, or even if putting it directly on C: for that matter. When you use NTFS, you complicate your access to doze data while booted to Linux.
i) I understand your point of view, but I prefer NTFS. C: is bigger than F:, and XP requers more space to run than 98. In fact, I am just using Windows for video editing (NTFS can handle large files better) ii) Windows 98se is compatible with all my softwares; iii) XP x64 is making the transition -- yet couldn't leave 98 'cos I can install Nero InCD and burn DVD very well win XP; iv)SuSE can access all my ntfs files and I have FAT partitions to share documents.
C: can be as little as about 40M and still be used to boot a choice from XP, 98 & W2K if you want, each on logical partition(s) coexisting with as many Linux installations as you can manage to keep track of, subject of course to the maximum partition limit of your HD.
This is a great idea I'm avoiding by now -- untill I can back up all my data thru my DVD-RW (I couldn't burn it with XP x64 and win98 shows several errors of characters (I used to write data with linux and windows typing portuguese accentuation).
Grub is restored and SuSE, Slackware and Windows XP can boot, but Windows 98 couldn't.
I don't want to use C: in FAT, could I use GRUB to boot Windows 98 from /dev/hda9 (F:), directly?
I've never heard of any such thing. 98 is DOS, and DOS simply doesn't know anything about booting except from A: or C:. What could work is a DOS boot floppy with proper configuration files to boot from A: but run from your hda9, much like many do to boot doze off the HD but use a floppy for Grub and Linux. I've done it, but your hda9 may need to start below logical cylinder 1024 for it to work for you. The floppy will need to be Win98SE bootable, with IO.SYS, MSDOS.SYS and COMMAND.COM. Also you'll want an AUTOEXEC.BAT to set COMSPEC to a HD location of COMMAND.COM, and may want a CONFIG.SYS for driver(s).
If I can't boot win98 from D: or F: I will try to back up my data with SuSE (it was never done before with DVD-R device). Could you tell me if formating C: and D: to ext2 (using cfdisk on linux) and reinstalling win98 on F: (as first partition recognized by win98) it will work or not? So I could reformat C: (on linux) and reinstall XP. As it was said I'm afraid of repartition because I can lost my photos and movies from 2004, 2005 and 2006--more than 25GB.
My Grub file contains these lines for Win98 partition:
title Windows 98SE rootnoverify (hd0,8) makeactive chainloader +1
The following error occurs:
Error 12: Invalid Device Requested (hd0,8)
Your 98SE doesn't start from (hd0,8), it only runs from there, just like Linux using a separate partition for /boot.
Is there any chance to maintain Windows 98 bootable on /dev/hda9 (F:)?
None. But see above. Also, you might create some other primary in the system and use Grub to map, hide, unhide, makeactive and so forth so that the correct "C:" is set for it when you choose it off the Grub menu.
Is there some chances to edit boot.ini (windows XP) and add something like: F:\="Microsoft Windows 98" ??? (sorry for being obtuse on the same questions)
Do I need the erased files from unit C:?
They won't do you any good unless 98 thinks they're on A: or C:.
Abraços, in Christ, Adagilson
Thanks for replying, brother!
Felix Miata escreveu:
Adagilson Batista Bispo da Silva wrote:
I have windows 98se at /dev/hda9 (it is called unit F: by Windows). As we know windows 98 put its initialization files on C: (IO.SYS, MSDOS.SYS, etc.), but I formated C: to NTFS in order to install Windows XP.
Big mistake. Until your C: is restored to FAT12/FAT16/FAT32, your /dev/hda9 system cannot be started from that HD. There's no need for NTFS on C: when you're putting XP on a logical partition, or even if putting it directly on C: for that matter. When you use NTFS, you complicate your access to doze data while booted to Linux. i) I understand your point of view, but I prefer NTFS. C: is bigger than F:, and XP requers more space to run than 98. In fact, I am just using Windows for video editing (NTFS can handle large files better) ii) Windows 98se is compatible with all my softwares; iii) XP x64 is making the transition -- yet couldn't leave 98 'cos I can install Nero InCD and burn DVD very well win XP; iv)SuSE can access all my ntfs files and I have FAT partitions to share documents. What you want and what you can do are not the same things here. Felix told you what you can do, as well as why you cannot do what you are
On 31/01/06 12:09, Adagilson Batista Bispo da Silva wrote: trying to do now. Win98 is DOS, and DOS is braindead. So what you have is like giving a lobotomy to something that is already braindead. DOS cannot handle more than one primary partition on a single drive, and it can only boot from a floppy or from drive C: -- what is more, DOS cannot boot from a hard drive partition unless it is in the first 1024 cylinders of the drive. You therefore cannot simply put a bunch of "hide/unhide" commands into your grub/menu.lst and expect it to work. One of my friends uses the same justification to keep Win98 around, then complains about all the problems it has, and all the new software he cannot use -- just so he can keep using FoxPro2. Duh, learn a new database, dude. XP is not completely braindead, only XP's concept of security is braindead. Well, a few other things are too, but on the whole, it is not so bad -- XP certainly isn't Linux, but it is sure a lot closer to a real operating system than 98. At least it can boot from anywhere in your system, and I think it even understands the modern concept (that all *nix systems have known about since about 1984) that you can actually have more than one primary partition on a hard drive. Linux is not DOS, it is not braindead. Linux happily ignores things like braindead BIOS limitations, and reports (and uses) all the hard drive space the hardware is capable of handling. Linux will also work with all the primary partitions (4) that can be put onto a hard drive, and boots from anything your computer recognizes as a boot device -- and if your computer doesn't recognize it as a boot device, you can still boot from it by chaining to it in grub. So, save all your data, then reinstall every OS you will want to be able to use, in the following order: 98 first, and it _must_ be installed onto C: (ie. the very first primary partition on the first hard drive). However, there is probably much better software available that can replace what you are using right now, so you should consider dumping 98 completely. XP second, install it anywhere you want it (except C:, should you actually decide you need to keep 98 around). SuSE last, and it too can go anywhere. You will of course need to format enough drivespace as FAT32 to accommodate any data you might want to share between the 3. Everything else that XP uses exclusively should be NTFS, because you don't need XP to be slowed down by a braindead file system. Everything that SuSE uses exclusively should be ext3 or Reiser (preferably, IMO, because it has better recovery capabilities). <snip>
If I can't boot win98 from D: or F: I will try to back up my data with SuSE (it was never done before with DVD-R device). Could you tell me if formating C: and D: to ext2 (using cfdisk on linux) and reinstalling win98 on F: (as first partition recognized by win98) it will work or not? So I could reformat C: (on linux) and reinstall XP. As it was said I'm afraid of repartition because I can lost my photos and movies from 2004, 2005 and 2006--more than 25GB. Don't even think of doing surgery on your current partition structure; you might wind up losing everything anyway. You will certainly have to reinstall every OS you have if you reinstall 98 and XP, because they will wipe out the MBR, which is where grub's bootloader is. You could avoid having to reinstall Linux, but that would require using a rescue system and reinstalling grub into the MBR -- after doing some major surgery to grub/menu.lst, of course.
K3b will do a nice job of burning the DVD disks you will need; all you need to do is keep the burn speed down to what the blank disks can accept (setting k3b to autodetect the optimum burn rate is easiest), because some of those cheap (inexpensive) disks are really cheap (quality). You do get what you pay for.
On Sunday 05 February 2006 11:12, Darryl Gregorash wrote:
What you want and what you can do are not the same things here. Felix told you what you can do, as well as why you cannot do what you are trying to do now. Win98 is DOS, and DOS is braindead. So what you have is like giving a lobotomy to something that is already braindead. DOS cannot handle more than one primary partition on a single drive, and it can only boot from a floppy or from drive C: -
I've never used grub's map commands to rearrange disks but I would think they could be used in this situation.
One of my friends uses the same justification to keep Win98 around, then complains about all the problems it has, and all the new software he cannot use -- just so he can keep using FoxPro2. Duh, learn a new database, dude.
Yes, but he could also use dosemu to run his Foxpro2 (or 2.5)
Darryl Gregorash wrote:
98 ... _must_ be installed onto C: (ie. the very first primary partition on the first hard drive).
Wrong! 98, 95, ME, W2K and WXP do NOT need to be "installed" to C:, nor do they need C: be the first primary on a HD. Rather: 1-All the above can be "installed" to any partition anywhere that each can recognize. 2-C: may be any VISIBLE primary partition on whatever doze thinks is the first HD. A doze "visible" partition can be any of types 01, 04, 07, 0b or 0c. 3-Doze is just like Linux in that it can have its boot files on a separate primary partition from whatever partition the OS is installed to, needing space on "C:" only for its startup files, plus, during installation only, up to about 30M of additional C: space for some installer files. The following is perfectly usable to the "installed" versions of 98SE and XP: Disk /dev/hda: 60.0 GB, 60022480896 bytes Device Boot Start End Blocks Id System /dev/hda1 1 13 104391 17 Hidden HPFS/NTFS /dev/hda2 * 14 14 8032+ a OS/2 Boot Manager /dev/hda3 15 24 80325 6 FAT16 /dev/hda4 25 7297 58420372+ 5 Extended /dev/hda5 25 34 80293+ 83 Linux /dev/hda6 35 83 393561 82 Linux swap / Solaris /dev/hda7 84 695 4915858+ 83 Linux /dev/hda8 696 1076 3060351 c W95 FAT32 (LBA) /dev/hda9 1078 1109 257008+ 6 FAT16 /dev/hda10 1110 1211 819283+ 7 HPFS/NTFS /dev/hda11 1212 1466 2048256 7 HPFS/NTFS /dev/hda12 1467 1585 955836 7 HPFS/NTFS /dev/hda13 1586 1904 2562336 7 HPFS/NTFS /dev/hda14 1906 2256 2819376 83 Linux /dev/hda15 2257 2460 1638598+ 83 Linux /dev/hda16 2461 3353 7172991 83 Linux /dev/hda17 3354 3369 128488+ 83 Linux /dev/hda18 3370 3509 1124518+ 83 Linux /dev/hda19 6579 6680 819283+ 7 HPFS/NTFS In this case IBM Boot Manager is installed on hda2 and is set "active", and the MBR code is standard PC compatible. Grub is installed to hda5 and hda14. BM is used to choose an M$ or IBM or Linux "boot" partition, here hda1 (OS/2), hda3 (98SE & XP), hda5 (SuSE /boot), hda10 (eComStation) or hda14 (Knoppix /). "C:" will be either hda1 or hda3 according to which OS was last selected for OS/2 or doze boot. D: is hda8, E: is hda9 and the F: assignment depends on which M$ or IBM OS is booted. hda1 could just as well be a type 83 GRUB or LILO /boot for some installed Linux, in which case hda3 could be the active partition started each startup by ordinary MBR code and from which hda1 could be one of the selections. IOW, the above means it is not necessarily true that installing doze after Linux means Linux can no longer be booted without first repairing Grub or Lilo! More about partitioning and multiboot at below URL. -- "Love your neighbor as yourself." Mark 12:31 NIV Team OS/2 ** Reg. Linux User #211409 Felix Miata *** http://mrmazda.no-ip.com/partitioningindex.html
On 05/02/06 15:30, Felix Miata wrote:
Darryl Gregorash wrote:
98 ... _must_ be installed onto C: (ie. the very first primary partition on the first hard drive).
Wrong!.... <snip>
Intentionally oversimplified, as per my private email -- back to you.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Sunday 2006-02-05 at 10:12 -0600, Darryl Gregorash wrote:
What you want and what you can do are not the same things here. Felix told you what you can do, as well as why you cannot do what you are trying to do now. Win98 is DOS, and DOS is braindead. So what you have is like giving a lobotomy to something that is already braindead. DOS cannot handle more than one primary partition on a single drive, and it can only boot from a floppy or from drive C: -- what is more, DOS cannot
I boot plain old msdos 6 from both hdb1 and hdc1 - neither of them are C:, which is hda1. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFD5pC9tTMYHG2NR9URAmOkAKCAFzFN0ZSlvV+QulbHcBIcv3WJVwCfQMBh k47Eynfplau8nbDrOtClYgM= =vHcH -----END PGP SIGNATURE-----
participants (5)
-
Adagilson Batista Bispo da Silva
-
Bruce Marshall
-
Carlos E. R.
-
Darryl Gregorash
-
Felix Miata