I just built my new server and realized that I accidentally only allotted 200GB to Ubuntu leaving the remaining 1.8TB unusable on my server. I have already tried partitioning using sudo to resize the partition, but I got an error saying that the resource was busy. I attached a screenshot for reference. I also am only using a terminal so no GUI solutions will work. Results of sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL:
I want to shrink my second (LVM) partition, in order to create a new partition in the newly freed space. I am using the Live CD to do so, because I know I can't resize/move this partition while it is in use. When I opened GParted in the Live CD, I realized that I could not resize the partition, because when I right-click it, the option "resize/move" is disabled.  I tried to unmount it, to "lazy" unmount it (umount -l /dev/sda2) but it didn't work.  A screenshot from GParted:
Why is the company email still "at stackoverflow" Are there good reasons why it's a better practice to have only one return statement in a function?   Or is it okay to return from a function as soon as it is logically correct to do so, meaning there may be many return statements in the function? Can magnetic fields be "blocked"? For example, in the game, TitanFall, a robot stop bullets with ( presumably ) a magnetic shield.  I wish to calculate the magnetic force required to stop a bullet within a few microseconds.  But the problem I have is that my entire electronic system or the vehicle ( most likely even a building ) will be subjected to massive fields most likely destroying it as well.  Does any know of a way to "block" or divert the field around my vehicle? Is it even possible? My knowledge in magnetic fields are quite limited at this time. How to automatically restart a linux background process if it fails? Does $\lim_{n\to \infty} \int^{\infty}_{-\infty} f_n(x) dx\, = \int^{\infty}_{-\infty} f(x)\,dx\,$? If $\displaystyle\{f_n(x)\}$ is sequence of continuous function on $\mathbb{R}$ converging uniformly to $f(x)$, then does $\displaystyle\lim_{n\to \infty} \int^{\infty}_{-\infty} f_n(x) dx\, = \int^{\infty}_{-\infty} f(x) dx\,$ hold? I know  it holds if we integrate over an interval of the form $[a,b]$ but not sure about improper integral! I read somewhere that companies are not required to pay dividends to shareholders (this is correct, yes?).   If so, then if company A never pays dividends to its shareholders, then what is the point of owning company A's stock? Surely the right to one vote for company A's Board can't be that valuable.   What is it that I'm missing? Sentence vs proposition Adding Image to a Polygon Resolve build errors due to circular dependency amongst classes Which partition is mounted to where? Book ID: Astronauts and Lab Students can create portals through space Desperate to locate and re-read exceptional book/series, but cannot remember the title. The high concept: The U.S. has just sent the first successful expedition to Mars, and it has just landed. As the astronauts make their initial exploration outside their ship, a tear in the fabric of space opens up right in front of them, and they look through to the insides of a laboratory (at a California university?) and two students who just figured out how to create arbitrary portals between two points in the Universe. The rest of the novel/series is a consequence of this breakthrough. But I can't remember the author and title(s). Surely someone reading this forum will remember it well! TIA.  (Reposted .) Is it acceptable to write a thank you in a comment? There have been a number of cases where I would like to thank someone for providing me with a thorough response and give them feedback beyond the vote up. Often I wish people would tell me why they voted me up. Not that the thank you part is necessary but it sets it apart from the other comments related to answering the question itself.  In this type of situation is a "Thank you" acceptable in a comment?     For more information, see  in the . Reputation does not update after community wiki is removed from a post, and does not match the value displayed in the reputation audit Execute bash script from URL I've switched from Drupal 7.14 to 7.15 three weeks ago and therefore, I'm encountering a series of very sophisticated (for me) memory limit errors.  Those errors occur any time I'm trying to clear cache in performance or to run update scripts.  My hosting company has increased my memory limit in php.ini up to 126 M, 256 M, 512 M, and even 1024 M. But the errors still occur. I've migrated my site from shared to VPS, But the error incredibly still occurs. I have no way and no idea how to move forward.   Here are the errors:   Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 30 bytes) in /home/example/public_html/sites/all/modules/views/views.module on line 416 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 108 bytes) in /home/example/public_html/includes/menu.inc on line 2736 Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 71 bytes) in /home/example/public_html/sites/all/modules/chain_menu_access/chain_menu_access.module on line 59 allocate 64 bytes) in /home/example/public_html/sites/all/modules/views/includes/base.inc on line 93 Standard value of PATH variable Windows 10 After having poorly handled the PATH system variable (resulting in deletion), I'm now looking to reinstate the variable with the original value. I found answers like  about Windows 8 and below, but not for Windows 10. I guess values are virtually identical, but I'd like to know the exact string so I'm not missing anything. EDIT: Also, Regedit tree have changed and I'm not able to locate the variable I used to edit the startup script for the GDM (/etc/gdm/Init/Default) to permanently change my display resolution.   How can I do this with LigthDM in Ubuntu Oneiric? Spice containers purchase  I'm planning on upgrading my spice storage. Reading some advice online (e.g. , and ) I came to the conclusion that spice containers should:   Not be exposed to direct sunlight and high temperatures Be airtight   Which means that either you store it inside of some closed cupboard/wardrobe/room or you have containers which do block light and are in a relatively shady place. And the containers need to be airtight.  Available solutions  I've been browsing for some containers available online in my country and the 2 most sensible options I've seen are these:       The problem  The first one is hermetic (it has some rubber around the lid) but it's clear glass. The other one does not have the rubber, just a regular twist-off lid, but it's amber glass.  It'll be hard for me to find any space inside of cupboards to store all of my spices (I need at least 30), so I'd rather buy amber glass container, which I believe will effectively block the sunlight, even when kept on the counter. But I can't find any hermetic amber-glass containers, only ones with regular lid.  The question  Is that regular twist-off lid enough to keep spices airtight and fresh? Or should I focus on buying a hermetic container (like the one in clear glass). I could then for example paint them black to block the sunlight. Spider Identification Illinois I noticed a really huge, beautiful web on my porch last week, and tonight, I discovered its resident. I'm thinking it's an Araneus diadematus (Cross Orbweaver), but I was hoping for some confirmation.   Can anyone confirm this or offer a better suggestion? Why does a $1/2$ appear in this simple capacitor equation? The maximum energy stored by a capacitor is when it’s (theoretically) fully charged, or just before it reaches dielectric breakdown, if you will. It seems, then, that the maximum energy ($E$) $=QV$, where $Q$ is the maximum charge attained and $V$ is the maximum ‘voltage’. However, the correct equation for the maximum energy is $E=\frac{1}{2}QV$. Why? I’m looking for a simple, intuitive explanation because my reasoning that $E=QV$ seems sound to me. I know about , but I’m looking for a reason to disprove my specific argument that $E=QV$ and not the “Oh, it comes from integration.” response.