Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Current FreeDOS fdisk utility (Users)

posted by tom Homepage, Germany (West), 28.01.2021, 22:35
(edited by tom on 28.01.2021, 23:46)

> > I didn't test partitioning yet but I found that FreeFdisk displays wrong
> > volume label on my SSD while MS Fdisk from Win98 displays them OK. I
> > checked with disk editor and both bootsector and rootdir entry contains
> > valid label. This problem also occured in old ver. 1.3.1 so it was there
> a
> > long time but I overlooked it.
>
> I can confirm the wrong disk labels. Also, it's no regression, happens with
> v1.2.1 as well.

it would be cool to have more information.

'wrong disk labels' is nothing that can be debugged.

screenshots and dump of boot sector would be a start.

in addition: FDISK bases its decision on where to find the volume label on the partition type, not the actual filesystem. could this be a problem for your system?

in addition: the relevant code is most likely PDISKIO.C, 652
      /* Check for and get the volume label on a FAT12/FAT16 partition. */
      if(IsRecognizedFatPartition(pDrive->pri_part[partnum].num_type))
        {
        if (pDrive->pri_part[partnum].num_type == 11 ||
            pDrive->pri_part[partnum].num_type == 12 )
                {
                label_offset = 71;
                }
        else
                {
                label_offset = 43;
                }
         ´ReadSector(...)

                if( sector_buffer[label_offset+10]>=32 &&
                        sector_buffer[label_offset+10]<=122 )
                  {
                  /* Get Volume Label */
                  memcpy(pDrive->pri_part[partnum].vol_label,
                        sector_buffer+label_offset,
                        11);
                  }



check yourself if that makes sense:-P

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 75 users online (0 registered, 75 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum