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.
this may sound dumb, but you arent in the /usr directory when you are trying to unmount it?
also, have you tried rebooting and then resizing the partition?
No... you can't just not be in it, a lot of programs run from there.
It used to be that *nix didn't need usr to function, and usr was mostly glitter, but now a lot of the core programs are in usr
If you really want to try it's like this..
fuser -k -m /usr
You should definitely not be in X when doing this.. and make sure any program you want is compiled without dependancies to libc, and.. that you have all the library files you need.
Thank you for all the replies. I'm a little amazed. thanks.
Quote:
this may sound dumb, but you arent in the /usr directory when you are trying to unmount it?
also, have you tried rebooting and then resizing the partition?
I've returned to single-user mode. (telinit 1), and logged in again; my working directory is /root/. No programs are running except the agetty processes, /bin/bash, and the kernel threads.
Quote:
It used to be that *nix didn't need usr to function, and usr was mostly glitter, but now a lot of the core programs are in usr
What kind of programs? I thought a linux system is supposed to work without /usr, because all essential tools are in /bin, /sbin, and /lib
Quote:
you have of course still got your gentoo live cd.... you can always just boot to that...
I have knoppix on cd, and slackware is still the default OS. However, I don't like the idea of rebooting to resize an non-root partition. If I remove slackware, I want this thing to work as well. .. without using knoppix, or having to download that live CD, because my system was installed from a stage 1 tarbal.
@8nasmith:
you could install gentoo from mandrake (while your system is running). emerging all packages from the chroot. If gentoo is completely working (and enabled in your boot manager), you could choose to make gentoo your default OS. I've found the installation howto very helpfull, and the rest of the howto's too. The screen command is very useful to keep your machine compiling while you logoff.. but I have to agree.., you need to work in the console a lot, but it's a great way to learn it
"fuser -v -m" showed that /bin/login was using the /usr partition. The /bin/login program keeps running after a login, something that I didn't see with slackware before (as far as I can remember)
However, the most odd problem: If I reboot the machine without /usr being mounted, /bin/login still works. I can login to a shell, the profile gets some problems because /usr/bin/whoami can't be found, etc.. but it's working. I can even mount and unmount /usr/
After some experiments I've discovered that it was possible to kill the running login process. a new agetty will be spawned, but it shares the terminal with the shell (which is also running at that time), this makes it impossible to type new input.
But something like this seams to work:
Code:
killall login; sleep 0.2; umount /usr; exit
you'll get a new agetty login, and the shell will unmount /usr before it exits. After entering your username, the new /bin/login won't use /usr.. and you can start resizing the /usr partition with resize_reiserfs.
perhaps I should submit this problem to the gentoo developers I find this problem very weird, and I can't believe this is intentional :P
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.