ghaerr / elks

Embeddable Linux Kernel Subset - Linux for 8086
Other
963 stars 103 forks source link

FAT flash disk not detected #320

Closed mfld-fr closed 4 years ago

mfld-fr commented 4 years ago

(Moved from #306)

@georgp24 wrote:

I wrote fd1440.bin to a real floppy and booted my PC from an USB floppy disk drive with that. I can log in and use ELKS. However, both hard disks installed are NTFS so I cannot mount a FAT disk. I put in a FAT flash disk but that was not detected.

image1

image2

Mellvik commented 4 years ago

@ghaerr,

let me know when you need an HD image with extended partitions, I’ll ‘dropbox’ you one.

—Mellvik

  1. apr. 2020 kl. 08:41 skrev Gregory Haerr notifications@github.com:

was not aware ELKS supports just 4 primary partitions per disk.

It is supposed to support extended partitions, but I have never tested that, since I don't have any disk images with extended partitions on them.

I could split that into a FAT32 and FAT16 partition for testing.

For now, that would be great, since there has been little testing of the 4 primary partitions, which I'm thankful you are testing. Once we show that the 4 primary partitions working, we can worry about extended partitions. Ultimately, I am trying to get this issue fixed, which is booting from a FAT flash disk (primary partition).

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jbruchon/elks/issues/320#issuecomment-611358035, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3WGOD6DR5AU2JDXWWOWS3RLVUX7ANCNFSM4KSMJ2SQ.

ghaerr commented 4 years ago

let me know when you need an HD image with extended partitions

Thanks @Mellvik, yes please send me one. Can you also screenshot or show the primary and extended partition tables for it? Also, finally got ttyS0 redirection working on QEMU and have found more issues, including the /dev/tty bug, elvis crashing, and init is running 3 getty's per line! PR coming after I've figured it all out.

Mellvik commented 4 years ago

Wow, Combined with my previous response (#515), It sounds to me you have a qemu problem!!

I can help you set up a working virtualbox w serial & netcat any time.

M

  1. apr. 2020 kl. 16:09 skrev Gregory Haerr notifications@github.com:  let me know when you need an HD image with extended partitions

Thanks @Mellvik, yes please send me one. Can you also screenshot or show the primary and extended partition tables for it? Also, finally got ttyS0 redirection working on QEMU and have found more issues, including the /dev/tty bug, elvis crashing, and init is running 3 getty's per line! PR coming after I've figured it all out.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

ghaerr commented 4 years ago

Can you also screenshot or show the primary and extended partition tables for it?

I don't need a screenshot of the extended partitions on the disk you're sending me, as much as I need to know which partitions are normal and which are extended. We don't yet have devices created for more than 4 partitions, so it would be nice if the first 2-3 were normal partitions and the last was extended. But send over whatever you have, thanks!

Mellvik commented 4 years ago

@ghaerr -- Here's an image with extended partitions: https://www.dropbox.com/s/5h420xna20f4nkt/extended.img?dl=0 I haven't been able to boot it with qemu - but it mounts fine from elks and elks does a fine analysis of the contents in the boot messages. Partition 1 is normal, part 2 is container for extended, part 3 & 4 are logical partitions.

-Mellvik

Skjermbilde 2020-04-10 kl  19 26 01
ghaerr commented 4 years ago

Thanks @Mellvik!

I got the image, and created a /dev/bda5 and bda6, which allowed ELKS to mount the two extended partitions. Both extended partitions show as 30M each, FAT16, and are empty. Is that correct? I will submit a PR that creates /dev/bda5-8 but want to make sure the partitions are empty so I know things work.

Mellvik commented 4 years ago

@ghaerr, yes, that's right. Only the primary (and first) partition contains data. All partitions are 30M, like you observed.

--Mellvik

ghaerr commented 4 years ago

Hi @georgp24,

Are you satisfied with the hard disk/flash support? If so, please close this issue, thanks!

georgp24 commented 4 years ago

I think it works as well as one can expect. So I suggest to close this issue. I does not show a button to close it though.