NL: 3x Victron Multiplus II 5000VA, 1x Victron SmartSolar MPPT RS 450/200, 50kWh (3x Yixiang v2 met EVE MB30's) | IT: Deye SUN-15K-SG01HP3-EU-AM2, Deye BOS-G50 Pro (51,2kWh HV)
Meestal staat er tijdens het boot proces ook wel "creating virtual console 1-8", kijk ff of dat er bij jou ook staat. Maar iig is screen erg aan te raden, dan kan je namelijk ook snel knippen/plakken tussen 2 consoles en er zijn nog meer handige truukjes.
Ik zal zo is even gaan kijkenPetok schreef op vrijdag 16 november 2007 @ 15:44:
Gebruik screen.
Meestal staat er tijdens het boot proces ook wel "creating virtual console 1-8", kijk ff of dat er bij jou ook staat. Maar iig is screen erg aan te raden, dan kan je namelijk ook snel knippen/plakken tussen 2 consoles en er zijn nog meer handige truukjes.
Virtual consoles worden overigens in Ubuntu niet aangekondigd dat ze aangemaakt worden.
Ik heb rcS.d even doorgespit en ik kan er maar 2 console-achtige scripts in vinden, namelijk console-screen en console-setup. Beiden worden gebruikt om de fonts en codesets in te stellen, niet meer.
Allebei N 2.deadinspace schreef op vrijdag 16 november 2007 @ 16:22:
Kijk eens (met "runlevel") in welk runlevel je systeem draait met read-only root fs, en in welk runlevel met read-write root fs?
[ Voor 57% gewijzigd door OverSoft op 16-11-2007 17:44 ]
NL: 3x Victron Multiplus II 5000VA, 1x Victron SmartSolar MPPT RS 450/200, 50kWh (3x Yixiang v2 met EVE MB30's) | IT: Deye SUN-15K-SG01HP3-EU-AM2, Deye BOS-G50 Pro (51,2kWh HV)
/etc/inittab:1:2345:respawn:/sbin/getty 38400 tty1 /etc/inittab:2:23:respawn:/sbin/getty 38400 tty2 /etc/inittab:3:23:respawn:/sbin/getty 38400 tty3 /etc/inittab:4:23:respawn:/sbin/getty 38400 tty4 /etc/inittab:5:23:respawn:/sbin/getty 38400 tty5 /etc/inittab:6:23:respawn:/sbin/getty 38400 tty6
In principe moeten er dus in runlevel 2 netjes zes VTs gespawnd worden. Welke processen draaien er als je / ro gemount is?
Zou /var niet writable moeten zijn? Daar worden veel PIDs opgeslagen.
tty1:# tty1 - getty tty1:# This service maintains a getty on tty1 from the point the system is tty1:exec /sbin/getty 38400 tty1 tty2:# tty2 - getty tty2:# This service maintains a getty on tty2 from the point the system is tty2:exec /sbin/getty 38400 tty2 tty3:# tty3 - getty tty3:# This service maintains a getty on tty3 from the point the system is tty3:exec /sbin/getty 38400 tty3 tty4:# tty4 - getty tty4:# This service maintains a getty on tty4 from the point the system is tty4:exec /sbin/getty 38400 tty4 tty5:# tty5 - getty tty5:# This service maintains a getty on tty5 from the point the system is tty5:exec /sbin/getty 38400 tty5 tty6:# tty6 - getty tty6:# This service maintains a getty on tty6 from the point the system is tty6:exec /sbin/getty 38400 tty6
Mijn mounts (gewoon de output van mount dus):
rootfs on / type rootfs (rw) none on /sys type sysfs (rw,nosuid,nodev,noexec) none on /proc type proc (rw,nosuid,nodev,noexec) udev on /dev type tmpfs (rw) fusectl on /sys/fs/fuse/connections type fusectl (rw) /dev/sda1 on / type ext3 (ro,data=ordered) /dev/sda1 on /dev/.static/dev type ext3 (ro,data=ordered) tmpfs on /var/run type tmpfs (rw,nosuid,nodev,noexec) tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,noexec) tmpfs on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw) tmpfs on /dev/shm type tmpfs (rw) devpts on /dev/pts type devpts (rw) tmpfs on /var/run type tmpfs (rw,nosuid,nodev,noexec) tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,noexec) /dev/sda2 on /home type ext3 (rw,data=ordered) tmpfs on /var/log type tmpfs (rw) tmpfs on /tmp type tmpfs (rw) tmpfs on /var/lib/initscripts type tmpfs (rw) tmpfs on /var/lib/xkb type tmpfs (rw) tmpfs on /var/lib/urandom type tmpfs (rw) securityfs on /sys/kernel/security type securityfs (rw)
(Waar die dubbele vermeldingen vandaan komen weet ik niet, de fstab instellingen zijn alleen voor sda1 t/m sda3 en /tmp, /var/lib/initscripts, /var/lib/xkb, /var/lib/urandom).
Output van ps aux:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 2.6 0.3 2948 1852 ? Ss 19:06 0:01 /sbin/init root 2 0.0 0.0 0 0 ? S< 19:06 0:00 [kthreadd] root 3 0.0 0.0 0 0 ? S< 19:06 0:00 [migration/0] root 4 0.0 0.0 0 0 ? SN 19:06 0:00 [ksoftirqd/0] root 5 0.0 0.0 0 0 ? S< 19:06 0:00 [watchdog/0] root 6 0.0 0.0 0 0 ? S< 19:06 0:00 [migration/1] root 7 0.0 0.0 0 0 ? SN 19:06 0:00 [ksoftirqd/1] root 8 0.0 0.0 0 0 ? S< 19:06 0:00 [watchdog/1] root 9 0.0 0.0 0 0 ? S< 19:06 0:00 [events/0] root 10 0.0 0.0 0 0 ? S< 19:06 0:00 [events/1] root 11 0.0 0.0 0 0 ? S< 19:06 0:00 [khelper] root 31 0.0 0.0 0 0 ? S< 19:06 0:00 [kblockd/0] root 32 0.0 0.0 0 0 ? S< 19:06 0:00 [kblockd/1] root 33 0.0 0.0 0 0 ? S< 19:06 0:00 [kacpid] root 34 0.0 0.0 0 0 ? S< 19:06 0:00 [kacpi_notify] root 136 0.0 0.0 0 0 ? S< 19:06 0:00 [kseriod] root 163 0.0 0.0 0 0 ? S 19:06 0:00 [pdflush] root 164 0.0 0.0 0 0 ? S 19:06 0:00 [pdflush] root 165 0.0 0.0 0 0 ? S< 19:06 0:00 [kswapd0] root 216 0.0 0.0 0 0 ? S< 19:06 0:00 [aio/0] root 217 0.0 0.0 0 0 ? S< 19:06 0:00 [aio/1] root 2064 0.0 0.0 0 0 ? S< 19:06 0:00 [ksuspend_usbd] root 2065 0.0 0.0 0 0 ? S< 19:06 0:00 [khubd] root 2083 0.0 0.0 0 0 ? S< 19:06 0:00 [ata/0] root 2084 0.0 0.0 0 0 ? S< 19:06 0:00 [ata/1] root 2085 0.0 0.0 0 0 ? S< 19:06 0:00 [ata_aux] root 2142 0.0 0.0 0 0 ? S< 19:06 0:00 [scsi_eh_0] root 2143 0.0 0.0 0 0 ? S< 19:06 0:00 [scsi_eh_1] root 2180 0.0 0.0 0 0 ? S< 19:06 0:00 [scsi_eh_2] root 2181 0.0 0.0 0 0 ? S< 19:06 0:00 [scsi_eh_3] root 2323 0.0 0.0 0 0 ? S< 19:06 0:00 [kjournald] root 2507 0.4 0.1 2452 696 ? S<s 19:07 0:00 /sbin/udevd --daemon root 3465 0.0 0.0 0 0 ? S< 19:07 0:00 [kpsmoused] root 3614 0.0 0.0 1672 172 ? Ss 19:07 0:00 logsave -s /var/log/fsck/checkroot fsck -C -y -t ext3 /dev/sda1 root 3683 0.0 0.0 0 0 ? S< 19:07 0:00 [kjournald] root 3905 0.0 0.1 1696 516 tty4 Ss+ 19:07 0:00 /sbin/getty 38400 tty4 root 3906 0.0 0.1 1696 516 tty5 Ss+ 19:07 0:00 /sbin/getty 38400 tty5 root 3908 0.0 0.1 1696 520 tty2 Ss+ 19:07 0:00 /sbin/getty 38400 tty2 root 3910 0.0 0.1 1696 520 tty3 Ss+ 19:07 0:00 /sbin/getty 38400 tty3 root 3912 0.0 0.2 2776 1204 tty1 Ss 19:07 0:00 /bin/login -- root 3914 0.0 0.1 1692 516 tty6 Ss+ 19:07 0:00 /sbin/getty 38400 tty6 root 4090 0.0 0.1 1904 796 ? Ss 19:07 0:00 /usr/sbin/acpid -c /etc/acpi/events -s /var/run/acpid.socket syslog 4134 0.0 0.1 1916 728 ? Ss 19:07 0:00 /sbin/syslogd -u syslog root 4186 0.0 0.1 1836 532 ? S 19:07 0:00 /bin/dd bs 1 if /proc/kmsg of /var/run/klogd/kmsg klog 4188 0.1 0.2 2504 1396 ? Ss 19:07 0:00 /sbin/klogd -P /var/run/klogd/kmsg root 4212 0.0 0.2 2784 1236 ? S 19:07 0:00 /bin/bash /sbin/monitorumtsservice root 4248 0.0 1.5 26276 7692 ? Ss 19:07 0:00 /usr/sbin/apache2 -k start www-data 4280 0.0 0.7 26276 3836 ? S 19:07 0:00 /usr/sbin/apache2 -k start www-data 4281 0.0 0.7 26276 3836 ? S 19:07 0:00 /usr/sbin/apache2 -k start www-data 4282 0.0 0.7 26276 3836 ? S 19:07 0:00 /usr/sbin/apache2 -k start www-data 4283 0.0 0.7 26276 3836 ? S 19:07 0:00 /usr/sbin/apache2 -k start www-data 4284 0.0 0.7 26276 3836 ? S 19:07 0:00 /usr/sbin/apache2 -k start root 4304 0.0 0.1 1752 528 ? S 19:07 0:00 /bin/sh /usr/bin/mysqld_safe mysql 4344 0.3 3.3 127464 16760 ? Sl 19:07 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock root 4345 0.0 0.1 1680 552 ? S 19:07 0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld root 4528 0.1 0.3 4216 1812 tty1 S 19:07 0:00 -bash daemon 4576 0.0 0.0 1964 432 ? Ss 19:07 0:00 /usr/sbin/atd root 4590 0.0 0.1 2332 908 ? Ss 19:07 0:00 /usr/sbin/cron root 4629 0.0 0.0 1676 420 ? S 19:07 0:00 sleep 1 root 4630 0.0 0.1 2624 1004 tty1 R+ 19:07 0:00 ps aux
Sorry van de lange post, moest alles even kwijt
Overigens heb ik het nu wel voor elkaar dat ik tussen consoles kan switchen, maar ik kan nog steeds niet vanaf X11 naar een console schakelen. (Hoe ik het voor elkaar heb gekregen weet ik overigens niet, ben vanmiddag met van alles en nog wat bezig geweest)
Ik ben nu even een scriptje aan het schijven, zodat ik achteraf de Xorg.0.log kan terugzien, misschien dat er geen keyboard modules o.i.d. geladen kunnen worden.
NL: 3x Victron Multiplus II 5000VA, 1x Victron SmartSolar MPPT RS 450/200, 50kWh (3x Yixiang v2 met EVE MB30's) | IT: Deye SUN-15K-SG01HP3-EU-AM2, Deye BOS-G50 Pro (51,2kWh HV)
Ik heb /var nu ook op de RW partitie gemount en het probleem is weg.
Het vreemde is dat Xorg geen enkele fout gaf bij het opstarten, ik kon alleen niet switchen van consoles. Nu /var RW gemount is, geen enkel probleem.
Nog een laatste vraag, heeft iemand een idee waarom Ubuntu /var/run en /var/lock 2 keer mount?
NL: 3x Victron Multiplus II 5000VA, 1x Victron SmartSolar MPPT RS 450/200, 50kWh (3x Yixiang v2 met EVE MB30's) | IT: Deye SUN-15K-SG01HP3-EU-AM2, Deye BOS-G50 Pro (51,2kWh HV)