r/linuxquestions • • 10d ago

Advice Dual booting, same laptop SSD: creating a shared partition?

In the past, I would just have all documents on Windows and then mount the drive into Fedora when I needed to access something.

Is it safer to:

  1. ...continue what I was doing and just mount Windows into Fedora when I want to access files there or...
  2. ...create a third partition format NTFS that has all of the shared files and then mount that instead?

I like the portability of my laptop and so it is nice to have my files come with me, but from what I understand about how Windows is funny with drives neither option is safe, so I am open to suggestions on how to improve the safety given the constraints or a safer setup that I should consider in the future.

1 Upvotes

6 comments sorted by

1

u/LeateWonceslace 10d ago

When I started I was dual-booting Linux Mint and win10. At the time I tried to make an exFAT partition on my NVME for the two to share as storage. It did not work out very well. Not too long after, when I reinstalled Mint and moved on to running win10 in a VM, I switched to using this and USB passthrough to share data easily. I would just do that from the get-go if I were going to do it again.

So I'd either use external storage or keep directly accessing the windows NTFS partition rather than making one on the same medium.

1

u/Avengineering 10d ago

Thank you so much, this is a great suggestion! I absolutely will be buying one of these, I had no idea you could get low profile drives like this! Seeing as we tread similar paths, I definitely will be considering booting up a VM in the future instead of dual booting.

1

u/Netblock 10d ago

1 is safe. If you do full-disk encryption, linux can mount bitlocker, but I can't attest how difficult/annoying it is.

If you got RAM, and want to get into it, try VM'ing windows.

1

u/ptoki 10d ago

Generally it was better to keep files on separate drive/partition on windows. This way the C: drive had the apps and system and a bit of breathing space and D: drive had files/movies/music/photos/games.

That worked ok until mid win10 where apps forced users to use the dedicated locations for files. You could move them or just remember the apps to not let them nets in C but repoint folders/projects to your D: drive.

So If you ask me, I would have D: drive still and keep as much files there as possible and make apps nesting there.

Linux would tap into this and you could still access your music/video/photos/docs there.

BUT! Keep in mind two things: Sometimes the same app on linux writes files differently than on windows (line endings, national characters and such. Even if files are available, the apps may complain about their content.

And the other issue is dualboot. I dont recommend it. Never. It is not worth to do so.

You can have a virtualbox VM and share a bunch of folders between OS-es and it would work well.

1

u/Cyber_Faustao 9d ago

Option two is basically equivalent/identical safety wise to option one. And one of my rules-of-thumb is: keep it simple, so less partitions, less complexity, better experience.

so I am open to suggestions on how to improve the safety given the constraints or a safer setup that I should consider in the future.

Option A) Separate which files/folders you are going to need in each OS and only store those on the respective OS. Pros: safest (ie: no using NTFS on Linux, and no EXT4/BTRFS on Windows). Cons: annoying

Option B) Keep a full copy of all of your files on both. Pros: no reboot needed to access files. Cons: you need a way to syncronize the files, like syncthing+a phone that has the same folder(s) shared, so it sees all changes and syncs it.

Option B) Use network storage: instead of having the files in a NAS, then access it via SSHFS, NFS, SMB or similar. Pros: flexible and good performance. Cons: you need to set it up on a separate device.

Option C) Use cloud storage, dropbox works great on Linux according to one of my friends. Pros: more flexible. Cons: cost, privacy.

Option D) Passthrough the Windows drive to a VM so you can use it while booted on Linux. Pros: safe. Cons: Complex, and may or may not require having a separate drive for each OS (I never tested booting a specific partition, should be possible with enough trial and error, (ab)using dm-linear/losetup and similar tools).

Option E) (Recommended either way, and probably the easiest) Disable Fast Startup on Windows (not the BIOS, that doesn't matter). Use the FUSE NTFS module on Linux since it is more mature, and in any hint of error, use Windows to repair it (chdsk.exe). Also, while you are at it, make sure you have a solid backup plan, you should have one regardless, but if you don't I recommend looking into borgbackup/restic and either backup your data to a separate drive (ie: external USB drive), separate PC, or a cloud service (should be private if you use the encryption features in those tools).