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.
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?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
/
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 00:18/
and/home
from each other from now, not later when there is a lot of data. Also I want to know now if LVM can help, or if I need to repartition/
and/home
into different partitions. My post is a single question, (see my title). – Tim Feb 21 '19 at 00:43