Move space in partition to /home
1 Attachment(s)
Hello;
I hope that someone can help me with a not too detailed fix for an install problem. Yesterday I did a new install of Parrot-Linux (for internet security). I did a manual installation because my goal was to put the OS on it's own partition while the files/data went on the main drive. The computer is Lenovo B570 and it was installed on a 1Tb drive. I created a 50Gb partition for the OS with the rest supposedly for data files. Yet when I started transferring files to the drive, I found that it quickly filled. I'm using the most recent distro of Parrot linux with Mate desktop environment. Typing 'lsblk -l' into terminal gave me this: NAME || MAJ:MIN || RM || SIZE || RO || TYPE || MOUNTPOINT sda || 8:0 || 0 || 931.5G | 0 || disk sda1 || 8:1 || 0 || 512M || 0 || part || /boot/efi sda2 || 8:2 || 0 || 244M || 0 || part || /boot sda3 || 8:3 || 0 || 930.8G | 0 || part sr0 || 11:0 || 1 || 1024M || 0 || rom parrot--vg-root | 253:0 || 0 || 14.9G || 0 || lvm || / parrot--vg-swap | 253:1 || 0 || 3.9G || 0 || lvm || [SWAP] parrot--vg-home | 253:2 || 0 || 27.8G || 0 || lvm || /home What I hope is to be able to allocate the space in sda3 to the parrot--vg-home area. Can this be done without re-installing the OS? I thank you in advance for any advice. |
The good news is that you have used LVM to handle your "partitions" - this is exactly why LVM was developed. Run these for us - use [code] tags when posting output to preserve the layout so we can read it; use "Go Advanced" then the "#" button.
Code:
sudo parted /dev/sda "print free" |
partition details
4 Attachment(s)
syg00
Thank you. I did set up LVM on the chance that I messed up somehow. Here is all the info. I hope that it brings some greater clarity. |
Essentially all the disk is available to LVM, so you can simply use lvresize to add space to any lv. I mention that because you may need to increase the root in the not too distant future. On any sensible linux filesystem, increasing the size can be done on-line - the following should add 100 Gig to /home (I don't generally use LVM, so I stand to be corrected). If it fails, no harm done.
Code:
sudo lvresize -r -L+100G parrot-vg/home |
It looks like partition sda3 is already part of the parrot-vg volume group and has plenty of space available (884 GB). You can add some or all of that space to the /home filesystem.
Code:
## Addng a specific amount: (syg00 posted essentially the same thing while I was typing, "-r" is the short option for "--resizefs", and "-L" is the short for "--size".) |
1 Attachment(s)
It worked!
Thank you everyone so very much. Both 'lvresize' and 'lvextend' worked to correct the problem. I can't tell you how great it is to finally have this HD working properly after so many problems. thanks again |
I would love to ask you all for one more question.
How can I change 'lvresize' or 'lvextend' in order to expand the cache? I think that the way I set it up does not leave enough space there since programs are running slower then they did with linux mint. Thank you again. |
Yet another example of the xyproblem.
Start another thread, stating your request and any evidence you have. Don't tell us the solution you require. |
All times are GMT -5. The time now is 04:01 AM. |