VOGONS


First post, by mike_canada

User metadata
Rank Member
Rank
Member

maybe it's just FDISK, but I'm having one heck of a time trying to boot from the local hard drive after an OS transfer.

Let me explain.

I have a CD which represents a bootable MS-DOS 6.22 hard drive.

I then run FDISK and change drive letters to D to access the hard drive, and I create a partition to use maximum space. I reboot the computer then I format drive D as a system disk with this command:

format d:/s

then I copy all the contents from the CD to the hard drive being careful not to overwrite existing files.

I then reboot the computer and remove the CD. and then it asks me to insert the system disk (at the bios level). So I do it, and maybe the MBR is damaged, so I try:

fdisk /mbr

and I get this error:

Error reading fixed disk. The master boot code has NOT been updated.

I also tried in fdisk to set the active partition to be on my hard drive and it gives me this error:

Current fixed disk drive: 2
Only partitions on Drive 1 can be made active.

yet my drive 1 is the image on the bootable CD and drive 2 is the actual writable hard drive.

What could I be doing wrong?

Reply 1 of 10, by darry

User metadata
Rank l33t++
Rank
l33t++
mike_canada wrote on 2021-08-13, 01:28:
maybe it's just FDISK, but I'm having one heck of a time trying to boot from the local hard drive after an OS transfer. […]
Show full quote

maybe it's just FDISK, but I'm having one heck of a time trying to boot from the local hard drive after an OS transfer.

Let me explain.

I have a CD which represents a bootable MS-DOS 6.22 hard drive.

I then run FDISK and change drive letters to D to access the hard drive, and I create a partition to use maximum space. I reboot the computer then I format drive D as a system disk with this command:

format d:/s

then I copy all the contents from the CD to the hard drive being careful not to overwrite existing files.

I then reboot the computer and remove the CD. and then it asks me to insert the system disk (at the bios level). So I do it, and maybe the MBR is damaged, so I try:

fdisk /mbr

and I get this error:

Error reading fixed disk. The master boot code has NOT been updated.

I also tried in fdisk to set the active partition to be on my hard drive and it gives me this error:

Current fixed disk drive: 2
Only partitions on Drive 1 can be made active.

yet my drive 1 is the image on the bootable CD and drive 2 is the actual writable hard drive.

What could I be doing wrong?

Is BIOS bootsector virus protection enabled ? Often labeled Chipaway antivirus in BIOS setup .

Reply 2 of 10, by Caluser2000

User metadata
Rank l33t
Rank
l33t

What was the hdd set up as? Master, Slave or cable select?

What system are you doing this giggery pokery on? Real or some VM?

There's a glitch in the matrix.
A founding member of the 286 appreciation society.
Apparently 32-bit is dead and nobody likes P4s.
Of course, as always, I'm open to correction...😉

Reply 4 of 10, by Caluser2000

User metadata
Rank l33t
Rank
l33t

That didn't answer my questions.. oh welll.....

There's a glitch in the matrix.
A founding member of the 286 appreciation society.
Apparently 32-bit is dead and nobody likes P4s.
Of course, as always, I'm open to correction...😉

Reply 5 of 10, by mike_canada

User metadata
Rank Member
Rank
Member
Caluser2000 wrote on 2021-08-13, 01:40:

What was the hdd set up as? Master, Slave or cable select?

Its a flash drive set as master and the bios recognizes it fine and I can write data to it.

What system are you doing this giggery pokery on? Real or some VM?

Real Dell Wyse thinclient with an external USB DVD/RW drive

Reply 6 of 10, by weedeewee

User metadata
Rank l33t
Rank
l33t

blah.

After you set up the partition the first time around, and can't get the drive/cf to boot, If you then boot again off the cd, is the hard drive/cf card still the second drive?
If it isn't and it's the first drive, you should be able to run fdisk /mbr and activate the partition, which should allow the flash drive to then boot.
if it isn't... well you'll need a different tool, or some debug magic to edit the mbr on the flash drive, activate the partition and make sure the mbr boot code is present.

Right to repair is fundamental. You own it, you're allowed to fix it.
How To Ask Questions The Smart Way
Do not ask Why !
https://www.vogonswiki.com/index.php/Serial_port

Reply 7 of 10, by mike_canada

User metadata
Rank Member
Rank
Member
weedeewee wrote on 2021-08-13, 20:29:
blah. […]
Show full quote

blah.

After you set up the partition the first time around, and can't get the drive/cf to boot, If you then boot again off the cd, is the hard drive/cf card still the second drive?
If it isn't and it's the first drive, you should be able to run fdisk /mbr and activate the partition, which should allow the flash drive to then boot.
if it isn't... well you'll need a different tool, or some debug magic to edit the mbr on the flash drive, activate the partition and make sure the mbr boot code is present.

The cf drive is always identified as the second drive and the bootable CD is always identified as a read-only primary hard drive partition.

What tool that would work with Dos 6.22 and up would you recommend I use?

Reply 8 of 10, by weedeewee

User metadata
Rank l33t
Rank
l33t
mike_canada wrote on 2021-08-13, 22:12:
weedeewee wrote on 2021-08-13, 20:29:
blah. […]
Show full quote

blah.

After you set up the partition the first time around, and can't get the drive/cf to boot, If you then boot again off the cd, is the hard drive/cf card still the second drive?
If it isn't and it's the first drive, you should be able to run fdisk /mbr and activate the partition, which should allow the flash drive to then boot.
if it isn't... well you'll need a different tool, or some debug magic to edit the mbr on the flash drive, activate the partition and make sure the mbr boot code is present.

The cf drive is always identified as the second drive and the bootable CD is always identified as a read-only primary hard drive partition.

What tool that would work with Dos 6.22 and up would you recommend I use?

I can't recommend anything to you since I'm lacking this knowledge you seek, though my suggestion would be to google for it.
my first google attempt leads me to this https://thestarman.pcministry.com/asm/mbr/FDISK.htm which offers some insights into fdisk and some alternatives which might suit your need.

A few other alternatives for the older MS-FDISK versions would be GDISK and GDISK32 from Norton Ghost, AEFDISK and the utility, Ranish Partition Manager, which can also format the partitions it creates (supports FAT12, FAT16 and FAT32).

and on the same site https://thestarman.pcministry.com/tool/de/PTS-DE.htm

though all of this is just from a quick google. I'm pretty sure someone else has some better suggestions for a good command line fdisk replacement for dos.

Right to repair is fundamental. You own it, you're allowed to fix it.
How To Ask Questions The Smart Way
Do not ask Why !
https://www.vogonswiki.com/index.php/Serial_port