[opensuse] How-to re-partition /home/ on a live running system (home can be scrapped, is close to empty)?
How-to re-partition /home/ on a live running system (home can be scrapped, is close to empty)? Good day fellow enlisted ones. some machine set-up went bad and now there is a huge separate /home/ partition but the machine would need rather a big single partition or at least much more space for / (root) I cannot really instruct non-knowledgeable users to take the whole machine off-line and then use some partitioning distro (gparted?) from usb device and repartition the stuff, thats why I am asking for help on how to do it live and while on-line. Presently I can ssh to the machine as a local user (not root yet) , and the actual /home/ content is close to empty. I could probably copy /home/ over to (root)/hometemp/ and then maybe ssh into the box as root so that it wouldn't need the files from /home/ for the ssh and bash/shell parts, and the unount /home/ and then delete the /home/ partition (fdisk?) and then extend (how?) the / partition? And then just rename the (root)/hometemp to home and it would be done, right? I am not doing these partitioning things that often and mostly rather during setup from installer and Yast in the OpenSuSE components. Any help with this? Thank you in advance. TIA. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
cagsm wrote:
How-to re-partition /home/ on a live running system (home can be scrapped, is close to empty)?
partition (fdisk?) and then extend (how?) the / partition?
And then just rename the (root)/hometemp to home and it would be done, right?
I don't hink so. You have to resize the filesystem also, and I don't see this possible on e running system. but this may not be necessary. we need some more info: size of the / partition? then du -sh /tmp du -sh /usr du -sh /var on the beginning. The idea is that you can move /usr is really necessary, but may be it's simply your /tmp that is full jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Jean-Daniel Dodin said the following on 12/09/2013 11:54 AM:
You have to resize the filesystem also, and I don't see this possible on e running system.
It is if you are running LVM with, for example, ReiserFS. I've done that many times. Its why I advise to run LVM ... ALWAYS! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Mon, Dec 9, 2013 at 6:13 PM, Anton Aylward <opensuse@antonaylward.com> wrote:
Jean-Daniel Dodin said the following on 12/09/2013 11:54 AM: It is if you are running LVM with, for example, ReiserFS. I've done that many times. Its why I advise to run LVM ... ALWAYS!
Too late now, but thanks for the input, I have found some askubuntu pages that all tell that the user needs to do the resize in offline if they need to resize the root, and in the end of the day, I actually need more space on root or only have one single partition next to the swap where everything resides. Will need to teach them some gparted usb bootup of the system via phone or something eventually. Thanks again. Root is rather smallish (few gigs) and home is multi tens of gigs but nobody needs space there. All is ext4. <http://askubuntu.com/questions/24027/how-to-resize-a-ext4-root-partition-at-runtime> -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Anton Aylward
-
cagsm
-
Jean-Daniel Dodin