Page 1 of 1

how to repair / login in Salix 13.1 after a dual boot?

Posted: 14. Sep 2010, 03:17
by wayne
greeting,

i had Salix 13.1 installed. it worked well.
recently i played with other distros, when i dual boot another distros, it went well for that OS.

Upon reboot, and select Salix OS, it will load and come to the Salix login screen.
The issue is there is error to get into Salix using old user/password.
on screen error is:
Your home directory is listed as : '/home/nec' but it does not appear to exist. Do you want to log in with the / (root) directory as your home directory? It is unlikely anything will work unless you use a failsafe session.

however when i click Yes to the question above, i am greeted with another screen:
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 hoave 644 permissions. User's $HOME directory must be owned by user and not writable by other users.

the nest message is : Your session only lasted less than 10 seconds. If you....
view details showed
mkdir : cannot create directory '//.config' : permission denied
mkdir : cannot create directory '//.cache' : permission denied
can't create dir /home/nec/Desktop
and many more similar error.

so the dual boot from another OS must have done something to it.

How do i repair this issue to allow successful login to Salix?

thanks

Re: how to repair / login in Salix 13.1 after a dual boot?

Posted: 14. Sep 2010, 05:52
by thenktor
wayne wrote:Your home directory is listed as : '/home/nec' but it does not appear to exist.
Did you format your home partition when installing the other distribution?

Re: how to repair / login in Salix 13.1 after a dual boot?

Posted: 14. Sep 2010, 06:38
by gapan
As thenktor points out, you probably formatted your previous home partition.

When you get to the gdm login screen in salix, press Ctrl-Alt-F2. Log in as root and provide the output of mount and ls /home here. If you have formatted the home partition from another distribution, the easiest way to get your user back (but not the data that were in that homedir), would be to recreate the user; when logged in as root, run usersetup, delete the user if he appears in the lists and recreate him.

Re: how to repair / login in Salix 13.1 after a dual boot?

Posted: 14. Sep 2010, 07:38
by wayne
gapan wrote:As thenktor points out, you probably formatted your previous home partition.

When you get to the gdm login screen in salix, press Ctrl-Alt-F2. Log in as root and provide the output of mount and ls /home here. If you have formatted the home partition from another distribution, the easiest way to get your user back (but not the data that were in that homedir), would be to recreate the user; when logged in as root, run usersetup, delete the user if he appears in the lists and recreate him.

thanks so much thenktor and gapan,
actually i do not even know i format /home directory when i dual boot install another Linux OS for playing.
i think it must have done the format .. onto the /dev/sda3

Ctrl-Alt-F2 , login as root, delete user, then add user , then power off and on again did the treat

now i am back using Salix.

here is the info, however i just use normal terminal so that i can copy and paste here

nec[~]$ mount
/dev/root on / type ext4 (rw,noatime,barrier=1,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda3 on /home type ext4 (rw,noatime)
tmpfs on /dev/shm type tmpfs (rw)
gvfs-fuse-daemon on /home/nec/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=nec)
nec[~]$ ls /home
bin dev home lost+found mnt opt root sbin sys usr
boot etc lib media nec proc salix selinux tmp var
nec[~]$

Re: how to repair / login in Salix 13.1 after a dual boot?

Posted: 14. Sep 2010, 07:46
by gapan
It seems that you formatted and used the home partition of salix as a / partition of another distribution. You really need to get your partitioning straight.

Re: how to repair / login in Salix 13.1 after a dual boot?

Posted: 14. Sep 2010, 07:58
by wayne
hello gapan
yes, nice learning on this dual boot/multi-boot. got to re-install.. but it is OK, very short time for installation. 12-13 minutes..

here is the second computer with Salix installed and multi-boot with other OSes.

salix[~]$ mount
/dev/root on / type ext4 (rw,noatime,barrier=1,data=ordered)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
gvfs-fuse-daemon on /home/salix/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=salix)
salix[~]$ ls /home
salix
salix[~]$