HOW TO move /home to new drive? Using SSD/HDD

I recently installed OPENSUSE gnome and I must say YOU GUYS ARE REALLY GOOD AT FIXING ISSUES.
Currently I have OPENSUSE gnome installed on an SSD and have a HDD I recently formatted.

**SSD:
**SWAP - 4.3GB
FAT 32 BOOT EFI - 683MB
/ (XFS FS)- 21GB
/HOME (XFS FS) - 206GB
UNALLOCATED - 18GB

HDD:
XFS FS - 4TB

I would like to change this to:

SSD:
SWAP - 4.3GB
FAT 32 BOOT EFI - 683MB
/ (XFS FS)- 227GB
UNALLOCATED - 18GB

HDD:
/HOME (XFS FS): 4TB

Any suggestions on how to go about doing this?
I’m aware you can only grow XFS file systems and cannot shrink them. So I would need to copy over the home partition and point the system to the new location, delete old /home on SSD, expand / to 227GB.
Thanks in advance!

Why so much to root?? 20 gig is ok for most things. If we knew what you need all that space for we could perhaps offer alternatives. If you need the space for databases or such better to put that on separate partitions any why makes upgrades a lot easier

Moving home is easy just copy the files from the current home to the HD partition. Then set the mount point to that partition in the fstab or in Yast. Note copy the contents of home not home itself. /home is the mount point so will be reset when you mount the new partition.

I keep 2 root partitions one to run from and one reserved for the next OS version. Some place to test thing before committing

Hey gogal!
More or less I plan to do a lot with this system. I’m going to be using python and programming and I barely installed this system and am already 30% full, kinda bugs me. d:
I moved the /home partition using midnight commander. Deleted old, I now have a 4tb home. edited fstab to locate new home partition.

I now have a problem with growing the / partition I’ve tried xfs_growfs -d under root implying grow to max size but I just says operation skipped.
Keep in mind was logged out when I tried to run this and I can’t unmount as root is what terminal is used under. Although apparently you can grow a partition whilst mounted. help?

sudo xfs_growfs / -d
meta-data=/dev/sdb3              isize=512    agcount=4, agsize=1310784 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=0
data     =                       bsize=4096   blocks=5243136, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal               bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data size unchanged, skipping
uhwok3n@linux-3cr1:~> 

I have a 500GB / :slight_smile:

Sometimes you just need to install a lot of really big applications.

I’ve figured it out.
Used a distro of linux mint via live usb and start gparted. mounted partition via disks app. Resized partition to my desired size, applied settings and rebooted opensuse. worked like a charm. Problem solved.

Just so you know only programs and some databases go to root you keep your development source and stuff in home.

Miuku and how much are you actually using??

I’m pretty much loaded up


Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sda1       30829564   8263908  20976564  29% /



Linux is not like Windows programs are generally a lot smaller. There are exception but then you get into the expensive commercial programs. Databases are default in root so if you plane on large databases then you are better off putting them on a separate partition which make OS ver changes much much easier. I can’t image needing that much space just for programs you would need to install every program out there :P.

If you like to waste space then a second root partition for the next version. That is what I do I have 2 - 30 gig partitions and alternate between versions. it allows testing before committing to the new version.

On 2015-07-07 18:26, gogalthorp wrote:
>
> Just so you know only programs and some databases go to root you keep
> your development source and stuff in home.

Mail (server), news (server), fax (server), voip (server), web (server),
ftp (server), etc… all go to root :slight_smile:

That is, they go there unless you prepare an adequate and separate mount.

In the case of big commercial software, you could use /opt.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))

My point is keep root relatively small but add partitions for special usage like database or web servers etc. It is silly to mix this stuff in with the OS since the OS changes so often. Keeping data and special precesses on a separate partition make up grades much easier. I keep my VM’s on a partition that I mount as /vm. I always do a clean install to a second root partition and ones I know it is stable I will mount home and vm partitions and I’m back in business. Mean while I can drop back to the previous version if need be. This make upgrade stable and simple.

On 2015-07-08 01:06, gogalthorp wrote:
>
> My point is keep root relatively small but add partitions for special
> usage like database or web servers etc.

Yes, that’s right. That’s what I’m saying :slight_smile:


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))