You are not logged in.

#1 2020-04-13 16:38:53

stee1rat
Member
Registered: 2013-10-22
Posts: 70

Merge non-LVM partitions

Is there a way to merge /dev/sdb* partitions into one? My / is constantly out of space:

$ df -h
Filesystem      Size  Used Avail Use% Mounted on
dev             7.8G     0  7.8G   0% /dev
run             7.9G  1.6M  7.9G   1% /run
/dev/sdb2        29G   27G  998M  97% /
tmpfs           7.9G  290M  7.6G   4% /dev/shm
tmpfs           7.9G     0  7.9G   0% /sys/fs/cgroup
tmpfs           7.9G  228K  7.9G   1% /tmp
/dev/sdb1       511M   46M  466M   9% /boot
/dev/sdb4        73G   51G   19G  74% /home
/dev/sda1       459G  336G  100G  78% /data
tmpfs           1.6G   20K  1.6G   1% /run/user/120
tmpfs           1.6G   44K  1.6G   1% /run/user/1000

Last edited by stee1rat (2020-04-13 16:40:03)

Offline

#2 2020-04-13 17:06:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,520
Website

Re: Merge non-LVM partitions

What's taking up all the space on root?  If you don't know why it's filling up, getting an extra dozen gigs isn't going to last you long.

If you do need help merging the partitions, you're going to have to tell us what else is on the disk.  What's sdb3?  What's the output of lsblk?

There looks to be ample space on sda if you needed to shuffle things around to remove/resize partitions on sdb.  But really, your root parition should be more than big enough for a majority of use-cases.  Unless you know why it's so full, you should suspect a problem and fix it rather than cover it up.

Last edited by Trilby (2020-04-13 17:21:43)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2020-04-13 18:42:50

stee1rat
Member
Registered: 2013-10-22
Posts: 70

Re: Merge non-LVM partitions

The root is taken by /var and /usr:

https://i.ibb.co/FH5kQWL/Screenshot-fro … -37-24.png

The problem is, that I have two disks 120 Gb and 500 Gb. Root and home partitions are located on my 120 Gb disk. If they were one partition I wouldn't have this problem:

https://i.ibb.co/YfZRgZR/Screenshot-fro … -41-17.png

$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk 
└─sda1   8:1    0 465.8G  0 part /data
sdb      8:16   0 111.8G  0 disk 
├─sdb1   8:17   0   512M  0 part /boot
├─sdb2   8:18   0  29.5G  0 part /
├─sdb3   8:19   0     8G  0 part [SWAP]
└─sdb4   8:20   0  73.8G  0 part /home
sdc      8:32   1   7.5G  0 disk 
├─sdc1   8:33   1   2.3G  0 part /run/media/steelrat/Ubuntu 19.10 amd64
├─sdc2   8:34   1   3.9M  0 part 
└─sdc3   8:35   1   5.2G  0 part /run/media/steelrat/casper-rw
sr0     11:0    1  1024M  0 rom 

Mod Edit - Replaced oversized images with links.
CoC - Pasting pictures and code

Last edited by Slithery (2020-04-13 18:52:43)

Offline

#4 2020-04-13 18:47:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,520
Website

Re: Merge non-LVM partitions

Remove the images, they are too big for the forums and provide no information whatsoever.  You didn't really address what's eating the space.  There are few reasons for /usr/ to take up that much space, and even far fewer (if any) reasons for /var/ to take up that much space unless you have some problem resulting in logs getting spammed with error messages.

Last edited by Trilby (2020-04-13 18:55:58)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB