MSFN Forum: Booting Windows 98SE from a Flash Drive - MSFN Forum

Jump to content


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Booting Windows 98SE from a Flash Drive Rate Topic: -----

#1 User is offline   Dave-H 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 681
  • Joined: 04-January 06
  • OS:98SE
  • Country: Country Flag

Posted 10 April 2012 - 05:49 AM

I've been running an installation of Windows 98SE from a bootable flash drive memory stick, more as an experimental exercise than anything else, and also to give me a way of booting my machine without any hard drives connected so I can reconfigure them easily if necessary.

It works fine most of the time, but it's very slow and freezes up sometimes, as you might expect!

Just wanted to check with the experts here that I'm not missing anything that might make it perform better.
The main problem seems to be that the system drive (the memory stick) is running in compatibility mode.
There's probably nothing that can be done about this, but I am puzzled that the drive doesn't appear in the Device Manager at all.
Would that be expected?

The system has 4 GB of memory installed, so I'm using Rudolph Loew's RAM limitation patch.
There is no swapfile usage so I assume the OS is running completely in memory.

I cannot allow the system to install any USB controllers, as this immediately crashes the system, presumably because the drivers are trying to install on the system that's hosting the system drive!
The USB controllers still appear in Device Manager but I've removed the INF file information for them so they cannot install.
All other USB devices apart from the memory stick have to be removed (I have to use a PS/2 mouse).

I was pleased that I got it working at all, but just wondered if anyone else who's done it has any more insights into how the configuration could be improved.
Thanks, Dave.
:)

This post has been edited by Dave-H: 10 April 2012 - 05:52 AM



#2 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,574
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 10 April 2012 - 08:37 AM

View PostDave-H, on 10 April 2012 - 05:49 AM, said:

The system has 4 GB of memory installed, so I'm using Rudolph Loew's RAM limitation patch.

Since you have far more RAM then what is need to both load and run a 98, if I were you I would try a disk image in RAM.

(or a "mixed mode" approach).
Either Syslinux/memdisk and grub4dos shoud allow it no prob.

jaclaz

#3 User is offline   Dave-H 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 681
  • Joined: 04-January 06
  • OS:98SE
  • Country: Country Flag

Posted 10 April 2012 - 11:40 AM

View Postjaclaz, on 10 April 2012 - 08:37 AM, said:

Since you have far more RAM then what is need to both load and run a 98, if I were you I would try a disk image in RAM.
(or a "mixed mode" approach).
Either Syslinux/memdisk and grub4dos shoud allow it no prob.
jaclaz

That sounds like a great idea, then I could presumably just load up Windows 98 from the memory stick and then actually run it using a RAM drive.
I want to be able to do this in a worst case scenario where I have no access to any of the hard drives on my system.
Obviously I would then lose the OS completely if I had to reboot or the system crashed or froze, as the RAM drive would disappear and I'd have to load it from scratch all over again, but I will certainly investigate this option as it looks very interesting.
Thanks.
:)

#4 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 11,574
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 10 April 2012 - 01:17 PM

View PostDave-H, on 10 April 2012 - 11:40 AM, said:

Obviously I would then lose the OS completely if I had to reboot or the system crashed or froze, as the RAM drive would disappear and I'd have to load it from scratch all over again ...


View Postjaclaz, on 10 April 2012 - 08:37 AM, said:

(or a "mixed mode" approach).

;)

jaclaz

#5 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,983
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 10 April 2012 - 08:05 PM

Yours is a superb machine, but it has a not-so-recent BIOS, so I'd bet you're booting and running at USB 1.1 speed. If I'm right, you'd experience a noticeable acceleration by using the Plop bootmanager instead. It's quite easy to test this idea: grab a floppy and install to it the default Plop bootloader. Then boot to the floppy with the pendrive inserted, and select USB from the boot menu. The system will now boot using Plop's USB 2.0 support. If you find out everithing is faster, then I was right, and we may go ahead and modify the pendrive poot routine to use Plop automatically by default. Do try it and let me know the results.

#6 User is offline   Dave-H 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 681
  • Joined: 04-January 06
  • OS:98SE
  • Country: Country Flag

Posted 13 April 2012 - 08:49 AM

Sorry for the delay in replying, but I've been experimenting, both with Plop and Grub4DOS!

Where I am now is that I've managed to install Plop to the MBR of the flash drive, so Plop is now the first thing that appears when I boot from it.
I select USB, and it appears to be loading some files, presumably to support USB 2.
:yes:
I then select the drive, and it checks the MBR and says it's fine, but then checks the boot sector and says "No valid bootsector signature".
If I tell it to carry on it just goes to a flashing cursor and goes no further.
:no:
Any quick pointers to fixing that, preferably without destroying all the data on the drive?!
Cheers, Dave.
:)

#7 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,983
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 13 April 2012 - 11:16 AM

View PostDave-H, on 13 April 2012 - 08:49 AM, said:

Where I am now is that I've managed to install Plop to the MBR of the flash drive, so Plop is now the first thing that appears when I boot from it.
I select USB, and it appears to be loading some files, presumably to support USB 2.
:yes:
I then select the drive, and it checks the MBR and says it's fine, but then checks the boot sector and says "No valid bootsector signature".
If I tell it to carry on it just goes to a flashing cursor and goes no further.
:no:
Any quick pointers to fixing that, preferably without destroying all the data on the drive?!
Cheers, Dave.
:)

:wacko: I told you to use a floppy, test it well, then report and discuss with us how to proceed, before modifying the pendrive, didn't I?
Did you test first with a floppy? What results did you get?

And, did you create a backup of the previous MBR, or a full "dumb" bit-by-bit image of the pendive, before modifying it? :ph34r:

Don't do anything, before we talk about it, please. I do believe we can get it to work OK again all right.

#8 User is offline   Dave-H 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 681
  • Joined: 04-January 06
  • OS:98SE
  • Country: Country Flag

Posted 13 April 2012 - 12:52 PM

View Postdencorso, on 13 April 2012 - 11:16 AM, said:

:wacko: I told you to use a floppy, test it well, then report and discuss with us how to proceed, before modifying the pendrive, didn't I?

Yes I'm sure you did, but I used the floppy with the Plop image on it to boot and it went to the Plop install screen.
It seemed to only give me the option to install to the hard drives or the pen drive, but I presumably must have missed something.
I used the image plpbtin.img from the unpacked Plop's "install" folder, when I probably should have used one of the other images.
I'm afraid I do find the Plop documentation confusing in places.

View Postdencorso, on 13 April 2012 - 11:16 AM, said:

Did you test first with a floppy? What results did you get?

As above really, I used the floppy to boot, which is what I thought you meant.
Obviously my misunderstanding.

View Postdencorso, on 13 April 2012 - 11:16 AM, said:

And, did you create a backup of the previous MBR, or a full "dumb" bit-by-bit image of the pendive, before modifying it? :ph34r:
Don't do anything, before we talk about it, please. I do believe we can get it to work OK again all right.

I haven't looked again yet, but I'm pretty sure that the Plop installer made a backup of the MBR, which presumably can be easily restored.
If so, everything should be back as it was before pretty easily.
Even if it can't be restored, I did actually remember to back up the contents of the pen drive anyway before I started, so all is not lost!
:)

This post has been edited by Dave-H: 13 April 2012 - 12:54 PM


#9 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,983
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 13 April 2012 - 02:37 PM

Can you create an image of the first, say, 200 sectors of the pendrive, zip it, upload it to mediafire or qshare.com and PM me the link?
If you don't have any program capable of creating such an image, the trial version of WinHex can do it (on XP SP3). If you need detailed instructions of how to acquire (or collect) the image, please do let me know. Once having such an image I can inspect it so that we can make a really surgically precise intervention to fix the pendrive without any great risk.

View PostDave-H, on 13 April 2012 - 12:52 PM, said:

I'm afraid I do find the Plop documentation confusing in places.

You're not alone. I do find it confusing, too. Very, BTW.
What you should have done (besides asking, :) of course) was:
1) Download plpbt-5.0.14.zip;
2) Extract from the folder plpbt-5.0.14 of the zip the file plpbt.img;
3) Write it to a floppy, using WinImage, NTRawrite or another such tool.
4) Boot the floppy you just created.
;)

Sorry if I misled you! :blushing:
You know that wasn't my intention.

#10 User is offline   Dave-H 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 681
  • Joined: 04-January 06
  • OS:98SE
  • Country: Country Flag

Posted 13 April 2012 - 05:11 PM

I've downloaded WinHex, and looked at the Disk Editor, which looks fairly frightening!
I'd appreciate knowing how to limit the export to 200 sectors as the evaluation version seems to be limited as to how much you can export.

Would the "fixmbr" routine on the Windows XP Recovery Console not fix the problem, assuming it can address the Flash Drive?

I have now made a bootable floppy (using RawWriteWin which was recommended by the Plop documentation) with the plpbt.img file, which is what I should have used in the first place, not the plpbtin.img file which I used the first time!

I still seem to be able to access the Flash Drive fine in Windows 98 and XP BTW, so nothing's been lost, I just can't now boot from it!.

Thanks, Dave.
:)

This post has been edited by Dave-H: 13 April 2012 - 05:15 PM


#11 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,983
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 13 April 2012 - 06:37 PM

We do not know whether it was the MBR or the boot sector (PBR) which has changed (or both).

With the pendrive inserted and recognised by Windows Explorer...
Open WinHex, go to Tools, select Open Disk, scroll all the way down and, in the Physical Media section, select your pendrive (it'll be prefixed "RMn:", where n is an integer and RM stands for Removable Media).
Then click OK and you'll get an hexview of it, starting at LBA 0 (or Offset 0).
Then go to Edit, select Define Block, and enter 102400 at the End slot and click OK.
The hexview is now highlighted.
So go to Edit again, then Copy Block, then Into New File and you'll get a Save File As window.
Then decide where you want to write the image (not in the pendrive itself!) and give it a name (the default is noname), say, pen200.bin and click Save.
Then close WinHex, go to the folder you saved pen200.bin (it should be 1034 KiB long) in and zip or, even better, 7-zip or RAR it.
That's all. Good luck!

#12 User is offline   Dave-H 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 681
  • Joined: 04-January 06
  • OS:98SE
  • Country: Country Flag

Posted 14 April 2012 - 06:11 AM

View Postdencorso, on 13 April 2012 - 06:37 PM, said:

We do not know whether it was the MBR or the boot sector (PBR) which has changed (or both).
With the pendrive inserted and recognised by Windows Explorer...
Open WinHex, go to Tools, select Open Disk, scroll all the way down and, in the Physical Media section, select your pendrive (it'll be prefixed "RMn:", where n is an integer and RM stands for Removable Media).
Then click OK and you'll get an hexview of it, starting at LBA 0 (or Offset 0).
Then go to Edit, select Define Block, and enter 102400 at the End slot and click OK.
The hexview is now highlighted.
So go to Edit again, then Copy Block, then Into New File and you'll get a Save File As window.
Then decide where you want to write the image (not in the pendrive itself!) and give it a name (the default is noname), say, pen200.bin and click Save.
Then close WinHex, go to the folder you saved pen200.bin (it should be 1034 KiB long) in and zip or, even better, 7-zip or RAR it.
That's all. Good luck!

Unfortunately the evaluation version of WinHex doesn't allow the saving of more than 200KB of data.
In fact everything from offset 7DF20 to 102400 is all zeros anyway, but even the range from 0 to 7DF20 is too large to save.
:no:

This post has been edited by Dave-H: 14 April 2012 - 06:12 AM


#13 User is offline   e-t-c 

  • WHS 2003 SP2
  • PipPip
  • Group: Members
  • Posts: 144
  • Joined: 13-March 06
  • OS:2003 x86
  • Country: Country Flag

Posted 14 April 2012 - 07:06 AM

FYI: Maybe the Freeware HxD is an Alternative ?

Quote

HxD is a carefully designed and fast hex editor which, additionally to raw disk editing
and modifying of main memory (RAM), handles files of any size. http://mh-nexus.de/en/programs.php


#14 User is offline   Dave-H 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 681
  • Joined: 04-January 06
  • OS:98SE
  • Country: Country Flag

Posted 14 April 2012 - 07:40 AM

View Poste-t-c, on 14 April 2012 - 07:06 AM, said:

FYI: Maybe the Freeware HxD is an Alternative ?

Quote

HxD is a carefully designed and fast hex editor which, additionally to raw disk editing
and modifying of main memory (RAM), handles files of any size. http://mh-nexus.de/en/programs.php


Thank you so much, that's absolutely brilliant!
:thumbup
I've exported the necessary data as a (rather large) html file.
It's here.
Hope dencorso can make something of it!
Thanks again.
Dave.
:)

#15 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,983
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 14 April 2012 - 02:17 PM

Hi, Dave!
Sure I can.
Plop has installed itself into the MBR. The 1st (and only) partitions is intact.
So, let's restore the MBR. This should be done on Win XP.
Download the freeware CLI MBRWiz.
Download the attached DAVEMBR.zip and extract the file inside to some folder, say, C:\GETBACK
Run the following command from a DOS box, with the pendrive inserted, of course.

mbrwiz /list

From the list that appears, identify the pendrive's disk number (it's usually one of the last, if not the very last), and let's call this number n (it must be a natural number aka positive integer). Then run the following command:

mbrwiz /disk=n /restorembr=C:\DAVEMBR.BIN

As soon as it finishes, close the DOS box and safely remove the pendrive.

You may then insert it again and confirm it continues to be recognized by Windows, and explorable by Windows Explorer. If so, remove it safely again.

Now attempt to boot from it, and report.

Good luck!

Attached File(s)



#16 User is offline   Dave-H 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 681
  • Joined: 04-January 06
  • OS:98SE
  • Country: Country Flag

Posted 14 April 2012 - 03:42 PM

Thanks!
Done all that, and Plop seems to have disappeared from the drive when I boot from it, but it's not booting to Windows 98 either.
It's just going to a flashing cursor and stopping there.
:(

#17 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,983
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 14 April 2012 - 04:11 PM

In Win 98, insert the pendrive, open Windows Explorer, locate the pendrive, take notice of which drive letter it has got (let's say it's got T), open it locate something readable in it, some .txt or even config.sys, open it then close it. So now we're sure the pendrive is mounted. Now open a DOS box, make sure you're in C:\ then issue the following command:

SYS T:

Then, since we're at it, do a DIR T:\ copy the output and post it here.

After that, remove safely the pendrive, leave windows and attempt to boot it again. What happens?

#18 User is offline   Dave-H 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 681
  • Joined: 04-January 06
  • OS:98SE
  • Country: Country Flag

Posted 14 April 2012 - 05:42 PM

I'm getting a message saying: "Could not copy COMMAND.COM onto target disk".
Strange, as I can read from and write to the disk perfectly happily with Windows Explorer.
COMMAND.COM is not present in the root of the disk, which is obviously why I can't boot from it..
I'm sure I could copy it there using Windows Explorer, but I'm puzzled why the SYS command can't seem to do it!
The DIR command only shows the files in the root that aren't hidden of course, so isn't going to be very helpful unless I remove the hidden attribute from all of them.
:)

This post has been edited by Dave-H: 14 April 2012 - 05:45 PM


#19 User is offline   dencorso 

  • Adiuvat plus qui nihil obstat
  • Group: Super Moderator
  • Posts: 4,983
  • Joined: 07-April 07
  • OS:98SE
  • Country: Country Flag

Posted 14 April 2012 - 05:53 PM

SYS expects command.com to be present in the root of the source disk, it's not a very brilliant little program.
Copy command.com by hand with the windows explorer. It's OK. But make sure there is an IO.SYS in the root of the pendrive too.

#20 User is offline   Dave-H 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 681
  • Joined: 04-January 06
  • OS:98SE
  • Country: Country Flag

Posted 15 April 2012 - 05:23 AM

View Postdencorso, on 14 April 2012 - 05:53 PM, said:

SYS expects command.com to be present in the root of the source disk, it's not a very brilliant little program.
Copy command.com by hand with the windows explorer. It's OK. But make sure there is an IO.SYS in the root of the pendrive too.

Well COMMAND.COM is in the root of the source disk (C:) of course!
Anyway I copied it by hand (in fact from the backup of the flash drive that I made before Plop got onto it.)
IO.SYS is present and correct too, as is MSDOS.SYS.
Still the same result though, just boots only to a flashing cursor.
I'm not getting an "operating system not found" message, so I assume that the drive is still bootable.
It's just not actually loading.
It's still an active primary partition.
One thing I did find when I compared what's on the drive now with the backup was that there is now an extra file in the root of the drive DRVSPACE.BIN that wasn't there before.
I've tried deactivating it by changing its extension to B~N but it made no difference.
I don't know where it came from, if can't have been there when I did the backup.
It should be booting to the Windows 98 startup options screen, which is how I had it set before.

One thing I've just realised that I should mention, as it may be an important clue, is that now when I insert the pen drive in Windows XP, it triggers the Autoplay routine, which it never did before, so something has definitely changed in the way that the drive is being seen by the operating system. It started doing that after I installed Plop onto it.
:)

This post has been edited by Dave-H: 15 April 2012 - 05:29 AM


Share this topic:


  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2013 msfn.org
Privacy Policy