Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

YSDDT 0.1.2 (DOS Toolkit for Working with Disks & Partitions) (Announce)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 26.09.2025, 15:23

> > AFAIK Free Fdisk doesn't offer such options?
>
> Free FDISK offers the EXPERIMENTAL ALIGN_4K option, which aligns the start
> of partitions. This is however not enough. The important thing is that the
> data clusters are aligned to 4K (which implies they are at least 4K in
> size). It is the job of the format utility to make sure that this is the
> case. FreeDOS FORMAT to my knowledge cannot do this automatically. You
> could do this manually though by adjusting the reserved sector count etc.
> for a partition with appropriate cluster size. But I think we agree that
> this is a pain in the a...

My bootimg script uses NASM to create a file system image. It supports two relevant options: _ALIGNDATA and _MBR_ADD_GAP_TO_ALIGN. They're used to align the data start relative to the partition start or relative to the MBR here. As you suggest this is done by adding to the reserved sectors of the file system.

---
l

 

Complete thread:

Back to the forum
Board view  Mix view
22649 Postings in 2111 Threads, 402 registered users, 856 users online (1 registered, 855 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum