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.
Hi all;
Newbie here, but able to find my way around Linux system.
OS is CentOS7.
How do I extend the system root (/) partition? / has 100%,
First of all, what can I safely delete to relief pressure on the system before going for the disk expansion?
Many thanks
Distribution: Ubuntu based stuff for the most part
Posts: 1,177
Rep:
You may want to look at bootable Linux with a graphical partition manager to do this with like https://gparted.org/livecd.php
As with any file system, backup everything and assume you will mess up. If you do mess up, try to learn what you did wrong. It's the best way to learn.
It should be possible to shrink a partition to make free space if none is available, then expand / provided the free space is next to it.
By default CentOS 7 uses LVM and xfs filesystems. As kilgoretrout posted it depends on how your system was configured with one caveat that xfs filesystems can only be enlarged not reduced.
I rebooted the server due to other factors and now I can not log in again. I'm getting this error... "authentication service cannot retrieve authentication info"
Distribution: Ubuntu based stuff for the most part
Posts: 1,177
Rep:
Can you reboot into recovery mode from the grub menu, or single user mode?
You first posted that / was at 100%, so if it is still like that, then it seems there no space to login. Recover mode should not start some services, so might leave some space on / to run some commands.
You might try booting with a live disk (your installation disk?) and then mounting your partition somewhere. Even if it is really full you should be able to mount it. Then do as others have suggested on removing files. Also do a search for any .Trash or variations directories and lost+found although you probably won't find the latter unless you normally have external mounts. Files in either are safe to delete. Note you need to actually remove them (rm xxxxx) not send to trash through file manager. Then look at the drive with fdisk or parted or the equivalent and see if the partition can be enlarged considering michaelk's post.
I have booted the system with CentOS ISO image and can access the /root on /mnt/sysimage. I was able to remove bunch of files from /tmp and /var/logs/.
However, I wanted to create a user account with root level permission to help me gain access into the system to troubleshoot the new error …"authentication service cannot retrieve authentication info"
The background info is that, I inherited this from another sysadmin that left. All I have is a single AD domain based account. No info on the local admin or root account.
So now that I have the opportunity to bring the system to a single user mode, I will like to have a normal local admin account to help in future troubleshooting.
I have tried useradd myadm ; passwd myadm xxxxx but it doesn't seem to be working.
Any idea how to create a root level account in single user mode?
I have booted the system with CentOS ISO image and can access the /root on /mnt/sysimage. I was able to remove bunch of files from /tmp and /var/logs/.
However, I wanted to create a user account with root level permission to help me gain access into the system to troubleshoot the new error …"authentication service cannot retrieve authentication info"
The background info is that, I inherited this from another sysadmin that left. All I have is a single AD domain based account. No info on the local admin or root account.
So now that I have the opportunity to bring the system to a single user mode, I will like to have a normal local admin account to help in future troubleshooting.
I have tried useradd myadm ; passwd myadm xxxxx but it doesn't seem to be working.
Any idea how to create a root level account in single user mode?
Thanks in advance.
I've fixed this by booting into Linux Rescue, mount root fs to /mnt/sysimage, chroot /mnt/sysimage, change root psw passwd root. Type exit before rebooting. Then finally was able to login locally with the root account and new password.
Now back to my original issue of "How to extend /root partition" that is at 100%. I'm running lvm. Please I still need help on this. Thanks all
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.