My computer has two disks:
- 256 GB SSD
- 4 TB SSD
I have Linux installed on the 256 GB SSD. So / is mounted on it.
I want /home and /data to both be on the 4 TB SSD. But I don't want to create two partitions. I want everything in one partition.
Is this possible?
Edit:
- I don't want two partitions cause I don't want to have to muck with or worry about space. I want both
/homeand/datato fill up as much of the 4 TB as they need. On Windows, the 4 TB showed up asD:and I moved my home folder toD:\homeand also had aD:\data. - I don't want
/homeand/datato show the same directory structure. They are unique folders, each with their own content. - If necessary, I am willing to do a clean/fresh install and format all my disks to configure them how they need to be.
- Before my computer had Linux, I was running Windows 10. I've wiped Windows 10 and moved to Linux. There is no Windows on this system anymore.
- I don't care what the partition scheme is as long as it makes sense.
/datais intended to be read/write by any user -- if that matters.
Here is my /etc/fstab right now:
UUID=... / ext4 errors=remount-ro 0 1
UUID=... /boot/efi vfat umask=0077 0 1
UUID=... /home ext4 defaults 0 2
UUID=... none swap sw 0 0
Here is the output of lsblkl:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 3.6T 0 disk
└─sda1 8:1 0 3.6T 0 part /home
nvme0n1 259:0 0 238.5G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
├─nvme0n1p2 259:2 0 237G 0 part /
└─nvme0n1p3 259:3 0 977M 0 part [SWAP]
/homeexpendable? Or do you want to copy its content to the other disk? (2) What is the output offindmnt -T /home? (3) You wrote "On Windows, the 4 TB showed up asD:and …" – Do you want to keep using the 4 TB disk in Windows? Do you want to wipe the Windows filesystem out? Or is there room for a new Linux filesystem? Or do you want the current directory structure to show asD:\datain Windows and/datain Linux. Similarly, do you want to sharehomebetween the systems? – Kamil Maciorowski May 12 '23 at 12:46/homeis mounted on/dev/sda1. I don't want to copy anything anywhere. (2)/home /dev/sda1 ext4 rw,relatime(3) I'm not using Windows anymore. I was just saying what I did when I was running Windows. Not sharing anything with any system. I just want two folders:/homeand/datato be on my 4 TB SSD in a single partition.... – IMTheNachoMan May 12 '23 at 13:08/hometo end up in your future/home(on the 4 TB disk). It seems you don't want this data. OK. (2) OK. (3) There is or there was a Windows filesystem on the 4 TB disk. Can we wipe it out? (4) What is the output oflsblk? ([edit] the question). (5) At least your current/homeis ext4. Do you deliberately want ext4 for the future/homeand/data? Or is a solution using Btrfs and its subvolumes acceptable? – Kamil Maciorowski May 12 '23 at 13:20/etc/fstabto the question ([edit] the question). – Kamil Maciorowski May 12 '23 at 13:22/homeis already on the 4 TB device. If you are not going to share data with Windows, you can as well keep all your data in your home directory. Are there other users you want to share files with? and hence the idea ofdataas a separate mount maybe? – Kamil Maciorowski May 12 '23 at 17:56