Sunday, May 12, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 923  / 3 Years ago, wed, june 2, 2021, 4:46:24

I currently have a PC with Windows 10 and a 1 TB SSD. I'm planning on partitioning the disk and installing Ubuntu on the other partition, so that I can have dual boot. My question is; are the partitions totally separate? Meaning that if I'm running my PC with Windows on partition A, do I have access to the files stored on partition B where Ubuntu is installed? And likewise, say I create a .java file for work while working on Ubuntu on partition B, can I store this file on partition A and have access to this no matter which OS I'm currently on?



Will it matter where my files (not OS) are stored, so I should consider this when choosing the size of my partitions?


More From » dual-boot

 Answers
5

My question is; are the partitions totally separate?




Yes.



There are no parts of the HDD or SSD that belongs to both partition A and Partition B.




Meaning that if
I'm running my PC with Windows on partition A, do I have access to the
files stored on partition B where Ubuntu is installed?




No.



Windows does not read the partition formats used by Ubuntu, ext4 by default. The formatting requirements of Windows and Ubuntu are different. Ubuntu cannot be installed in NTFS, or FAT formatted partitions that Windows can read. There are third party softwares for Windows that can be used as a workaround. However, these workarounds are known to corrupt files.




And likewise,
say I create a .java file for work while working on Ubuntu on
partition B, can I store this file on partition A and have access to
this no matter which OS I'm currently on?




Yes.



Ubuntu can read partitions formatted as FAT, or NTFS that are commonly used by Windows. The partitions created by Windows such as the Windows System Partition, commonly known as the C Drive, are not mounted by Ubuntu by default. You can change the default and mount the C drive or the the D drive from Windows in a suitable folder. Partitions need to be mounted in a folder to be used in Ubuntu.




Will it matter where my files (not OS) are stored, so I should
consider this when choosing the size of my partitions?




It Depends.



So if you create a partition C formatted NTFS (may be called the D Drive) specifically for keeping data files and set Ubuntu to automatically mount this partition to a suitable mount-point, then you can access this partition from both Ubuntu and Windows.



There are some considerations



Fast Boot in Windows



This option set by default in most Windows installation. This option does not shut Windows down properly, but put it in hibernate like state. A side effect of this option is the Windows partitions are marked "dirty" when Windows is shutdown using the fast boot option. Under this condition Ubuntu cannot fully access the Windows system and data partitions.



Ubuntu /home



The /home folder in Ubuntu contains sub-folders for each user, where the user's personal data is saved by default. Instead of using the /home folder one can mount a partition (say partition C) using the mountpoint /home.



However, the /home partition cannot be in the NTFS format as personal settings and configuration files are also stored in the /home/$USER folder and some of these configuration files need specific read/write/execute permissions that Ubuntu can understand. If the /home is a partition, rather than just a regular folder in / partition, it needs to be in a Linux based format such as ext4, not NTFS.



There are ways to overcome the limitations of NTFS partition so they can be used with Ubuntu as / or /home partition. But these methods are neither straight forwards nor 100 percent compatible with Windows.



Hope this helps


[#4794] Friday, June 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
skipu

Total Points: 366
Total Questions: 114
Total Answers: 112

Location: Saudi Arabia
Member since Mon, Sep 5, 2022
2 Years ago
;