LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Anyway to re-size root partition without using live CD ? (https://www.linuxquestions.org/questions/linux-newbie-8/anyway-to-re-size-root-partition-without-using-live-cd-4175540948/)

j9678 04-27-2015 09:15 PM

Anyway to re-size root partition without using live CD ?
 
Any one ever use VPS web hosting ?
I'm going to order an OpenVZ VPS hosting, and I think the hosting company will give me a linux with one big root partition only.
Since it is a VPS, I can't use a live CD to re-partition.
Is there anyway to re-size root partition without using live CD ?

j-ray 04-28-2015 01:12 AM

Would be helpful to know which distribution and version is running.

j9678 04-28-2015 02:16 AM

Quote:

Originally Posted by j-ray (Post 5354255)
Would be helpful to know which distribution and version is running.

Let's say Debian 7 64 bit.

syg00 04-28-2015 03:41 AM

Is it worth risking your system ?. i.e., why do you care ?.

Short answer - the old school way still works, even for the root (for ext[34]). Shrink the filesystem, delete the partition (fdisk say), re-define the partition, good to go.
Don't cock it up - especially aligning the filesystem and the start of the (re-defined) partition. If you're lucky you'll know you got it wrong immediately, else maybe on the next re-boot.
Of course if they insist on XFS you're out of luck anyway.

TobiSGD 04-28-2015 04:05 AM

Have you tried asking the provider about custom partitioning schemes?

j9678 04-28-2015 06:50 AM

Quote:

Originally Posted by TobiSGD (Post 5354306)
Have you tried asking the provider about custom partitioning schemes?

Just got the reply from the provider. Only XEN and KVM allow user to modify the partition. OpenVZ can't.
Seems that they provide a panel to do that.

TobiSGD 04-28-2015 08:24 AM

That makes sense, since, AFAIK, OpenVZ is a container format, not a VM (which also explains why they don't offer to boot from a live-CD).


All times are GMT -5. The time now is 10:45 PM.