FedoraForum.org - Fedora Support Forums and Community
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2008
    Posts
    382
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Gnome-terminal starts at /

    I just installed F11 on my laptop, using a preexisting /home partition. Now when I log in everything works ok, but gnome-terminal starts at / instead of my home folder. If I type "cd" I do get to my folder.

    I'm not sure what's going on. I used my home temporarily for an Ubuntu install while I was figuring out how to install F11 on my laptop. User and group ids are ok. And I remember, I think on my first or second boot, seeing a message somewhere that my home folder didn't exist (though it definitely does!).

  2. #2
    Join Date
    Feb 2009
    Posts
    2,743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What home directory do you have in /etc/passwd (must be root)?

  3. #3
    Join Date
    May 2008
    Posts
    382
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seems to be the right one:

    Code:
    username:x:1000:1000:My Name:/home/username:/bin/bash
    By the way, the issue is (as I expected) not particular to gnome-terminal. For example, if I make a shortcut in my desktop executing some script that I have in my home directory but don't use the full path, it doesn't find it.

  4. #4
    Join Date
    Jul 2009
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GNOME terminal starts in /

    I'm using Fedora11.

    Earlier today I removed my /home directory to a new partition with a procedure close to this one:
    (as root on runlevel 1)
    Code:
    mkdir /newpart
    mount /dev/sda4 /newpart
    cd /home
    cp -ax * /newpart
    mv /home /home.old
    mkdir /home
    umount /newpart
    mount /dev/sda4 /home
    And added a line to /etc/fstab:
    Code:
    /dev/sda4 /home ext4 defaults 1 3
    Later on (for other reasons) I changed UID of my user. So I changed it in /etc/passwd and /etc/group and recursively changed fileowners and -groups to the new uig/gid.

    As a test find / -uid $OLD_UID gives no output at the moment and neither on the GID.

    Now, my problem is, that when I start a terminal through GNOME, it starts in the "/" (root) directory. If I type "cd" it changes to the /home/user directory - but why doesn't it start there? May not be the biggest problem in the world, but it is still an indication that something is wrong :S

    Don't know if it is relevant, but in /var/log/messages I found the line:
    Code:
    Jan 31 21:12:09 hostname gdm-simple-greeter[3051]: WARNING: Unable to query filesystem type for /home/user: Error getting filesystem info: Permission denied
    Any ideas, how I can fix the terminal start directory?

    ---------- Post added 2010-02-01 at 01:52 AM CST ---------- Previous post was 2010-01-31 at 10:45 PM CST ----------

    Well, it seems to be related to some SElinux labelling thing. At least I found the cure in the SElinx troubleshoot browser:
    touch /.autorelabel; reboot (as root)

    After that command (and reboot) the problem seems to be solved.
    Last edited by mrbrown79; 31st January 2010 at 11:24 PM.

  5. #5
    Join Date
    Jul 2009
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  6. #6
    Join Date
    Sep 2006
    Location
    Connellsville, PA, USA
    Posts
    11,306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Threads on identical topic merged. Thanks for posting solution.

    V

  7. #7
    Join Date
    Mar 2005
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Gnome-terminal starts at /

    Thanks, that fixed it for me too. SELinux sure causes a lot of odd problems.

Similar Threads

  1. HELP! TWM starts instead of GNOME
    By micAcom in forum Using Fedora
    Replies: 8
    Last Post: 7th February 2008, 10:26 AM
  2. Replies: 3
    Last Post: 12th February 2007, 11:04 PM
  3. TWM starts up instead GNOME Desktop
    By moogii in forum Using Fedora
    Replies: 8
    Last Post: 3rd January 2007, 08:48 PM
  4. gnome terminal vt220 terminal keyboard mapping
    By gregsheu in forum Using Fedora
    Replies: 0
    Last Post: 15th May 2006, 06:54 PM
  5. gnome gone, now twm starts up instead
    By nandowong in forum Using Fedora
    Replies: 8
    Last Post: 10th October 2005, 08:11 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •