Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand VHD disk size ? #34

Open
RetroAndDev opened this issue Jun 22, 2022 · 11 comments
Open

Expand VHD disk size ? #34

RetroAndDev opened this issue Jun 22, 2022 · 11 comments

Comments

@RetroAndDev
Copy link

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

@elijah629
Copy link
Contributor

elijah629 commented Jun 24, 2022

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

@nifanfa
Copy link
Owner

nifanfa commented Jun 26, 2022

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

@RetroAndDev
Copy link
Author

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).

@nifanfa
Copy link
Owner

nifanfa commented Jun 27, 2022

check out misc/entrypoint.asm

@nifanfa
Copy link
Owner

nifanfa commented Jun 27, 2022

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

@nifanfa
Copy link
Owner

nifanfa commented Jun 27, 2022

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

@RetroAndDev
Copy link
Author

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

@nifanfa
Copy link
Owner

nifanfa commented Jun 28, 2022

yeah

@RetroAndDev
Copy link
Author

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

@nifanfa
Copy link
Owner

nifanfa commented Jul 3, 2022

it will

@Dell-Optiplex-390
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants