r/virtualbox • • Nov 05 '26

Help Access To Drive Stops Working

I've been trying to use a real CF card as my drive instead of a virtual disk image. I have it working for one session, but as soon as I restart the VM it becomes a read only drive as far as VirtualBox is concerned.

Why is it becoming read only, and how do I stop it from becoming read only?

I've searched many places including the manual and cannot find an answer.

Running on Windows 11, using a VMDK file to redirect to the CF card, which was wiped entirely in Windows. Then it was formatted using the guest OS.
Once the guest OS finishes installing, I have to restart. As soon as I do that, I can no longer write any new files to the CF card from the guest OS but can still boot off of it. Windows still can write files to it.
Guest OS is DR DOS 5.
VirtualBox-7.2.22-175245-Win.exe

I have not installed any additions, enabled, or disabled anything from base installation.

3 Upvotes

10 comments sorted by

•

u/AutoModerator Nov 05 '26

This is just a friendly reminder in case you missed it. Your post must include:

  • The version of VirtualBox you are using
  • The host and guest OSes
  • Whether you have enabled VT-x/AMD-V (applicable to all hosts running 6.1 and above) and disabled HyperV (applicable to Windows 10 Hosts)
  • Whether you have installed Guest Additions and/or Host Extensions (this solves 90% of the problems we see)

PLUS a detailed description of the problem, what research you have done, and the steps you have taken to fix it. Please check Google and the VirtualBox Manual before asking simple questions. Please also check our FAQ and if you find your question is answered there, PLEASE remove your post or at least change the flair to Solved.
If this is your first time creating a virtual machine, we have a guide on our wiki that covers the important steps. Please read it here. If you have met these requirements, you can ignore this comment. Your post has not been deleted -- do not re-submit it. Thanks for taking the time to help us help you! Also, PLEASE remember to change the flair of your post to Solved after you have been helped!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/The-Tadfafty Nov 05 '26

# Disk DescriptorFile

version=1

CID=7045792e

parentCID=ffffffff

createType="fullDevice"

# Extent description

RW 500736 FLAT "\\.\physicaldrive4" 0

# The disk Data Base

#DDB

ddb.virtualHWVersion = "4"

ddb.adapterType="ide"

ddb.geometry.cylinders="496"

ddb.geometry.heads="16"

ddb.geometry.sectors="63"

ddb.uuid.image="d3793c1f-74c5-4fc3-9015-d283221a10fe"

ddb.uuid.parent="00000000-0000-0000-0000-000000000000"

ddb.uuid.modification="a7e0ddd0-7d71-4704-8801-5a99a91946bb"

ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"

ddb.geometry.biosCylinders="496"

ddb.geometry.biosHeads="16"

ddb.geometry.biosSectors="63"

1

u/The-Tadfafty Nov 05 '26

This is what the VMDK file contains.

1

u/The-Tadfafty Nov 05 '26

00:00:34.048261 PIIX3 ATA: LUN#0: disk write error (rc=VERR_ACCESS_DENIED iSector=0x134 cSectors=0x1)

00:00:34.048581 VMMDev: Guest Log: BIOS: int13_harddisk: function 03, error 06 !

00:00:34.048603 PIIX3 ATA: Ctl#0: RESET, DevSel=0 AIOIf=0 CmdIf0=0x30 (-1 usec ago) CmdIf1=0x00 (-1 usec ago)

00:00:34.048633 PIIX3 ATA: Ctl#0: finished processing RESET

00:00:34.048734 PIIX3 ATA: LUN#0: disk write error (rc=VERR_ACCESS_DENIED iSector=0x134 cSectors=0x1)

00:00:34.049006 VMMDev: Guest Log: BIOS: int13_harddisk: function 03, error 06 !

00:00:34.049024 PIIX3 ATA: Ctl#0: RESET, DevSel=0 AIOIf=0 CmdIf0=0x30 (-1 usec ago) CmdIf1=0x00 (-1 usec ago)

00:00:34.049051 PIIX3 ATA: Ctl#0: finished processing RESET

00:00:34.049135 PIIX3 ATA: LUN#0: disk write error (rc=VERR_ACCESS_DENIED iSector=0x134 cSectors=0x1)

00:00:34.049398 VMMDev: Guest Log: BIOS: int13_harddisk: function 03, error 06 !

00:00:34.049415 PIIX3 ATA: Ctl#0: RESET, DevSel=0 AIOIf=0 CmdIf0=0x30 (-1 usec ago) CmdIf1=0x00 (-1 usec ago)

00:00:34.049439 PIIX3 ATA: Ctl#0: finished processing RESET

00:04:16.695118 Changing the VM state from 'RUNNING' to 'SUSPENDING'

1

u/The-Tadfafty Nov 05 '26

Log of everything happening while it is happening.

1

u/hurbertkah 29d ago

A CF card must be the worst medium you could use for a VM. Even a cow filesystem like btrfs on a real SSD is not recommended.

1

u/The-Tadfafty 29d ago

I'm just using the VM to install things to the CF card, after that, I'm done with the VM.

1

u/Face_Plant_Some_More 29d ago edited 29d ago

Running on Windows 11, using a VMDK file to redirect to the CF card, which was wiped entirely in Windows. 

If you mean that you using the vmdk file to allow the VM to access the CF card directly, through rawdisk access, the only way it will work relibily on a Windows Host is if you run Virtual Box with administrative privileges / rights. This is a classic Windows limitation -- anything less than an admin level privileges is denied direct access to storage resources. This not an issue with Linux Hosts.

1

u/The-Tadfafty 29d ago

The thing was, I was running it with administrative privileges.

1

u/Face_Plant_Some_More 29d ago

The read the rest of the linked thread and use lockdismount.

Or, run Virtual Box on a hostos, like linux, that does not exhibit the same storage access permissions issues.