YES
my /etc/fstab
for example is
UUID=800e924a-a869-4152-9503-9d9cfecbd16e / xfs defaults 0 0
UUID=4f3da85a-71a9-4f6e-bc5f-dfd23a880b08 /boot xfs defaults 0 0
UUID=1FAB-9515 /boot/efi vfat umask=0077,shortname=winnt 0 0
/dev/disk/by-uuid/e0791b9e-b620-4274-9857-78389b10f5a5 /data auto nosuid,nodev,nofail,x-gvfs-show 0 0
# my /data is a 15tb hardware raid-5, comes in as /dev/sda1
# my root partition comes in as /dev/sdb3, with /boot and /boot/efi as sda2 and sda1.
I do not have /home
as mounted as a separate partition. If it was you would see it as an entry in /etc/fstab
as such, it will be quite obvious.
In your case you want to make /home
on your root partition, so here is what I would do
- your existing home is mounted as a separate partition, reference it from
/etc/fstab
mkdir /newhome
cp -rp /home/* /newhome/
umount /home
rmdir /home
mv /newhome /home
- remove the mount point of
/home
from your /etc/fstab
; that's all that really needs to happen if you want to have /home
on your root /
partition {which is already being mounted in /etc/fstab as /
)
note: the umount command will likely result in failure if logged in as a user where that mount will inherently be busy. So if you log in as root, whose home directory is /root
and not under the mounted /home
you should have no problem.
note2: you don't even need to use the /home
folder convention, simply change the location of user folders in /etc/passwd
to wherever you want those user account home folders to reside. For example all my user accounts on my server specified in /etc/passwd
have home folders under /data/users/<name>
. I do have a /home
folder present, but it has nothing in it. My /data
is mounted in /etc/fstab
and is a raid-5 bunch of disks making 10 tb worth of space.