VOGONS


Trouble setting up CompactFlash as IDE on 386

Topic actions

First post, by kikendo

User metadata
Rank Member
Rank
Member

You guys are gonna hate me... yeah I have problems again 😜

I got a 512MB CompactFlash after advice given in this thread and I went to set it up but I ran into several problems. I had done this before but never on a machine this old.

First of all there was the issue of geometry. I found a post here where someone said the settings for a 512MB card should be 993 cyls, 16 heads and 63 sectors. Put that in and the machine stopped giving "Fixed Disk Failure" errors, but there's two more settings I left at 0 that I don't know if is what is causing trouble. In the BIOS they are called LZ and WP.

Even leaving those two at zero, I managed to install DOS 6.22 in the disk, but when I restart, the machine simply says "Error!" and stops.
Now I think this isn't the first time I run into this problem: when I set up a CF for my Toshiba Libretto, I think I ran into the same issue, but I have no idea how I fixed it.

I did the whole installation in the 386 itself from virtual floppies on a Gotek drive running FlashFloppy.
I let DOS partition and format the CF drive after having erased all partitions on the CF using Partition Magic.

At this point I have no idea what is going on. Inserting the CF in my newer PC shows that there are files there, everything looks in place.
If I boot from a floppy, I can see the files in the CF.

Any ideas where I screwed up?

Reply 1 of 21, by SodaSuccubus

User metadata
Rank Member
Rank
Member

FDISK /MBR?

Boot record might have gone screwy. Happens sometimes with fresh cards.

Reply 2 of 21, by cyclone3d

User metadata
Rank l33t++
Rank
l33t++

What brand/model is the card?

I have a few cards that will not work with "standard" settings. I had to install them in a newer computer to autodetect the settings, write the settings down and then install in the older computer with those settings.

Yamaha modified setupds and drivers
Yamaha XG repository
YMF7x4 Guide
Aopen AW744L II SB-LINK

Reply 3 of 21, by appiah4

User metadata
Rank l33t++
Rank
l33t++
kikendo wrote on 2020-06-18, 21:58:

First of all there was the issue of geometry. I found a post here where someone said the settings for a 512MB card should be 993 cyls, 16 heads and 63 sectors.

Not necesserily. You need to run IDEINFO.EXE on the CF-IDE adapter/card combination, possibly on another PC where the controller can read the geometry. Then and only then will you know how you manually have to set it up so that it works properly.

Reply 4 of 21, by kikendo

User metadata
Rank Member
Rank
Member
SodaSuccubus wrote on 2020-06-18, 22:05:

FDISK /MBR?

I'll try that!

appiah4 wrote on 2020-06-18, 22:31:

Not necesserily. You need to run IDEINFO.EXE on the CF-IDE adapter/card combination, possibly on another PC where the controller can read the geometry. Then and only then will you know how you manually have to set it up so that it works properly.

Where do I get IDEINFO?

Reply 5 of 21, by appiah4

User metadata
Rank l33t++
Rank
l33t++

Do a googlesearch for IDEINFO.EXE

Reply 6 of 21, by Pierre32

User metadata
Rank Oldbie
Rank
Oldbie

I also like https://archive.org/details/whatide

Doing this myself soon for the first time on a 386 (I've done it on other systems) so I'm reading about any problems and solutions with interest.

Reply 7 of 21, by kikendo

User metadata
Rank Member
Rank
Member

Ok as always, teh simplest solution was the one that worked!

SodaSuccubus wrote on 2020-06-18, 22:05:

FDISK /MBR?

This fixed it. thanks so much!

Pierre32 wrote on 2020-06-19, 15:10:

I also like https://archive.org/details/whatide

Doing this myself soon for the first time on a 386 (I've done it on other systems) so I'm reading about any problems and solutions with interest.

Thanks for that info, I'll try it! And good luck. Let me know if I can help you in any way.
At this point, I am pretty much done with my 386 restoration, save for one repair. I can't wait to post teh finished, restored build!

Reply 8 of 21, by retropc999

User metadata
Rank Newbie
Rank
Newbie

I have installed an IDE 40-pin/44-pin to compact flash card adapter in my 386 PC. Inside, I used two adapters: CF to SD card, and SD card to a 64GB microSD.

The BIOS cannot detect the 'HDD parameters,' so I made an MS-DOS boot disk and added the WhatIDE program to it.

If I select that no HDD is installed, the system manages to boot from the disk and starts up. However, when I run WhatIDE, the program says that no fixed disks are installed, so I cannot identify the microSD card parameters to manually enter them into the BIOS.

If I specify that a HDD is installed and choose any of the 46 options in the BIOS, the system will not boot from the MS-DOS disk. It just freezes on the screen.

The attachment IMG_20241020_120624.jpg is no longer available

The IDE to CF card adapter is set to Master/Single IDE.

When I select a HDD in the BIOS, I get two errors. Here is a picture.

The attachment IMG_20241020_121302.jpg is no longer available

I also cannot identify which component is the CMOS battery.

The attachment IMG_20241020_113254.jpg is no longer available
The attachment IMG_20241020_113306.jpg is no longer available
The attachment IMG_20241020_113315.jpg is no longer available

What should I do?

Reply 9 of 21, by retropc999

User metadata
Rank Newbie
Rank
Newbie

One more thing.

The IDE to CF card is connected to the second (last) IDE connector. The cable has three connectors: one on the motherboard and two others. I used the last one.

If I use the first (middle) IDE connector, the computer doesn't start. After I turn it on, the screen stays black.

Reply 10 of 21, by retropc999

User metadata
Rank Newbie
Rank
Newbie

Update:

With any HDD selected in the BIOS, I managed to boot from the floppy into MS-DOS.

Both WhatIDE and FDISK give me errors, unable to identify the IDE card.

Reply 11 of 21, by weedeewee

User metadata
Rank l33t
Rank
l33t
retropc999 wrote on 2024-10-20, 09:51:
I have installed an IDE 40-pin/44-pin to compact flash card adapter in my 386 PC. Inside, I used two adapters: CF to SD card, an […]
Show full quote

I have installed an IDE 40-pin/44-pin to compact flash card adapter in my 386 PC. Inside, I used two adapters: CF to SD card, and SD card to a 64GB microSD.

The BIOS cannot detect the 'HDD parameters,' so I made an MS-DOS boot disk and added the WhatIDE program to it.

If I select that no HDD is installed, the system manages to boot from the disk and starts up. However, when I run WhatIDE, the program says that no fixed disks are installed, so I cannot identify the microSD card parameters to manually enter them into the BIOS.

If I specify that a HDD is installed and choose any of the 46 options in the BIOS, the system will not boot from the MS-DOS disk. It just freezes on the screen.

The attachment IMG_20241020_120624.jpg is no longer available

The IDE to CF card adapter is set to Master/Single IDE.

When I select a HDD in the BIOS, I get two errors. Here is a picture.

The attachment IMG_20241020_121302.jpg is no longer available

I also cannot identify which component is the CMOS battery.

The attachment IMG_20241020_113254.jpg is no longer available
The attachment IMG_20241020_113306.jpg is no longer available
The attachment IMG_20241020_113315.jpg is no longer available

What should I do?

The cmos battery is in the chip package right underneath the CF card adapter, right next to the bigger chip that has MEGATRENDS on it.

You should've started your own thread on this.

I'm fairly certain that whatide should work without any hdd bios parameters set.

Here you'll find another program you can try http://www.ata-atapi.com/atact.html

Right to repair is fundamental. You own it, you're allowed to fix it.
How To Ask Questions The Smart Way
Do not ask Why !
https://www.vogonswiki.com/index.php/Serial_port

Reply 12 of 21, by GigAHerZ

User metadata
Rank Oldbie
Rank
Oldbie

Just my 2 cents to make life easier.

I've found that RMPrepUSB on modern machine is the best way to partition and format your CF and SD cards for old computers. It aligns, as much as it is reasonable, FAT16 and FAT32 with the SSD blocks, too. So no need to play around with moving partition around after creating partitions on old machine. (FAT16 and FAT32 alignment is very problematic anyways and the result from RMPrepUSB is as good as it can be, but FAT and SSD just doesn't play well together)

After using RMPrepUSB, boot the machine from floppy and run "sys c:" and you are good. 😀

"640K ought to be enough for anybody." - And i intend to get every last bit out of it even after loading every damn driver!
A little about software engineering: https://byteaether.github.io/

Reply 13 of 21, by retropc999

User metadata
Rank Newbie
Rank
Newbie
weedeewee wrote on 2024-10-20, 13:18:
The cmos battery is in the chip package right underneath the CF card adapter, right next to the bigger chip that has MEGATRENDS […]
Show full quote
retropc999 wrote on 2024-10-20, 09:51:
I have installed an IDE 40-pin/44-pin to compact flash card adapter in my 386 PC. Inside, I used two adapters: CF to SD card, an […]
Show full quote

I have installed an IDE 40-pin/44-pin to compact flash card adapter in my 386 PC. Inside, I used two adapters: CF to SD card, and SD card to a 64GB microSD.

The BIOS cannot detect the 'HDD parameters,' so I made an MS-DOS boot disk and added the WhatIDE program to it.

If I select that no HDD is installed, the system manages to boot from the disk and starts up. However, when I run WhatIDE, the program says that no fixed disks are installed, so I cannot identify the microSD card parameters to manually enter them into the BIOS.

If I specify that a HDD is installed and choose any of the 46 options in the BIOS, the system will not boot from the MS-DOS disk. It just freezes on the screen.

The attachment IMG_20241020_120624.jpg is no longer available

The IDE to CF card adapter is set to Master/Single IDE.

When I select a HDD in the BIOS, I get two errors. Here is a picture.

The attachment IMG_20241020_121302.jpg is no longer available

I also cannot identify which component is the CMOS battery.

The attachment IMG_20241020_113254.jpg is no longer available
The attachment IMG_20241020_113306.jpg is no longer available
The attachment IMG_20241020_113315.jpg is no longer available

What should I do?

The cmos battery is in the chip package right underneath the CF card adapter, right next to the bigger chip that has MEGATRENDS on it.

You should've started your own thread on this.

I'm fairly certain that whatide should work without any hdd bios parameters set.

Here you'll find another program you can try http://www.ata-atapi.com/atact.html

Could it be the microSD card? I formatted it on my Mac as MS-DOS. I don't understand why WhatIDE isn't working in my case.

Thanks for your help!

Reply 14 of 21, by retropc999

User metadata
Rank Newbie
Rank
Newbie
GigAHerZ wrote on 2024-10-20, 13:29:

Just my 2 cents to make life easier.

I've found that RMPrepUSB on modern machine is the best way to partition and format your CF and SD cards for old computers. It aligns, as much as it is reasonable, FAT16 and FAT32 with the SSD blocks, too. So no need to play around with moving partition around after creating partitions on old machine. (FAT16 and FAT32 alignment is very problematic anyways and the result from RMPrepUSB is as good as it can be, but FAT and SSD just doesn't play well together)

After using RMPrepUSB, boot the machine from floppy and run "sys c:" and you are good. 😀

My main computer is a Mac, and all my other PCs don’t have card readers. I’ve ordered a USB card reader, so I’ll give it a try with RMPrepUSB.

I’ll provide feedback tomorrow.

Thank you!

Reply 15 of 21, by weedeewee

User metadata
Rank l33t
Rank
l33t
retropc999 wrote on 2024-10-20, 13:58:
weedeewee wrote on 2024-10-20, 13:18:
The cmos battery is in the chip package right underneath the CF card adapter, right next to the bigger chip that has MEGATRENDS […]
Show full quote
retropc999 wrote on 2024-10-20, 09:51:
I have installed an IDE 40-pin/44-pin to compact flash card adapter in my 386 PC. Inside, I used two adapters: CF to SD card, an […]
Show full quote

I have installed an IDE 40-pin/44-pin to compact flash card adapter in my 386 PC. Inside, I used two adapters: CF to SD card, and SD card to a 64GB microSD.

The BIOS cannot detect the 'HDD parameters,' so I made an MS-DOS boot disk and added the WhatIDE program to it.

If I select that no HDD is installed, the system manages to boot from the disk and starts up. However, when I run WhatIDE, the program says that no fixed disks are installed, so I cannot identify the microSD card parameters to manually enter them into the BIOS.

If I specify that a HDD is installed and choose any of the 46 options in the BIOS, the system will not boot from the MS-DOS disk. It just freezes on the screen.

The attachment IMG_20241020_120624.jpg is no longer available

The IDE to CF card adapter is set to Master/Single IDE.

When I select a HDD in the BIOS, I get two errors. Here is a picture.

The attachment IMG_20241020_121302.jpg is no longer available

I also cannot identify which component is the CMOS battery.

The attachment IMG_20241020_113254.jpg is no longer available
The attachment IMG_20241020_113306.jpg is no longer available
The attachment IMG_20241020_113315.jpg is no longer available

What should I do?

The cmos battery is in the chip package right underneath the CF card adapter, right next to the bigger chip that has MEGATRENDS on it.

You should've started your own thread on this.

I'm fairly certain that whatide should work without any hdd bios parameters set.

Here you'll find another program you can try http://www.ata-atapi.com/atact.html

Could it be the microSD card? I formatted it on my Mac as MS-DOS. I don't understand why WhatIDE isn't working in my case.

Thanks for your help!

Try using the SD-CF adapter without any SD card in it and running whatide.
Other option would be getting a real CF card.

Right to repair is fundamental. You own it, you're allowed to fix it.
How To Ask Questions The Smart Way
Do not ask Why !
https://www.vogonswiki.com/index.php/Serial_port

Reply 16 of 21, by retropc999

User metadata
Rank Newbie
Rank
Newbie
weedeewee wrote on 2024-10-20, 14:03:
retropc999 wrote on 2024-10-20, 13:58:
weedeewee wrote on 2024-10-20, 13:18:
The cmos battery is in the chip package right underneath the CF card adapter, right next to the bigger chip that has MEGATRENDS […]
Show full quote

The cmos battery is in the chip package right underneath the CF card adapter, right next to the bigger chip that has MEGATRENDS on it.

You should've started your own thread on this.

I'm fairly certain that whatide should work without any hdd bios parameters set.

Here you'll find another program you can try http://www.ata-atapi.com/atact.html

Could it be the microSD card? I formatted it on my Mac as MS-DOS. I don't understand why WhatIDE isn't working in my case.

Thanks for your help!

Try using the SD-CF adapter without any SD card in it and running whatide.
Other option would be getting a real CF card.

This is what I get with and without the CF adapter connected. I also tried with the CF adapter connected but without the SD adapter and microSD card inserted.

The attachment IMG_20241021_090624.jpg is no longer available

I ordered a CF memory, I will get it tomorrow.

Reply 17 of 21, by retropc999

User metadata
Rank Newbie
Rank
Newbie

I've never seen a CMOS battery like this before. How do I change it, and what is it called since it's so different from the usual barrel-style battery?

Update: I managed to ruin the IDE to CF card when I inserted the adapter the wrong way. 😐 The card started smoking and is probably dead.

Tomorrow, I will install an IDE to SD memory card, and hopefully, I'll be able to get it working.

Reply 18 of 21, by weedeewee

User metadata
Rank l33t
Rank
l33t
retropc999 wrote on 2024-10-21, 06:11:
This is what I get with and without the CF adapter connected. I also tried with the CF adapter connected but without the SD adap […]
Show full quote
weedeewee wrote on 2024-10-20, 14:03:
retropc999 wrote on 2024-10-20, 13:58:

Could it be the microSD card? I formatted it on my Mac as MS-DOS. I don't understand why WhatIDE isn't working in my case.

Thanks for your help!

Try using the SD-CF adapter without any SD card in it and running whatide.
Other option would be getting a real CF card.

This is what I get with and without the CF adapter connected. I also tried with the CF adapter connected but without the SD adapter and microSD card inserted.

The attachment IMG_20241021_090624.jpg is no longer available

I ordered a CF memory, I will get it tomorrow.

I asked to test the SD-CF adapter without an sd card inserted, which implies the CF-IDE adapter hooked up to the mainboard IDE, and the SD-CF adapter inserted, without a microsd card inserted.

for the RTC battery, watch this video https://www.youtube.com/watch?v=xBvw1TLHyqM

Good luck.

Right to repair is fundamental. You own it, you're allowed to fix it.
How To Ask Questions The Smart Way
Do not ask Why !
https://www.vogonswiki.com/index.php/Serial_port

Reply 19 of 21, by retropc999

User metadata
Rank Newbie
Rank
Newbie
weedeewee wrote on 2024-10-21, 15:09:
I asked to test the SD-CF adapter without an sd card inserted, which implies the CF-IDE adapter hooked up to the mainboard IDE, […]
Show full quote
retropc999 wrote on 2024-10-21, 06:11:
This is what I get with and without the CF adapter connected. I also tried with the CF adapter connected but without the SD adap […]
Show full quote
weedeewee wrote on 2024-10-20, 14:03:

Try using the SD-CF adapter without any SD card in it and running whatide.
Other option would be getting a real CF card.

This is what I get with and without the CF adapter connected. I also tried with the CF adapter connected but without the SD adapter and microSD card inserted.

The attachment IMG_20241021_090624.jpg is no longer available

I ordered a CF memory, I will get it tomorrow.

I asked to test the SD-CF adapter without an sd card inserted, which implies the CF-IDE adapter hooked up to the mainboard IDE, and the SD-CF adapter inserted, without a microsd card inserted.

for the RTC battery, watch this video https://www.youtube.com/watch?v=xBvw1TLHyqM

Good luck.

I did that, but I wasn't clear in my writing.

Thanks for the video!