Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

It's not a programming question, but I would appreciate your help! (Linux)

+3 votes
asked Oct 1, 2023 by Eidnoxon (5,140 points)
So, I like linux, but I don't want to use it as my main OS. I do put Linux over Windows, but I don't wanna lose my files and Linux's package downloading system is kinda complicated for me. I wanna keep windows, but I want my files to be saved on Virtualbox whenever I run Linux. Is there a way to do that? I would appreciate your help! :)

1 Answer

+1 vote
answered Oct 2, 2023 by Peter Minarik (86,220 points)
I'm not sure if I understand the question, sorry. :(

So you have Windows as your host OS and you run Virtual Box on Windows and in the virtual environment, you run Linux.

Whatever you do in your virtual environment, it will be stored in the virtual environment, including all the files you create in Linux.

Does this answer your question? What exactly are you after?
commented Oct 4, 2023 by Eidnoxon (5,140 points)
I knew I wasn't making it clear. Basically, yeah. I wanna use Linux, but I don't want to replace my main Operating System (Windows). So I just wanna use it as my side Operating System, you know? So that I could use Linux or Windows, depends on what operating system do I want to use. Does that make it more clear? (I gotta work on my english)
commented Oct 11, 2023 by Peter Minarik (86,220 points)
Oooops. I didn't see your response. Sorry. :(

Unfortunately, I'm still not clear what you're after. You originally said "I want my files to be saved on Virtualbox whenever I run Linux". That is a valid solution: have Windows as your main operating system and you run a VirtualBox on Windows and in the Virtual Box you have Linux.

Is there anything preventing you from doing that?

Alternatively, you can have dual boot, that is, when your machine starts up, you are presented with a prompt that asks what operating system you want to boot: Windows or Linux. Usually, there is a default that will be picked after say 10 seconds if the user does not decide.

For dual booting, please read this: https://www.freecodecamp.org/news/how-to-dual-boot-windows-10-and-ubuntu-linux-dual-booting-tutorial/

Also, if I'm still not answering what you're after, please add more details. XD
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...