MOOS icon indicating copy to clipboard operation
MOOS copied to clipboard

Expand VHD disk size ?

Open RetroAndDev opened this issue 2 years ago • 11 comments

Hello, I want to know if there is a way to use a custom VHD disk or expand size of initrd.vhd. To add more files on the disk

Thanks

RetroAndDev avatar Jun 22 '22 09:06 RetroAndDev

Yes there is.

Edit: MAX SIZE is 510mb

  1. Delete path/to/moos/Tools/grub2/boot/initrd.vhd ( Copy all the files to another directory if you are resizing )
  2. Open Windows Disk Management. ( Windows Key + X, then press K )
  3. Click on Action -> Create VHD
  4. Set the location to path/to/moos/Tools/grub2/boot/initrd.vhd
  5. Set the size
  6. Leave all the other settings the same ( Virtual Hard Disk Format is "VHD" and Virtual Hard Disk Type is "Fixed" ) and press "OK"
  7. Right click on the new disk's information panel and select "Initialize Disk". Then select MBR, and click "OK"
  8. Right click on the new empty volume
  9. Click "New simple volume"
  10. Go through all the steps but when it asks for "Format Disk" select "Don't format Disk"
  11. Open CMD
  12. Type diskpart
  13. Select "Yes" if a UAC prompt appears
  14. Run list disk
  15. Look for the number of the disk that you just created
  16. Run select disk {disk_number}
  17. Run select partition 1
  18. Run format fs=exfat
  19. Add your files to the disk
  20. Done

elijah629 avatar Jun 24 '22 03:06 elijah629

the maximum size of initrd is 510mb because kernel loads at 0x10000000

nifanfa avatar Jun 26 '22 04:06 nifanfa

Thank you, Is it possible to use another disk than the one put in the ISO? (For example, inserting a VMDK on the machine like a real hard disk on VMWare).

RetroAndDev avatar Jun 27 '22 08:06 RetroAndDev

check out misc/entrypoint.asm

nifanfa avatar Jun 27 '22 09:06 nifanfa

the last disk that it initialize is the disk to use. so just not initialize ramdisk

nifanfa avatar Jun 27 '22 09:06 nifanfa

but you have to use ramdisk because everything that moos need is in it

nifanfa avatar Jun 27 '22 09:06 nifanfa

but you have to use ramdisk because everything that moos need is in it And if I put the files on a new disk ?

RetroAndDev avatar Jun 27 '22 16:06 RetroAndDev

yeah

nifanfa avatar Jun 28 '22 05:06 nifanfa

If I use an external VHD, with over 500mb of storage, do you think that the kernel will work correctly?

RetroAndDev avatar Jun 28 '22 20:06 RetroAndDev

it will

nifanfa avatar Jul 03 '22 08:07 nifanfa

@ArtOS-Developper Are you trying to view data in external VHDs within MOOS?

Dell-Optiplex-390 avatar Sep 13 '22 20:09 Dell-Optiplex-390