Gentoo Archives: gentoo-user

From: bobwxc <bobwxc@××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] fstab mount /home by default
Date: Sun, 17 Jan 2021 09:31:55
Message-Id: 1cab96fb-24fc-9997-23e3-477b32b0f234@88.com
In Reply to: Re: [gentoo-user] fstab mount /home by default by Stefan Schmiedl
1 在 2021/1/17 下午4:42, Stefan Schmiedl 写道:
2 > "thelma@×××××××××××.com" <thelma@×××××××××××.com>, 17.01.2021, 09:34:
3 >
4 >>  On 1/17/21 1:22 AM, thelma@×××××××××××.com wrote:
5 >>> On one of my system I have in fstab:
6 >>> /dev/sda4             /home           ext4            noatime         0 1
7 >>> and /home is mounted by default
8 >>>
9 >>> On my new installation, I have in my fstab:
10 >>> /dev/sda5             /home           ext4            noatime         0 1
11 >>>
12 >>> but on new installation /home doesn't mount by default, why?
13 >>>
14 >>> On new installation, I created a user without "-m"
15 >>> useradd  -G users,wheel,audio -s /bin/bash thelma
16 >>>
17 >>> added to fstab:
18 >>> /dev/sda5             /home           ext4            noatime         0 1
19 >>>
20 >>> but it doesn't mount by default.
21 >>> xfce4 created new entry in /home  /thelma
22 >>> so I deleted the entry /thelma but manual mounting:  mount /dev/sda5 /home
23 >>> does not create directory /thelma manually under /home
24 >>>
25 >>> When I mount manually /dev/sda5  /home all data is there but but trying login as user "X" gets a black screen now.
26 >>> How to get back "X"
27 >>>
28 >>> When I ssh and try to start it manually I get:
29 >>> Fatal server error:
30 >>> (EE) xf86OpenConsole: Cannot open virtual console 8 (Permission denied)
31 >> Spelling :-/
32 >> It should be:
33 >> dev/sda5                /home           ext4            defaults                0 1
34 >>
35 > this line is missing a leading /, it should be the full path to the device:
36 >
37 > /dev/sda5 ...
38 >
39 > s.
40 >
41 1. You'd better use UUID instead of /dev/path
42 2. check your origin  ~/.config/user-dirs.dirs  and make dirs in you new
43 home
44
45 --
46 bobwxc
47 F645 5C7A 08E8 A637 24C6 D59E 36E9 4EAB B53E 516B

Attachments

File name MIME type
OpenPGP_signature.asc application/pgp-signature