Ask Your Question

How to combine my root / home block devices

asked 2018-05-22 22:15:53 -0600

tannerdanger gravatar image

updated 2018-05-23 07:17:47 -0600

hhlp gravatar image

So I recently moved from a 120gb SSD to a 512gb SSD to prevent this exact problem that I am now faced with again for a reason I can't understand. TL;DR at the bottom is probably enough as I'm sure this problem is simple to solve, but here is relevant info in case it is necessary.

Physically, I have:

  • 2TB HD(x2)
  • 8TB HD
  • 512 GB SSD (my OS is installed on here)
  • 120GB SSD(old OS, hoping to purge this and use it for extra storage once this is solved)

Now this is why shows for my drives:

image description

Now, I suppose I understand that my 512gb SSD got split into 3 "Block Devices", but I don't want that.

So my question is, how can I combine all of those drives into just the one drive? No matter if the current user is using root or me (which, by the way, is the one thing I can't stand while trying to learn the Linux ecosystem. I am struggling to get over is the idea that there have to be separate users on one computer.) I am the only user. I am root. I don't want different blocks for different users. This is why I bought a bigger drive. So I wouldn't keep running out of drive space.

Any help on how to fix this would be amazing. I don't want to wipe the data on that drive (or any of the three) but I really need my computer to NOT write stuff to different places depending on who is using it.

TL;DR: I want to consolidate my "home","root", and "swap" Block Devices into just one drive that is used by all users (since I am the only user).

Thank you.

edit retag flag offensive close merge delete



Swap is always going to be a separate device/partition because it is a special file system. You can combine /home and the root partition. It is a lot easier to do this from a LiveCD where the drives are not mounted. What you have is 54 GB for applications and system settings, and 449 GB for your personal data. You probably want at least 30 GB for your applications, so you would gain very little by combining those two partitions.

felthat gravatar imagefelthat ( 2018-05-23 08:09:07 -0600 )edit

Have you ever read my answer? In Linux users and programs see and interact with a single giant filesystem, your block devices are already combined in "one drive" i.e. one filesystem. Linux is much more powerful and flexible than, yeah, Windows in handling the physical backing storage (disks, partitions on disks, network distributed storage). Please post output of lsblk, pvdisplay, lvdisplay, vgdisplay, right now your linux filesystem is using storage only from your 512GB ssd.

fcomida gravatar imagefcomida ( 2018-05-23 08:09:56 -0600 )edit

Your 54 GB root volume is full. How come?

florian gravatar imageflorian ( 2018-05-23 16:27:10 -0600 )edit

2 Answers

Sort by » oldest newest most voted

answered 2018-05-23 12:22:09 -0600

florian gravatar image

If you don’t like the standard LVM setup that the Fedora installer uses (50GB /, some GB swap and the rest /home) you will have to configure partitioning manually during install.

Having / and /home in separate partitions is a great idea by the way. I guess you may be confused by the LVM setup.

edit flag offensive delete link more

answered 2018-05-23 07:10:17 -0600

fcomida gravatar image

Lot of confusion here: in userspace there is only one filesystem starting at / (no notion of drive C: drive D: on linux), all users and programs (with the right priviledges, for security reasons) can access the entire filesystem. Moreover with LVM there's a lot of flexibility in handling how the filesystem utilizes your storage. You can combine together disks and partitions in physical and logical volumes so that the size of a sub tree of the big filesystem starting at / (sub directory, for example /home) is not constrained by the size of a disk or partition. So for instance you can add the free space of your 120GB ssd to your logical volume hosting your /home (your home will grow by 120GB) and so for your big hard disks. To your other point: NEVER EVER log in as root , expecially if your system is connected to a network, user root is there for accomplishing administrative tasks. Log in as regular user and use sudo from the command line for that or enter a password when asked by some priviledged proccesses.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-05-22 22:15:53 -0600

Seen: 112 times

Last updated: May 23