I made a C program for school which allow me to write directly a message on a floppy disk sector in FAT. I manage to read this message corretly but the question asks me if I can read it after formatting it into EXT2.
So I would like to know if it is possible or not and why ?
I tested myself and I can’t read the message but i don’t know if it’s good.
Thanks
I made a C program for school which allow me to write directly a
Share
Have you made a
hexdump -C /dev/sdXof your disk before and after your formatting?It would be interesting to view the difference, I think.
Concerning your outcome so far, according to this article on analyzing the ext2 filesystem, the data on your floppy would begin by 1024 bytes of zeros that make up the boot block. Then would follow the superimportant superblock.
Assuming a sectorsize of 512 bytes (I don’t know how probable that is for your setting) your message was indeed overwritten by the ext2-superblock. Honorable end!