LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-18-2015, 05:45 AM   #1
zycho42
LQ Newbie
 
Registered: Jan 2015
Posts: 3

Rep: Reputation: Disabled
Unable to login on runlevel 3 in Fedora 21 xfce after moving/restoring usr dir


I'm not a total linux newbie, but I figure this is a newbie mistake, so here it is.

I'm running fedora 21 xfce on a triple boot system (using grub to select the os), so if it's at all possible to avoid a reinstall that would be very awesome.
What happened:
I ran out of space on my root partition (lvm). Tried to figure out how to resize the root partition while tired, gave up, decided to move /usr to my home partition and create a symlink. Copied /usr to /home/usr, deleted /usr. Unable to create the symlink now (duh! as I said, I was tired), booted into liveusb disk to create the symlink. Couldn't boot after that and gave up for the night. This morning I was clear enough to figure out resizing the partitions, so I did and then copied /home/usr back to /usr. Rebooted and everything seems normal until I want to login. Logging in just dumps me back at the login screen, wether I use root, user runlevel 5 or runlevel 3, no matter. In runlevel 3 there might be an error message but it flashes by so quickly I can't read it. Authentication does proceed, because logging in with a wrong username or password gives the proper error.
Google has not provided me with any useful hints, so I'm at a loss. Can someone please help me out?

Many thanks,

Willem
 
Old 01-18-2015, 01:03 PM   #2
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619

Rep: Reputation: 45
Can you login on console (press ctrl-alt-f1)? Can you login as root on console (does fedora have the root login option?)

Not sure about xfce but you may have messages in $HOME/.xsession-errors

If all your files are intact it sounds a bit like permission issues to me. Check if home directories are writable/readable by the corresponding users.
 
Old 01-18-2015, 03:03 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
selinux checks the permissions and se context on the /home and /usr ( "/usr" SHOULD be in / and not separate ) partitions
and if NOT correct PROTECTS!!! the system by killing the boot or login

it is ?? iffy ?? maybe ?? possible to use yum and rpm to fix it

but that will take a week . I do mean maybe 5 to 7 days to manually find everything

reinstall , this will take 30 min.
 
Old 01-19-2015, 02:38 AM   #4
zycho42
LQ Newbie
 
Registered: Jan 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hello John VV,

thanks for your reply. I understand that this is happening and that the os does this for protection. However, I'm not *missing* any files. I simply moved /usr to another partition and then moved it back again. So I'm thinking this should repairable, probably a permissions thing, like otoomet mentioned?

Willem
 
Old 01-19-2015, 09:53 AM   #5
zycho42
LQ Newbie
 
Registered: Jan 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
So I ended up reinstalling. Took a bit longer than 30 mins though, but as always, the system is much nicer now.

Thanks for thinking along!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restoring /usr/bin/php file peppos Linux - General 15 09-19-2010 04:37 PM
Xfce not restoring open files in applications solostyle Linux - Software 0 06-09-2009 09:02 PM
I need help restoring my /usr/bin X file, and a couple of others. sleekmason Linux - Software 7 12-07-2006 09:43 AM
Q. moving /bin dir files to /dev dir?? Texas_student Linux - Software 2 03-26-2006 11:42 PM
checking for dir then moving on rharris72 Programming 2 11-22-2005 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration