Author Topic: <SOLVED> /home/user files inaccessible afer new install  (Read 1518 times)

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
<SOLVED> /home/user files inaccessible afer new install
« on: February 13, 2012, 02:49:51 PM »
On my hdd, I have 25 gig for system files and 65+ gig for home-user files.
system is sda5 and home-user is sda7.

Today I installed the PCLOS 2012. After install I can access ROOT, but when I try to access the USER the message appears:
    Cannot enter home directory. Using /.  

and when I press OK a new message appears:

kstartupconfig4  does not exist or fails. Error code 3. Check.

All of the user files are there and can be accessed via Dolphin in ROOT, but I cannot access the USER ...

newlife
« Last Edit: February 13, 2012, 04:43:40 PM by Newlife »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: /home/user files inaccessible afer new install
« Reply #1 on: February 13, 2012, 02:56:31 PM »
What is the result of ls -l /home in a terminal? What is your new username?
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline aguila

  • Hero Member
  • *****
  • Posts: 1210
  • soaring high = no Windows here :-D
Re: /home/user files inaccessible afer new install
« Reply #2 on: February 13, 2012, 03:00:18 PM »
search the forum. This has been discussed a few days ago. Can't find it now but it was a thread started by Hondo.

Have you added your /home partition in /etc/fstab? You can open a terminal, type

Code: [Select]
cat /etc/fstab
and post the output here.

Sorry for being short, typing on the mobile...
« Last Edit: February 13, 2012, 03:02:13 PM by aguila »
All that is is good. PCLinuxOS is.

Thinkpad X61 Tablet, Core2Duo 1.66 MHz, 4 GB Ram, Intel onboard Graphics, Plextor PX-256M3 256 GB SSD; Thinkpad R61i, Core2Duo 1.66 MHz, 2 GB Ram, Intel onboard graphics, 120 GB HDD

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
Re: /home/user files inaccessible afer new install
« Reply #3 on: February 13, 2012, 03:30:37 PM »
What is the result of ls -l /home in a terminal? What is your new username?

[root@localhost ~]# ls -l /home
total 36
drwx------ 80 peter peter  4096 Feb 13 14:31 peter/
drwx------ 21 sam   sam    4096 Feb  5 06:48 sam/
drwxr-xr-x  2 root  root  20480 Jan 18 14:11 syn/
drwxr-xr-x  2 root  root   4096 Feb 13 12:59 TERMX/
drwx------  6 root  root   4096 Feb 13 14:46 tmp/
[root@localhost ~]#

No new username.  Just the original...peter

But i can't access peter.

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: /home/user files inaccessible afer new install
« Reply #4 on: February 13, 2012, 03:34:58 PM »

Have you added your /home partition in /etc/fstab? You can open a terminal, type

Code: [Select]
cat /etc/fstab
and post the output here.


Open a terminal. Post results of:

su -
mount
cat /etc/fstab
exit
exit


Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: /home/user files inaccessible afer new install
« Reply #5 on: February 13, 2012, 03:36:54 PM »

Today I installed the PCLOS 2012. After install I can access ROOT, but when I try to access the USER the message appears:
    Cannot enter home directory. Using /. 

I think you forgot to tell us something you have done, this is not a straight installation.  ;)

AS

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
Re: /home/user files inaccessible afer new install
« Reply #6 on: February 13, 2012, 03:43:18 PM »

Have you added your /home partition in /etc/fstab? You can open a terminal, type

Code: [Select]
cat /etc/fstab
and post the output here.


Open a terminal. Post results of:

[root@localhost ~]# mount /cat/fstab/
mount: can't find /cat/fstab/ in /etc/fstab or /etc/mtab

newlife


su -
mount
cat /etc/fstab
exit
exit




Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
Re: /home/user files inaccessible afer new install
« Reply #7 on: February 13, 2012, 03:51:28 PM »

Today I installed the PCLOS 2012. After install I can access ROOT, but when I try to access the USER the message appears:
    Cannot enter home directory. Using /. 

I think you forgot to tell us something you have done, this is not a straight installation.  ;)

AS

Hmmmm. I downloaded the iso... burned it.

Then ran disk to install...  sda5 for operating system was formatted and new install.
sda7 with user files stayed intact  ... are still present just cant access.
newlife

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: /home/user files inaccessible afer new install
« Reply #8 on: February 13, 2012, 03:51:49 PM »

Have you added your /home partition in /etc/fstab? You can open a terminal, type

Code: [Select]
cat /etc/fstab
and post the output here.


Open a terminal. Post results of:

[root@localhost ~]# mount /cat/fstab/
mount: can't find /cat/fstab/ in /etc/fstab or /etc/mtab

newlife


su -
mount
cat /etc/fstab
exit
exit




Open a terminal. Post results of:

su -                    [ENTER]
mount                [ENTER]
cat /etc/fstab   [ENTER]



Do not type [ENTER], press the  [ENTER] key there. Each command goes on a new line.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
Re: /home/user files inaccessible afer new install
« Reply #9 on: February 13, 2012, 04:05:02 PM »

Have you added your /home partition in /etc/fstab? You can open a terminal, type

Code: [Select]
cat /etc/fstab
and post the output here.


Open a terminal. Post results of:

[root@localhost ~]# mount /cat/fstab/
mount: can't find /cat/fstab/ in /etc/fstab or /etc/mtab

newlife


su -
mount
cat /etc/fstab
exit
exit




Open a terminal. Post results of:

su -                    [ENTER]
mount                [ENTER]
cat /etc/fstab   [ENTER]



Do not type [ENTER], press the  [ENTER] key there. Each command goes on a new line.


Sorry!!! I must still be asleep.

[root@localhost /]# su
[root@localhost /]# mount
/dev/sda5 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda7 on /home type ext4 (rw)
[root@localhost /]# cat /etc/fstab/
cat: /etc/fstab/: Not a directory
[root@localhost /]#

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: /home/user files inaccessible afer new install
« Reply #10 on: February 13, 2012, 04:07:14 PM »

[root@localhost /]# cat /etc/fstab/
cat: /etc/fstab/: Not a directory
[root@localhost /]#


cat /etc/fstab

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
Re: /home/user files inaccessible afer new install
« Reply #11 on: February 13, 2012, 04:08:50 PM »

[root@localhost /]# cat /etc/fstab/
cat: /etc/fstab/: Not a directory
[root@localhost /]#


cat /etc/fstab



[root@localhost /]# cat /etc/fstab
# Entry for /dev/sda5 :
UUID=3bdfa50f-6fe2-4000-99b7-2b9fe2b16376 / ext3 defaults 1 1
# Entry for /dev/sda7 :
UUID=9aeb05af-d1aa-4353-97f9-c11adf7bbb28 /home ext4 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda6 :
UUID=a7fb76d7-be3f-429d-b530-66f26be87359 swap swap defaults 0 0
none /dev/pts devpts defaults 0 0
[root@localhost /]#

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: /home/user files inaccessible afer new install
« Reply #12 on: February 13, 2012, 04:14:29 PM »
Hmmmm. I downloaded the iso... burned it.

Then ran disk to install...  sda5 for operating system was formatted and new install.
sda7 with user files stayed intact  ... are still present just cant access.
newlife

No new username.  Just the original...peter
But i can't access peter.

Please, try the following command:

Code: [Select]
grep  peter  /etc/passwd

Offline Newlife

  • Sr. Member
  • ****
  • Posts: 270
Re: /home/user files inaccessible afer new install
« Reply #13 on: February 13, 2012, 04:18:53 PM »
Hmmmm. I downloaded the iso... burned it.

Then ran disk to install...  sda5 for operating system was formatted and new install.
sda7 with user files stayed intact  ... are still present just cant access.
newlife

No new username.  Just the original...peter
But i can't access peter.

Please, try the following command:

Code: [Select]
grep  peter  /etc/passwd

[root@localhost /]# grep  peter  /etc/passwd

peter:x:501:502:Peter:/home/peter:/bin/bash

[root@localhost /]#

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: /home/user files inaccessible afer new install
« Reply #14 on: February 13, 2012, 04:23:22 PM »
AS,


[root@localhost ~]# ls -l /home
total 36
drwx------ 80 peter peter  4096 Feb 13 14:31 peter/
drwx------ 21 sam   sam    4096 Feb  5 06:48 sam/
drwxr-xr-x  2 root  root  20480 Jan 18 14:11 syn/
drwxr-xr-x  2 root  root   4096 Feb 13 12:59 TERMX/
drwx------  6 root  root   4096 Feb 13 14:46 tmp/
[root@localhost ~]#


peter and sam home directories should be 755 instead of 700. Should be:

drwxr-xr-x 74 peter peter  4096 4096 Feb 13 14:31 peter/

EDIT: His group membership is wrong, too.

peter:x:501:502:Peter:/home/peter:/bin/bash

Should be peter:x:501:501:Peter:/home/peter:/bin/bash
« Last Edit: February 13, 2012, 04:25:49 PM by djohnston »
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378