Op 22-8-2011 0:47, Eric Auer schreef: > You can hook int 13 function 8 (get drive parameters) and make > sure that for dl = 80 or higher, it always returns carry set > and dl = 0 to pretend having no harddisks. Of course DOS does > a lot of work for you to parse partitions, so it is a bit odd > to pretend you have none only to do that again manually later.
No idea how to do such a thing, all modifications would have to happen at the kernel I guess as that's the first thing loading, and actually assigning those driveletters. Then, again, Syslinux/memdisk documentation lists a "nopassany" parameter to disable showing harddisk. Gotta test that next I guess :) > You could also do the above and/or temporarily make int 13 > access to all harddisks behave as if all disks are empty > bit buckets. I hope you will not try to format later ;-) I've had a DIR E: at some point and ended up with batchfile content being listed. Talk about memory corruption.. > There is no built-in function in the kernel, although you can > SYS CONFIG the lba support away and hide your partitions after > the first 1024 cylinders. Later, when you load USB drivers to > do the processing on DOS block device level, you can get along > completely without int 13 CHS / LBA access anyway, depending > on what style of USB drivers you use, I guess. Again, in this > scenario, the USB driver will have to do all partition table > (MBR, chain of extra partitions) processing itself because DOS > and int 13 itself has not int 13 disk hot-plugging. Luckily it > is okay for DOS to have many drive letters managed by 1 driver. The USB drive is typically formatted with FAT32 so all FAT32/LBA code needs to stay intact or I can't access the filesystem on the USB flash drive after loading drivers. Using a FAT16 kernel would've been too easy, hehe. > The scan constants are only for doing some things in some passes > of scanning the partition table and other things in other, with > some things being skipped then. It is not about skipping disks. There's an option for *showing* partition info (of which the output is "can't get partition info" half of the time anyway), as well as an option for the scan order (MSDOS style, or general style), unfortunately nothing for only scanning partial stuff. I'll try the Syslinux stuff for starters, see if it works. Thanks for your response ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Freedos-kernel mailing list Freedosfirstname.lastname@example.org https://lists.sourceforge.net/lists/listinfo/freedos-kernel