1

I installed Lubuntu without partitioning my hard drive. Now there is one partition for UEFI, and one partition for anything else on the hard drive, wherein there is a swap file half size of my RAM.

  1. I heard that it is important to separate /home and / into different partitions? For example, for protection of the data in /home, in case something goes wrong in /. Correct?

    If yes, can LVM help to separate the current /home and / on my disk for that purpose, given that /home and / are in the same partition right now?

  2. I also consider if it is worth to create a swap partition twice size as my RAM, for suspending Lubuntu purpose. Can LVM also help to create a swap partition on top of the partition?

I haven't used LVM before, so just want to know if LVM can help to solve the above two problems without the hassle of repartitioning the hard drive? Or do I have to repartition my hard drive into a partition for / and a partition for /home, most likely by reinstalling Lubuntu?

Thanks.

$ sudo parted -l
[sudo] password for t: 
Model: ATA TOSHIBA MQ01ABF0 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name                  Flags
 1      1049kB  538MB  537MB  fat32        EFI System Partition  boot, esp
 2      538MB   500GB  500GB  ext4


$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.7G     0  1.7G   0% /dev
tmpfs           340M  1.3M  338M   1% /run
/dev/sda2       457G  6.5G  428G   2% /
tmpfs           1.7G     0  1.7G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.7G     0  1.7G   0% /sys/fs/cgroup
/dev/sda1       511M  6.1M  505M   2% /boot/efi
tmpfs           340M   20K  340M   1% /run/user/1000
  • There's all sorts of discussion about this very subject, and most of it gets marked as "primarily opinion based" I ran for a long time with just a single partition - it works well. I now keep "/home" in a separate partition, because I can tell Ubuntu to erase "/" and reinstall, without affected the files in "/home". You should consider a backup plan (regular backups) to protect the data in "/home". – Charles Green Feb 21 '19 at 0:07
  • I am asking about if LVM can help to solve my problem. But your comment doesn't even mention LVM. How is that opinion based? Please retract your close vote if it was you. Thank you! – Tim Feb 21 '19 at 0:14
  • 1
    LVM can help, but it's not required for what you are trying to do. But the big part of your question seems to be "Is it important to separate /home and / into different partitions? For example, for protection of the data in /home, in case something goes wrong in /?" – Charles Green Feb 21 '19 at 0:17
  • Please try to re-understand my post. I have already installed everything into a single partition, now I want to protect / and /home from each other, can LVM help or do I need to repartition the hard drive into a partition for / and a partition for /home (most likely by reinstalling Lubuntu)? – Tim Feb 21 '19 at 0:18
  • 1
    You don't have a lot of data on your system yet, it will probably be easier to re-install - You can add LVM at that point if you decide you need it. LVM can manage all of this for you, but it may be like driving a dump truck, when you need a pickup truck. – Charles Green Feb 21 '19 at 0:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.