Results 1 to 10 of 10
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 : http://www.linuxforums.org/forum/lin...two-parts.html
...
- 07-15-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 63
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 : http://www.linuxforums.org/forum/lin...two-parts.html
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 session.you 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:
linux@linux-904e:~>
then I gave "su" and password and it changed to super user :
linux-904e:/home/linux#
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?
- 07-15-2009 #2
Post the contents of /etc/fstab file here.
Didn't you copy the contents of /home folder as I suggested in other thread?
Try to create a new User. Execute adduser or useradd command as root.
Code:useadd user_id
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 07-16-2009 #3Just Joined!
- Join Date
- Apr 2009
- Posts
- 63
Hi !
I did not save anything from the /home directory because there was nothing special to loose.
You have told "Try to create a new User. Execute adduser or useradd command as root." And you gave only one command " useadd user_id". Will it be sufficient to add a new user or do we need more commands?
Here is how my /etc/fstab looks
/dev/disk/by-id/scsi-SATA_WDC_WD800JD-60L_WD-WMAM9P654246-part1 swap swap defaults 0 0
/dev/disk...(everything is same here too except part number)....-part2 / ext3 acl,user_xattr 1 1
/dev/disk....(everything is same here too except part number)....-part4 /mnt/point1 ext3 defaults 1 1
/dev/disk...(everything is same here too except part number)....-part5 /home ext3 acl,user_xattr 1 2
/dev/disk...(everything is same here too except part number)....-part6 /embedded ext3 defaults 1 1
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
NOTE: The extended partition /dev/sda3 (which is /dev/disk/by-id/............-part3) is not mentioned here because I dont know what to write about it
- 07-16-2009 #4Just Joined!
- Join Date
- Apr 2009
- Posts
- 63
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:
[desktop]
Session=default
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
- 07-16-2009 #5
As Devils Casper said try creating new user using command
Then Set password using commanduseradd -m username
You need to be root user to perform these operations.passwd username
If you can login as root ,then create new users as mention before.And when I logged in as super user, the default directory was " / " instead of "/home/linux".- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 07-16-2009 #6Just Joined!
- Join Date
- Apr 2009
- Posts
- 63
How the HELL !!!
Hi !
I did as directed and created a new user called linux3. And guess what? My system booted and I successfully logged in. My problem was solved !
But I want to know :
1. How did you figure out that adding a new user will solve the problem?
2. I searched the whole internet and found out that there was something wrong in .dmrc file (I even don't know properly what is that) and tried to do experiments on it after reading many forums. My question is : many people had this problem and every advice was pointing towards .dmrc file. But why you did not give me the same advise? How did you know that it will not work?
3. And last but not least : tell me how did my problem originate after partitioning?
I want to learn as much as I can about Linux mysteries(I am new, so they are mysteries for me).Please guide me by answering these questions.
- 07-16-2009 #7
Wow..Great to hear that.!!!
Credits must go to devils casper,I just provided some its hints..that all 
As per understanding/assumptions I answered your questions,
Have you have formatted your /home,which is default home directory of all1. How did you figure out that adding a new user will solve the problem?
non-root users.
directories like these and it's initial configurations can be found/home/user1
/home/user2
every home users directory.ls -la ~/.
Since you have created this new /home directory - it don't have any user files.
Since root users default home is /root - you can login as root.And then creating
new users will add directories under /home.
This files will be user by login ,check your /etc/passwd file which will have a line
something like
Here my user name is oss , and my default home is /home/oss.oss
:506:506::/home/oss:/bin/bash
If that /home/oss don't exists then that will be an error.
Honestly , I don't never heard of .dmrc file so far2. I searched the whole internet and found out that there was something wrong in .dmrc file (I even don't know properly what is that) and tried to do experiments on it after reading many forums. My question is : many people had this problem and every advice was pointing towards .dmrc file. But why you did not give me the same advise? How did you know that it will not work?
I have came across following files but not .dmrc file - I thought .dmrc might be a user configuration file which might be created when you create a new user.
.bash_history .bash_logout .bash_profile .bashrcFormatting /home,It has no home directory for non-root user to login.3. And last but not least : tell me how did my problem originate after partitioning?- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------
- 07-16-2009 #8Just Joined!
- Join Date
- Apr 2009
- Posts
- 63
Thank you

I am slowly learning these things. Now I am going to create embedded linux in that new partition which I created. I will follow the books which you mentioned and the steps you gave
- 07-17-2009 #9Just Joined!
- Join Date
- Apr 2009
- Posts
- 63
A little annoying
Hi,
As I said earlier, I can now login to my system, but it is a bit annoying. This is what happens when I power on my computer :
I get 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.
Then I get same error messages as mentioned in my first post and after that it takes me to a login screen.Then I give my username (which is the new user I added yesterday) and password,then only I can use my computer.
Why is this happening? Earlier, it asked for nothing and it directly used to take me to my desktop. How can I stop those annoying messages?
- 07-17-2009 #10
Sometimes I used to get similar messages for /etc/sudoers (after editing the file), for security reasons.
Make sure your are owner and file has correct permissions.
Get root privilages using
and the run following commandssu
I have assumed "newinlinux" as your user namechown newinlinux:newinlinux /home/newinlinux/.dmrc
chmod 644 /home/newinlinux/.dmrc
- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------


Reply With Quote
