Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-16-2009, 12:04 AM   #1
Registered: Apr 2009
Posts: 42

Rep: Reputation: 15
Unable to login after doing partition

Hi everyone,
I had earlier posted here for help on partitioning and this is the problem which started after partitioning. You can look at the partitioning thread here :

After using your suggestions, I partitioned my hard disk. For those who do not want to read the above mentioned thread, I am telling in brief: I had a big /home partition.But I wanted some smaller partitions instead of a big /home. So, I deleted (using GParted) /home (/dev/sda3) and created one big extended partition in place of it.The I created two logical partitions inside it namely: /dev/sda5 (which became /home later) and /dev/sda6 (I mounted it as /embedded later).

Then I was very happy that I had solved the problem.I restarted my system and it sent me to a repair mode. I modified the /etc/fstab file. Earlier /home was /dev/sda3. I made it as /dev/sda5. I also mounted /dev/sda6 on a directory called /embedded and wrote the information in /etc/fstab.

Then I rebooted again and started facing problems.I got a black screen with the following message :

message: User's $HOME/.dmrc file is being ignored. This prevents the default session and language from being saved. File should be owned by user and have 644 permissions. User's $HOME directory must be owned by user not writable by other users.

I clicked on "OK" and the following message came:

message: Your session only lasted less than 10 seconds. If you have not logged out yourself, this could mean that there is some installation problem or that you may be out of diskspace. Try logging in with one of the failsafe sessions to see if you can fix this problem.

View Details :
chown: changing ownership of '/dev/xconsole': operation not permitted
chmod: changing permission of '/dev/xconsole' operation not permitted
/etc/XII/xim: checking whether an input method should be started
.....(many warnings start from here)
Warning: ...............
Warning: ................
(after warnings end)
mkdir: cannot create directory '/home/linux/.skel' : permission denied
touch: cannot touch '/home/linux/.skel/sledio-run: no such file or directory
...(some more errors like this)

Then I clicked on "OK" and it took me to a screen which asked for username and password. As soon as I entered my password, I again got the first message which I mentioned and this loop started continuing.

Then I saw that there are four more options on that page: language, session, restart, shutdown. I clicked on session and went to "Failsafe Terminal". Then this message came :

message: This is the Failsafe xterm will be logged into a terminal console so that you may fix your system if you cannot log in in any other way.To exit the terminal emulator, type 'exit'and a enter into the window.

The login screen looked like this:


then I gave "su" and password and it changed to super user :


then I did "df -h"

File system size used avail use% mounted on
/dev/sda2 19G 4.0G 14G 23% /

udev 248M 92K 248M 1% /dev

/dev/sda4 7.4G 765M 6.3G 11% /mnt/point1

/dev/sda5 22G 173M 21G 1% /home

/dev/sda6 525M 17M 482M 4% /embedded

NOTE : /dev/sda3 is an extended partition and I have mentioned nothing about it in the /etc/fstab and have neither mounted it on any directory. Is this causing problem?

Now Can you please tell me how to login to my system?
Old 07-16-2009, 01:42 AM   #2
Registered: Apr 2009
Posts: 42

Original Poster
Rep: Reputation: 15
Hi !
I did some research on internet about my problem and found that something is wrong with .dmrc file. I went to the failsafe terminal and then saw that there is no such file in /home/linux . I made a .dmrc file and wrote the following in it:
And gave it permissions :
chmod 644 .dmrc
chmod 700 /home/linux
Then I restarted but the problem was not solved.
This time something different happened too. When I opened the failsafe terminal, it showed the following line on the top:

bash: /home/linux/.bashrc : permission denied

And when I logged in as super user, the default directory was " / " instead of "/home/linux".

Then I deleted the .dmrc file which I had created(because it did not solve the problem) and the problem remains the same now
Old 07-16-2009, 02:02 AM   #3
Registered: May 2007
Distribution: RHEL 5, Ubuntu 9.10, Fedora 12
Posts: 85

Rep: Reputation: 17
I ran into your exact problem when I moved my /home partition to its own separate partition.

Here's your check list:
1. Make sure /home/*user* is owned by user
2. Make sure /home/*user* has 644 permissions
3. Confirm all files/folders have 644 permissions. I found one folder/file somehow lost ownership/permissions -000- in the home folder transfer.
4. Ok, in your /etc folder there's a config file called "Permissions" change "Change Permissions = Yes" to "Change Permissions = No"
5. Once #4 is completed, upon restart you should be good.
Old 07-16-2009, 02:08 AM   #4
Registered: May 2007
Distribution: RHEL 5, Ubuntu 9.10, Fedora 12
Posts: 85

Rep: Reputation: 17
This is the link that saved my ass -


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 09:01 AM
LXer: Tips and tricks: Why is my system unable to reboot after converting my ext3 partition to a diskdump partition. How can I fix this ? LXer Syndicated Linux News 0 07-23-2007 07:46 PM
unable to graphic login, but text login is OK! cqmyg5 Slackware 2 01-16-2007 10:05 PM
Unable to Resize NTFS partition with 4 different partition editors Alexandrian Linux - Newbie 11 05-19-2006 07:09 PM
unable to login due to login expiry niiha Programming 2 09-02-2004 11:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:44 AM.

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