Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Static /dev
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 225

PostPosted: Sun Jan 17, 2016 8:42 pm    Post subject: [SOLVED] Static /dev Reply with quote

Neddy,

i followed your guide on static /dev, but there are quirks I have not yet figured out (namely, /dev/pts is not working). So currently I'm just mounting devtmpfs and have sys-fs/static-dev merged.


Last edited by bstaletic on Sun Jan 17, 2016 9:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43560
Location: 56N 3W

PostPosted: Sun Jan 17, 2016 8:48 pm    Post subject: Reply with quote

bstaletic,

Lets have a new topic. Its here because as far as I know, Its only me that supports it.

For /dev/pts you need kernel support, as you would anyway and a /etc/fstab entry
Code:
# does devpts work ?
devpts                  /dev/pts        devpts                  rw,nosuid,noexec,relatime,gid=5,mode=620 0 0

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 225

PostPosted: Sun Jan 17, 2016 9:09 pm    Post subject: Reply with quote

Neddy,

First, big thanks for an extremely quick reply.

After /etc/fstab edit using your pts line, /dev/pts started working.

One more problem - hwclock.
While booting open-rc prints the following at the start of boot runlevel:
Code:
hwclock            | * Setting system clock using the hardware clock [UTC] ...
hwclock            |hwclock: Cannot access the Hardware Clock via any known method.
hwclock            |hwclock: Use the --debug option to see the details of our search for an access method.
hwclock            | * Failed to set the system clock
[ !! ]


In a running system issuing "/etc/init.d/hwclock --debug start" says it's already started, while stopping prints this.

Hwclock file in /etc/conf.d:
Code:
# Set CLOCK to "UTC" if your Hardware Clock is set to UTC (also known as
# Greenwich Mean Time).  If that clock is set to the local time, then
# set CLOCK to "local".  Note that if you dual boot with Windows, then
# you should set it to "local".
clock="UTC"

# If you want the hwclock script to set the system time (software clock)
# to match the current hardware clock during bootup, leave this
# commented out.
# However, you can set this to "NO" if you are running a modern kernel
# and using NTP to synchronize your system clock.
#clock_hctosys="YES"
# If you do not want to set the hardware clock to the current system
# time (software clock) during shutdown, set this to no.
clock_systohc="YES"

# If you wish to pass any other arguments to hwclock during bootup,
# you may do so here. Alpha users may wish to use --arc or --srm here.
clock_args=""
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43560
Location: 56N 3W

PostPosted: Sun Jan 17, 2016 9:16 pm    Post subject: Reply with quote

bstaletic,

Do you have
Code:
roy@NeddySeagoon_Static ~ $ ls /dev/rt* -l
crw-r--r-- 1 root root  10, 135 May 12  2013 /dev/rtc
crw------- 1 root root 254,   0 May 15  2013 /dev/rtc0


You will need to mknod those /dev entries if not.
You also need kernel support for the CMOS clock. Its on by default.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 225

PostPosted: Sun Jan 17, 2016 9:28 pm    Post subject: Reply with quote

Thanks, everything works now! :D

If anyone wants to know, /dev/rtc0 was missing.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum