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 Japheth Homepage, Germany (South), 29.01.2021, 06:37
(edited by Japheth on 29.01.2021, 07:35)

> screenshots and dump of boot sector would be a start.

The infos displayed by fdisk don't come from the boot sector.
Here are the partition tables:

BI Type                    Start-C/H/S   End-C/H/S     Sector     Size      MB
-------------------------------------------------------------------------------
00 83 Linux ext2fs            0/ 32/33 1023/254/63       2048  204800000 100000
00 82 Linux Swap           1023/254/63 1023/254/63  204802048   16777216   8192
00 0c Prim. DOS,FAT32,LBA  1023/254/63 1023/254/63  221579264   16777216   8192

BI Type                    Start-C/H/S   End-C/H/S     Sector     Size      MB
-------------------------------------------------------------------------------
80 0c Prim. DOS,FAT32,LBA     0/  0/ 1 1006/254/63       2048   65536000  32000
00 83 Linux ext2fs         1007/  0/ 1   63/254/63   65538048   67108864  32768


For disk 2, fdisk displays as disk label "ve partitio", and that's exactly the string at offset 0x47 (decimal 71) of sector 0 (the grub modified MBR, the full string there is "no active partition found").

So fdisk translates the Start-CHS (0/0/1) into a LBA and reads this sector. That's wrong for both FAT32 partitions on Disk 1 and 2.

---
MS-DOS forever!

 

Complete thread:

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