nanochess / bootOS

bootOS is a monolithic operating system in 512 bytes of x86 machine code.
BSD 2-Clause "Simplified" License
1.79k stars 89 forks source link

Files not found on USB stick #12

Open jakiki6 opened 4 years ago

jakiki6 commented 4 years ago

Why can bootOS not read files from a USB stick if i copied it onto and boot? Everytime i enter a command it stops working and shows a blinking cursor. Example: $dir

nanochess commented 4 years ago

bootOS is designed to work with floppy disks. Probably it would need modifications to run with your USB stick. You aren't telling me the computer model, processor, nor size of USB disk. Maybe replacing "xor dx,dx" just below the "disk:" label with "mov dx,0x0080", cannot guarantee it because I don't have tested it, not sure if the USB disk will be available at that drive number.

jakiki6 commented 4 years ago

I tried to add a "mov byte [0xffff], dl" at the direct start and a "mov dl, byte[0xffff]" below the "xor dx, dx" but this doesn't solve the problem

piranna commented 4 years ago

If you are booting from USB, probably it's due to the emulated mode. More modern BIOS / UEFI boards can identify it as a USB hard disk, but some older ones can emulate USB drives as a hard drive, floppy disk or CD-ROM. Also CD-ROMs could be able to emulate themselves as hard disk or floppy disk... You would need to check what emulation mode (if any) is being used by your board when accessing the floppy disk, and continue from there.

jakiki6 commented 4 years ago

Ok nvm I have my own fork which works fine.

nanochess commented 4 years ago

Glad you could make it to work.

I've a Lenovo laptop with bootable USB but I don't have had the time to research it and make it to work.

It is still in my TO-DO list.

jakiki6 commented 4 years ago

Btw you can check out my fork here I've put a lot of work in it and it has some cool features.