Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
I went in to the YAST expert partitioner and tried to resize /dev/sdb1 to the new maximum.
But I got a message that says I need to unmount the file system.
I tried doing this using both Yast and umount but both times got a message that the system was in use.
What is the best way to get this filesystem resized?
I have read about changing the kernel parameters to boot in single user mode. I am a little wary of this because I don't want to end up with a problem booting. If this is the correct approach please provide and example of the change to make.
I gather that is file system is in a VM. There are two primary steps, and I'm not quite sure in what order they must occur. One is to enlarge the file system. The other is to tell the virtualizer that the file system has been enlarged.
in that case (partition is in use and you cannot umount) you may need to boot another os (from usb) to make it work. But still unlcear (for me) if that partition is handled by the guest or host os.
If you have ext4 you can online resize even if mounted. But only once. At least I had this behaviour 2 years ago. Might have changed that you can resize it more often now.
Just like pan64 said. I'm not sure where (vm or host) the filesystem is to be enlarged. What I guess is that the vm resize was okay. But sdb1 in the vm is not sdb1 on the host. You could try to shutdown the VM I and retry.
Booting into single user mode wont help. Due to the filesystem still being mounted. At least if you want to enlarge the root filesystem of the host. In that case boot of a nother os like pan mentioned.
Please give more informationen so we are able to help you better.
the virtual disk is logically enlarged, that means it is physically smaller and VM will try to grow it as needed. Actually it occupies less space on the real disk and VM will not be able to grow it because there is no enough space to do that. So you will not be able to use it as long as the underlying filesystem is not enlarged.
Yes I can get the ISO with some effort. I can boot into the BIOS if needed.
Of course I can take the machine out of production temporarily if needed.
Still, I am frustrated that there is not a way to do it without that.
I will probably go that route but I would still like to know if there are other options.
Thanks,
Mel
You wouldn't have to go anywhere near the BIOS, it's the VM we're talking about. Also, the ISO is a simple download. See here for how to mount the ISO: https://www.petri.com/use-iso-image-files-vmware
I wasn't aware that taking the machine out of production was a problem for you until now. Someone may come up with a way that it can be avoided, but in likelihood it won't. You should be making a complete backup of the VM before you start anyway.
Also, if taking the machine out of production is an important issue for you, then you should do a dry run by setting up a non-production machine and VM and carrying out the steps you are planning to carry out so that you can iron out any potential problems and keep down-time to a minimum.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.