Conversation
|
It was terrible experience.
As I said - terrible experience. I forgot to mention that I could not mount my fat32 partition ... until I deleted /tmp and restarted. I also got heap errors at some point :) |
|
Also it is not clear which is the root drive from the boot messages. |
Sorry. I would say there is quite a bit of things being tested here at the same time.
The reason for that, as shown in the screenshot, is that without root=cfa, but with disabled=hda, the kernel can't mount the root filesystem /dev/hda (device 0x300). This was mentioned in the PR above.
I'm working on a fix for that.
I'm not quite sure the reason for this... /linux needs to be in the first few directory entries of the / root directory, but the message you're getting with "bad header" is different than that.
Can you explain this a bit more? I don't quite understand: what do you mean "copy the files first on the floppy?" What devices are mounted on /mnt and /mnt2?
"Unable to open root device 0x300" is /dev/hda. That can be seen by doing a ls -l /dev. I'll see if I can get a better message displayed in text rather than numbers.
Yes, when you disable=hda, you must root=cfa, since the system is default booting from HDD. BTW, the only reason you "must" disable hda is to test whether that stopped the BIOS retry message and long wait at boot you reported earlier. Did it? |
Are you running Thanks for your testing, sorry you are very frustrated. |
|
So it works! I changed the root=cfa1 on Windows and it works now. |
|
Ok, so configuring with new stuff is frustrating, but now you figured it out and the pause is gone, disabled=hda works, and overall you can boot from cfa1. Very nice! What still needs work seems to be:
Thank you for testing! |
|
mnt is /hda1
|
Can you run
So the failure has nothing to do with floppy, but fails when copying from hda1 to hda2? Is either of them a CF card? I thought you were running only CF? |
|
I mean cfa1 and cfa2. But at the time I was using the bios driver so hda. |
|
Yes, when mounting the root there is a lot of information, but not which is the root in /dev. |
Ok, I'll drop that issue for now. Report it again if you have cp issues.
Got it. Will put a change to report what root device name in /dev is so one doesn't have to remember numbers. |
|
And actually you can not switch to direct floppy access from /bootopts ? I mean without setting the root? |
Yes, you should be able to just use /dev/df0 (not fd0, but df0) to access the floppy using the non-BIOS direct FD driver. |
|
To boot from direct floppy, use root=df0 in /bootopts. |
|
I got it. df0 is indeed always compiled and accessible. |
|
So what we now have is two BIOS drivers, hda and fd0, which use ELKS BIOS to access the HDD and FD. However, if you're running XTIDE Universal BIOS, hda could also access the CF card. In that case, we probably want to disable=hda. We then have two direct drivers, cfa and df0. All can be booted from using root=, and any can be disabled using disable=
Yes - and now, so will hda, cfa, and fd0 as well. That's the fancy disable= option was added, which takes comma separated device names if wanted. |
|
My plan is to ship ELKS with all the drivers (BIOS hda and fd0), ATA CF (cfa) and direct FD (df0) compiled in. By default, the old BIOS driver will be used, but root=, xtide= and disable= can be used to select your own dynamic configuration. |
I don't quite understand this error. If you end up going through this sequence again, please report the exact errors and I'll try to get it fixed. |
|
All clear :) |

Allows disabling compiled-in drivers for testing, or for when drivers may try to talk to the same hardware. Discussed in #2357 (comment).
/bootopts now parses a comma separated list of block device names to disable them at boot. The complete list of allowable drivers is:
Note that there are two options for the BIOS driver: hda turns off the hard disk, and fd0 the floppy. df0 is the direct DF driver and cfa is the ATA CF driver.
This line should be edited to only include only drivers that might be causing problems. Leaving in the entire list will end up disabling all bootable block devices, and the boot will fail when trying to mount the root device.
The most common use of this option will likely be to either turn off the BIOS hard disk driver when booting from CF card. To do this, one would use:
Since the ATA CF driver will likely be compiled in, one might want to turn it off when not desired, and just use the BIOS HD driver instead: