I might have missed something or done a (stupid) mistake somewhere… Any idea of what I am doing wrong ?
Here is what I have done :
First I have flashed the Jetson TK1 board with the latest image Linux for Tegra TK1 (with the latest Jetpack L4T provided by Nvidia)
I have updated the ubuntu linux packages
I have added an SSD via the eSata connector. The partition is mounted via the /etc/fstab configuration file, that I have edited manually like this :
ubuntu@tegra-ubuntu:~$ cat /etc/fstab # UNCONFIGURED FSTAB FOR BASE SYSTEM UUID=41470744-5503-4e23-940b-0674fec1ae92 /media/TK1-SSD auto nosuid,nodev,nofail,comment=x-gvfs-show 0 0
and I can access normally the SSD disk and navigate the directories and files ,etc (via the unix command line or the File explorer. The “TK1-SSD” drive is also dispalyed in the GUI launcher bar)
- I have created a new user named “jetson” and try to locate its home directory on the SSD (note : it has the same group ID than the default user “ubuntu”, so it is in the group “ubuntu” and I made sure that the path to the new home directory on the SSD has rwx rights for the group
sudo useradd jetson --gid 1000 --create-home --home /media/TK1-SSD/home/jetson sudo usermod -a -G sudo jetson sudo passwd jetson # To define the user's password
When I try to close the “ubuntu” session and open a session for user “jetson” (with lightdm GUI), it fails with a black screen. In order to recover I have to connect from another computer to the jetson board through ssh with user ubuntu, and execute “sudo restart lightdm” and proceed to login with the “ubuntu” user (home directory still located in /home )
Here are what he directories and their rights look like :
ubuntu@tegra-ubuntu:~$ ll /home/ total 12 drwxr-xr-x 3 root root 4096 Jun 16 14:46 ./ drwxr-xr-x 21 root root 4096 Apr 15 17:16 ../ drwxr-xr-x 20 ubuntu ubuntu 4096 Jun 21 11:29 ubuntu/ ubuntu@tegra-ubuntu:~$ ll /media total 12 drwxr-xr-x 3 root root 4096 Jun 15 13:36 ./ drwxr-xr-x 21 root root 4096 Apr 15 17:16 ../ <b>drwxrwx--- 8 ubuntu ubuntu 4096 Jun 16 13:11 TK1-SSD/</b> ubuntu@tegra-ubuntu:~$ ll /media/TK1-SSD/ total 56 drwxrwx--- 8 ubuntu ubuntu 4096 Jun 16 13:11 ./ drwxr-xr-x 3 root root 4096 Jun 15 13:36 ../ <b>drwxrwxr-x 4 ubuntu ubuntu 4096 Jun 16 14:46 home/</b> ubuntu@tegra-ubuntu:~$ ll /media/TK1-SSD/home/ total 16 drwxrwxr-x 4 ubuntu ubuntu 4096 Jun 16 14:46 ./ drwxrwx--- 8 ubuntu ubuntu 4096 Jun 16 13:11 ../ <b>drwxr-xr-x 2 jetson ubuntu 4096 Jun 16 14:35 jetson/</b>
I have tried several variant :
- If I start by creating the user jetson (same method) but define the home directory in /home/jetson, there is no issue to open a session with that user in lightdm
- After this, if I move this user home directory into /media/TK1-SSD/home/jetson with the command "sudo usermod -m -d /media/TK1-SSD/home/jetson " ) , the problem occurs
- with the “jetson” user home directory located on the SSD drive, I have no issue to open a user session for the jetson user via ssh.
So the problem looks to be related with lightgm, certainly an access right issue
When I look into the logs, especially lightdm logs, I don’t spot any obvious error in /var/log/lightdm/lightdm.log,
I also checked that there is no default user in the conf file of lightdm :
ubuntu@tegra-ubuntu:~$ sudo cat /etc/lightdm/lightdm.conf [SeatDefaults] autologin-user= ubuntu@tegra-ubuntu:~$
Any idea what could cause the error and how I could correct it ?