get floppy sector filename
- matias_beretta
- Member
- Posts: 101
- Joined: Mon Feb 26, 2007 3:39 pm
get floppy sector filename
Hello, i am making a real mode os and i would like to know how can i get the filename of a disk sector. lots of thanks. MATI argentina
Are you stupid? Before you ask out, THINK about a question a little bit. Ok, i think you want a filename of any file on the floppy yeah? so Floppy has 2 heads, each of them has 80cylinders, each cylinder has 18 sectors in it. Sector size is 512bytes so 2*80*18*512 / 1024 = 1.44mb capacity. I'm talking about 1.44mb 3.5inches floppy. Files exists only virtually, really filesystem owns them. Filesystem is in the beginning of the floppy, probably FAT12, cause nobody uses anothers FS for floppies. Now, you must to calculate the addresses of where filenames in the FS header structure are, and where data begins. If you are a newbie, don't hope to get answer like "oh yeah it's easy as a piece of ****, just send filename to the floppy and it will read it. Floppy is difficult to programm device and FAT12 filesystem is simple, but NOT FOR NEWBIES so maybe get out to work on something easier, like writing Hello world from bootsector ah?
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
That was rather blunt.... xsix..
Although I can't say I agree with this:
I myself have no desire to use such a limited file system, Even on floppy disks..

Although I can't say I agree with this:
I won't comment on your lack of English skills, But I will say.. Not everyone uses FAT on floppies.xsix wrote:cause nobody uses anothers FS for floppies..
I myself have no desire to use such a limited file system, Even on floppy disks..
any other ideas? floppy is not big enough for a file system with advanced features. I haven't seen that anyone else used another filesystem than FAT12 on standart floppy. Oh no, i saw, RAW filesystem when only head:track:sector is loaded when needed. Anyway you can create your own, or just modificate FAT12 as you wish
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
People format floppies using the EXT2 file system all the time.. Taking advantage of things like permissions.xsix wrote:any other ideas? floppy is not big enough for a file system with advanced features. I haven't seen that anyone else used another filesystem than FAT12 on standart floppy. Oh no, i saw, RAW filesystem when only head:track:sector is loaded when needed. Anyway you can create your own, or just modificate FAT12 as you wish
I myself have formatted a few disks using OpenBSD's FFS many times..
So stop spreading lies..
Good advice, Try following it...xsix wrote:Are you stupid? Before you ask out, THINK about a question a little bit.

- AndrewAPrice
- Member
- Posts: 2311
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
I used to use ext2, but I switched to FAT12. My reason for this is so other people can download a floppy image and add their own modules under any operating system (ext2 would require Windows users to download an ext2 IFS).
My OS is Perception.
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
oh yes, i haven't grown up on the computer, i own it just a few years but that's not a point. use another filesystem on floppy to set permissions or whatever. I don't know, maybe in the past this was usable i don't think that 1.44megabytes floppy disk is a perfect storage which needs advanced filesystem. I love floppies, but get with the times, now there are DVDs up to 20gb(or much more) and there is no reason to use floppies for information storage imho.
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
I don't think you know very much about filesystems or storage mediums..xsix wrote:oh yes, i haven't grown up on the computer, i own it just a few years but that's not a point. use another filesystem on floppy to set permissions or whatever. I don't know, maybe in the past this was usable i don't think that 1.44megabytes floppy disk is a perfect storage which needs advanced filesystem. I love floppies, but get with the times, now there are DVDs up to 20gb(or much more) and there is no reason to use floppies for information storage imho.
Using ext2 on a floppy would be helpful for someone doing work on an OS that supports file permissions.
And there are not any 20gb DVD's.. So you're dreaming..
DVD is 4.7 GB (single layer), 8.5 GB (dual layer)
HDDVD is 15 GB (single layer) and 30 GB (dual layer)..
Blu-Ray is 25 GB (single layer), 50 GB (dual layer)..
HDDVD and Blu-Ray have much higher capacities.. But writers and blank disks are not widely available or cheap.
I know, its not like Windows has at least 90% market share... And it defiently isn't that computers are designed for ease of use and not so evey end user is forced to find, comiple, understand and install every little piece of code they need to use. So definetly crazy to suppor those 20 ignorant windows users whose lifes don't revolve around wanting to know all the details of computers.Brynet-Inc wrote:Oh no!! We wouldn't want them to break a sweat or anything...MessiahAndrw wrote:(ext2 would require Windows users to download an ext2 IFS)
Seriously, Why do people accommodate "Windows" users.. It's silly.
The Windows philosophy might suck, but there is definetly not one better, the UNIX-likes are just not user friendly, however many Windows look alike desktops you throw over them.