Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
przypadkiem mogłem usunąć katalog /var/ mam teraz problem z niektórymi usługami
root@raspberrypi /home/pi # dpkg-reconfigure ntp [ ok ] Stopping NTP server: ntpd. chown: nie ma dostępu do `/var/log/ntpstats': Nie ma takiego pliku ani katalog
jak można to odtworzyć?
Offline
Może utwórz katalogi (z Debiana), a potem reinstaluj usługi, które pyskują:
ls -al /media/var
razem 44
drwxr-xr-x 11 root root 4096 08-20 18:09 .
drwxr-xr-x 23 root root 4096 12-19 16:46 ..
drwxr-xr-x 2 root root 4096 12-19 16:39 backups
drwxr-xr-x 11 root root 4096 11-11 20:44 cache
drwxr-xr-x 59 root root 4096 11-11 21:44 lib
drwxrwsr-x 2 root games 4096 2013-05-06 local
lrwxrwxrwx 1 root root 9 08-10 18:46 lock -> /run/lock
drwxr-xr-x 9 root root 4096 12-21 17:02 log
drwxrwsr-x 2 root mem 4096 12-21 17:03 mail
drwxr-xr-x 2 root root 4096 08-10 16:46 opt
lrwxrwxrwx 1 root root 4 08-10 12:46 run -> /run
drwxr-xr-x 7 root root 4096 08-12 05:20 spool
drwxrwxrwt 9 root root 4096 12-21 23:01 tmp[/quote]Ostatnio edytowany przez marcin'82 (2013-12-22 10:21:57)
marcin'82
Offline
Jasne - katalogi:
ls -al /media/var/log | grep drwxr
drwxr-xr-x 9 root root 4096 12-21 10:02 .
drwxr-xr-x 11 root root 4096 08-20 18:09 ..
drwxr-xr-x 2 root root 4096 12-04 21:44 apt
drwxr-xr-x 2 root root 4096 12-04 22:44 ConsoleKit
drwxr-xr-x 2 113 122 4096 08-19 20:39 dirmngr
drwxr-s--- 2 101 adm 4096 12-19 16:39 exim4
drwxr-xr-x 2 root root 4096 08-10 17:47 fsck
drwxr-xr-x 3 root root 4096 08-10 17:55 installer
drwxr-xr-x 2 108 115 4096 2013-05-20 ntpstats[/quote]Ostatnio edytowany przez marcin'82 (2013-12-22 11:06:34)
marcin'82
Offline
Pliki same sie powinny utworzyć, otwarcie pliku do zapisu, powinno automatycznie tworzyc plik, od biedy mogles zrobic:
touch /var/log/ntpstats
Oczywiscie to nie zadziała jezeli nie masz folderu "/var/log"
No ale klepiesz
mkdir -p /var/log
Offline
Hurtownia:
- katalogi
mkdir -p /var/log/{apt;ConsoleKit;dirmngr;exim4;fsck;installer;ntpstatsapt}
- pliki
touch /var/log/{plik1;plik2;plik3}
Offline
Albo hardkorowo :D
aptitude reinstall ~i
Offline
Time (s) | Query |
---|---|
0.00017 | SET CHARSET latin2 |
0.00006 | SET NAMES latin2 |
0.00112 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.141.21.199' WHERE u.id=1 |
0.00079 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.141.21.199', 1732855204) |
0.00080 | SELECT * FROM punbb_online WHERE logged<1732854904 |
0.00075 | DELETE FROM punbb_online WHERE ident='18.116.81.255' |
0.00069 | DELETE FROM punbb_online WHERE ident='18.117.99.192' |
0.00083 | DELETE FROM punbb_online WHERE ident='18.188.91.223' |
0.00089 | DELETE FROM punbb_online WHERE ident='18.220.97.161' |
0.00079 | DELETE FROM punbb_online WHERE ident='18.222.166.127' |
0.00069 | DELETE FROM punbb_online WHERE ident='185.191.171.16' |
0.00090 | DELETE FROM punbb_online WHERE ident='3.149.27.33' |
0.00115 | SELECT topic_id FROM punbb_posts WHERE id=249292 |
0.00006 | SELECT id FROM punbb_posts WHERE topic_id=24873 ORDER BY posted |
0.00105 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=24873 AND t.moved_to IS NULL |
0.00008 | SELECT search_for, replace_with FROM punbb_censoring |
0.00219 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=24873 ORDER BY p.id LIMIT 0,25 |
0.00080 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=24873 |
Total query time: 0.01381 s |