MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
Well, I messed up. I've been using 10.1 now for two weeks and it has performed flawlessly.
I tried to change the root name in the user section of 10.1 settings.
When I tried a reboot I get the following:
No directory /root!
Logging in with home = "/".
-bash: /root/.bash_profile: permission denied
-bash-2.05b$
I tried fail safe and got the same thing. I tried startx and nothing happened.
What did you try to name it too? You said your typed "startx" That would be assuming you were able to login to some account...
Seems like it changed your user name to root...??? I think the /root in /root/.bash_profile is suppose to be your $HOME folder. If you can''t get into root from rescue mode don't know what you can do except maybe load a liveCD try to mount your linux partition and go from there...
You aren't supposed to change the name of your root account, as linux looks for some startup info in the /root folder (or so I've read), which has now been renamed to whatever you changed the root account name to. Sorry, I don't have alot of experience yet, so I can't really help you fix it, but I'm sure it's possible. Like has already been said, try a live cd like knoppix, mount your drive and see if you can change the folder name from /"whateveryouchangeditto" back to /root
Thats a tough one, you shouldn't really change roots username. Are you still able to run gui programs as root e.g. the Mandrake Control Center when logged in as another user? If you can you can try and restore your settings from there. if not you may need to use a live cd like Mepis or Knoppix to edit the /etc/passwd file and restore the root acount to what its supposed to be and make sure that /root exists on the root (/) filesystem.
Thank all of you for your suggestions. I will give them all a try.
The important thing here is I KNOW what I did wrong now and
I certainly will not do THAT again! :-) Secondly, the install was
only a couple of weeks old, so nothing of importance was lost.
If worst comes to worst case I can always reinstall the OS.
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986
Rep:
What you could do to possibly fix this problem is use a MOVE CD like Knoppix of Mandrake MOVE. Then go in and change your root folder back to whatever it was. Just a guess
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.