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 RayeR Homepage, CZ, 02.02.2021, 13:18
(edited by RayeR on 02.02.2021, 15:37)

I put printing in PDISKIO.C line 588 , func void Get_Partition_Information()

      /* 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;
                }
printf("\nLABEL READ FROM: disk=%u, part=%u, C=%u, H=%u, S=%u", drivenum+128, partnum, pDrive->pri_part[partnum].start_cyl, pDrive->pri_part[partnum].start_head, pDrive->pri_part[partnum].start_sect);
                Read_Physical_Sectors((drivenum+128)
                 ,pDrive->pri_part[partnum].start_cyl
                 ,pDrive->pri_part[partnum].start_head
                 ,pDrive->pri_part[partnum].start_sect,1);




When I go to CHS 277, 0, 1 in Norton Disk Editor I got bad location - the same that Fdisk tries to load but there's no real boot sector. So it's probably inconsistent with LBA as Symantec PartitionInfo 8.0 suggest the partition should start at 277, 96, 17. I don't remember what tool I had used for partitioning the SSD, it's many years go. Maybe gparted as I wanted SSD to have sector block aligned instead of track aligned.
http://rayer.g6.cz/1tmp/part.jpg
So should I adjust CHS in partition table? I wonder that damn CHS didn't died many years ago, eg. SCSI drives never used it. Instead having partition entry with duplicate LBA and CHS values we could have one 64b LBA that will be enough for many years in future...

---
DOS gives me freedom to unlimited HW access.

 

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