Answer the question
In order to leave comments, you need to log in
How to expand /home in Ubuntu?
Good day to all. I want to expand the /home partition by biting off the space from the NTFS volume (/dev/sda3), how can I do this? Screenshot from GParted and mount output attached
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=2907604k,nr_inodes=726901,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=587148k,mode=755)
/dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=2362)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/var/lib/snapd/snaps/canonical-livepatch_95.snap on /snap/canonical-livepatch/95 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/chromium_1165.snap on /snap/chromium/1165 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core_9289.snap on /snap/core/9289 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core18_1754.snap on /snap/core18/1754 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core18_1705.snap on /snap/core18/1705 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-28-1804_116.snap on /snap/gnome-3-28-1804/116 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gimp_273.snap on /snap/gimp/273 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-34-1804_36.snap on /snap/gnome-3-34-1804/36 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-28-1804_128.snap on /snap/gnome-3-28-1804/128 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/snap-store_433.snap on /snap/snap-store/433 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gtk2-common-themes_9.snap on /snap/gtk2-common-themes/9 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gtk-common-themes_1506.snap on /snap/gtk-common-themes/1506 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-34-1804_33.snap on /snap/gnome-3-34-1804/33 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/onlyoffice-desktopeditors_43.snap on /snap/onlyoffice-desktopeditors/43 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/notepad-plus-plus_232.snap on /snap/notepad-plus-plus/232 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/snapd_7264.snap on /snap/snapd/7264 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/snap-store_454.snap on /snap/snap-store/454 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/walc_15.snap on /snap/walc/15 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/wine-platform-runtime_136.snap on /snap/wine-platform-runtime/136 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/wine-platform-5-stable_4.snap on /snap/wine-platform-5-stable/4 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/snapd_7777.snap on /snap/snapd/7777 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/wine-platform-5-stable_5.snap on /snap/wine-platform-5-stable/5 type squashfs (ro,nodev,relatime,x-gdu.hide)
/dev/sda6 on /boot type ext2 (rw,relatime)
/dev/sda8 on /home type ext4 (rw,relatime)
tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=587148k,mode=755)
nsfs on /run/snapd/ns/canonical-livepatch.mnt type nsfs (rw)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=587144k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/fuse on /run/user/1000/doc type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
nsfs on /run/snapd/ns/snap-store.mnt type nsfs (rw)
nsfs on /run/snapd/ns/chromium.mnt type nsfs (rw)
nsfs on /run/snapd/ns/notepad-plus-plus.mnt type nsfs (rw)
Answer the question
In order to leave comments, you need to log in
compress / bite off sda3, merge the resulting unallocated with sda4
then you need to shift the partitions so that the unallocated is next to sda8
after expanding sda8 due to the resulting free space next
to everything why do you need such a
19gb
swap? you can take a bite out of it and add it to sda8.
in order not to move partitions, you can create another sda9 (anywhere) and already mount it in some user directory /home/USER/NEW_DIR
ps. ps.
it will be even better this way (with mounting the partition to a user directory)
i.e. in your ~/ only configs and the most necessary will be stored,
and in ~/NEW_DIR you can put any file dump.
I would reduce /home to 20-30GB, and give the rest to another partition, which I would mount in /home/USER/NEW_DIR
moving partitions with GParted on a regular hard drive is not a quick thing to say the least.
acceleration options:
- NTFS partitions are faster and more correct to change with the Acronis Disk Director tool
- if the Linux root start shifts, you will need to reinstall it anyway. prepare in advance (it's not scary, but you have to be prepared)
- EXT2/3/4 are perfectly backed up and restored by Acronis True Image, which actually makes it possible both to make a preliminary backup (it is very desirable to a third-party medium), and to significantly speed up the repartitioning of
ps in any the case of backups is our everything. and it’s better to train first on virtual cats
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question