[SOLVED] VMware - Linux - How to extend spaces - root directory
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
VMware - Linux - How to extend spaces - root directory
Hi,
I extended spaces (20GB) on my VM (Linux), and I also have used GPARTED to resize it, However, there are something wrong or something that I need to do and I missed it.
If you see the screenshots, you will be able to see some differences: the name of devices as /dev/sda1 and 2, but on Linux, the names are /dev/hda1 and 2. On gparted I am able to see the 20GB added to the sda2, but I am not able to see on Linux.
See below other information such as df command, and pv and lv.
So, if someone could help me how to add the space (on root directory) with no losing the data, I would appreciate a lot.
From what I can understand you have Linux guest VM running in VMware. You turned off the VM and increased the size of the existing disk by 20 GB. Turned the VM on after that you are able to see increased space in fdisk -l but your logical volume still shows the old size.
Do you have the backup of the existing system. It is always advisable to have good / verified backup of existing data before playing around with partitions.
Hi, I have been trying to boot as rescue mode, but there is something wrong. First of all, the first installation ins Centos 4.9, and I have upgraded to 5.3. None of these operating system are supported and available. So, I have been using the last version (Centos 7). However, when I boot via DVD, the first screen is arisen, but there is no option to rescue mode. If I try to choose Install Centos 7, or other options, it seems that the system hangs and nothing happens.
So, is there other way to resize the root directory, considering that it is the solution to get the additional space extended?
tks.
Edit: Just tested, you can hit escape key and it will drop you to boot: there you type Linux rescue to boot in rescue mode. In earlier version like RHEL5 you get to type upfront without hitting the escape key.
Last edited by T3RM1NVT0R; 03-10-2015 at 08:47 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.