Score:0

Increase space on a ext4 file system?

ru flag

I have the following stats in my Ubuntu 20.04.4 LTS file system:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        97G  4.7G   93G   5% /
/dev/sdb         89G   89G     0 100% /mnt/games

I need more space in the /mnt/games section.

How can I take 75G from 'dev/sda1' and use it in '/dev/sdb'?

Thanks!

Score:2
cn flag

Short answer, you don't (with how you have it currently configured).

Longer answer:

If you have the ability to back up everything and start again then you can use LVM (https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)) to divide up the 2 physical discs (/dev/sda and /dev/sdb) into what are known as extents, you can then build volumes from these extents. You can then decide how much space each volume needs and assign the right number of extents.

LVM also allows you to dynamically change the number of extents bound to each volume so you can "move" space around (it's a little more complicated as you have to resize the filesystems that are running on top of each volume)

SkyeBoniwell avatar
ru flag
Thanks! Would it be possible to put a `/mnt/games2` in `/dev/sda1`?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.