LINUX.ORG.RU

Сообщения wolverin

 

Посоветуйте пакеты для Postfix

Форум — Admin

Собрал на Debian почтовую конфигурацию вида Postfix + Dovecot через MySQL
Хотелось бы реализовать следующее:
1. Антивирусник и спам-блокер - статья по которой все делал советует в качестве антивирусника использовать ClamAV, а для борьбы со спамом Razor и SpamAssassin. Посоветовался со знакомым админом - говорит что последний может приводить к потери писем и рекомендует использовать какой то грейлистинг. Что лучше использовать?
2. Адресную книгу - как я понимаю обычно делают это через службу каталогов OpenLDAP, но как мне привязать пользователей с полным их описанием из MySQL?

wolverin
()

Apache SSL

Форум — Admin

Хочу поднять веб-морду (roundcube) для почты через https. Сгенерировал сертификаты, но в Хроме получаю ошибку (в IE вообще тишина)

Ошибка подключения SSL
Не удается создать безопасное соединение с сервером. На сервере могла возникнуть проблема, или необходим сертификат клиентской аутентификации, который у вас отсутствует.
Ошибка 107 (net::ERR_SSL_PROTOCOL_ERROR): Ошибка протокола SSL.

даже с дефолтными не хочется запускаться

# cat /etc/apache2/sites-enabled/000-default-ssl
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
        ServerAdmin admin@xxx.ru

        DocumentRoot /var/www
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error-ssl.log

        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/access-ssl.log combined

        SSLEngine on

        SSLCertificateFile    /etc/ssl/certs/mail.xxx.ru.crt
        SSLCertificateKeyFile /etc/ssl/private/mail.xxx.ru.key

        <FilesMatch "\.(cgi|shtml|phtml|php)$">
                SSLOptions +StdEnvVars
        </FilesMatch>
        <Directory /usr/lib/cgi-bin>
                SSLOptions +StdEnvVars
        </Directory>

        BrowserMatch "MSIE [2-6]" \
                nokeepalive ssl-unclean-shutdown \
                downgrade-1.0 force-response-1.0
        BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

</VirtualHost>
</IfModule>
что еще упустил??? в логах вроде никаких ошибок не вижу

wolverin
()

Как установить GRUB вместо Lilo ???

Форум — General

Проблема ( # aptitude install grub

The following NEW packages will be installed:
  grub
The following partially installed packages will be configured:
  initramfs-tools linux-image-2.6.32-5-686
0 packages upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 118 kB of archives. After unpacking 172 kB will be used.
Get:1 http://ftp.ru.debian.org/debian/ squeeze/main grub i386 0.97-64 [118 kB]
Fetched 118 kB in 2s (54.3 kB/s)
Preconfiguring packages ...
Selecting previously deselected package grub.
(Reading database ... 26292 files and directories currently installed.)
Unpacking grub (from .../archives/grub_0.97-64_i386.deb) ...
Setting up initramfs-tools (0.98.8) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-2.6.32-5-686 (2.6.32-45) ...
Running depmod.
Running update-initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.32-5-686
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32-5-686 /boot/vmlinuz-2.6.32-5-686
run-parts: executing /etc/kernel/postinst.d/zz-lilo 2.6.32-5-686 /boot/vmlinuz-2.6.32-5-686
Fatal: Inconsistent Raid version information on /dev/md1
run-parts: /etc/kernel/postinst.d/zz-lilo exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.32-5-686.postinst line 799.
dpkg: error processing linux-image-2.6.32-5-686 (--configure):
 subprocess installed post-installation script returned error exit status 2
configured to not write apport reports
                                      Setting up grub (0.97-64) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-5-686
Fatal: Inconsistent Raid version information on /dev/md1
run-parts: /etc/initramfs/post-update.d//lilo exited with return code 1
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
                                      Errors were encountered while processing:
 linux-image-2.6.32-5-686
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up initramfs-tools (0.98.8) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-2.6.32-5-686 (2.6.32-45) ...
Running depmod.
Running update-initramfs.
update-initramfs: Generating /boot/initrd.img-2.6.32-5-686
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32-5-686 /boot/vmlinuz-2.6.32-5-686
run-parts: executing /etc/kernel/postinst.d/zz-lilo 2.6.32-5-686 /boot/vmlinuz-2.6.32-5-686
Fatal: Inconsistent Raid version information on /dev/md1
run-parts: /etc/kernel/postinst.d/zz-lilo exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-2.6.32-5-686.postinst line 799.
dpkg: error processing linux-image-2.6.32-5-686 (--configure):
 subprocess installed post-installation script returned error exit status 2
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-5-686
Fatal: Inconsistent Raid version information on /dev/md1
run-parts: /etc/initramfs/post-update.d//lilo exited with return code 1
dpkg: error processing initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-2.6.32-5-686
 initramfs-tools

# mdadm -D /dev/md1

/dev/md1:
        Version : 1.2
  Creation Time : Thu Nov  3 17:05:16 2011
     Raid Level : raid1
     Array Size : 974807275 (929.65 GiB 998.20 GB)
  Used Dev Size : 974807275 (929.65 GiB 998.20 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

    Update Time : Mon Jun 25 19:17:01 2012
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : :1  (local to host )
           UUID : 922459b7:f6f3ea31:52925f9a:5d84106e
         Events : 3002356

    Number   Major   Minor   RaidDevice State
       0       8       49        0      active sync   /dev/sdd1
       1       8       33        1      active sync   /dev/sdc1

На md0 0.9 версия метаданных

wolverin
()

Postfix 554 5.7.1 Relay access denied

Форум — General

Ошибка при отправке письма из локальной сети (снаружи думаю тоже самое). Сколько гуглил - причин может быть тысячи, первый раз поднимаю, не могу никак понять в чем причина может быть.

# cat /etc/postfix/main.cf | grep -v ^#

myhostname = mailf.xxx.ru

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff                            = no
append_dot_mydomain             = no

readme_directory                = /usr/share/doc/postfix

smtpd_tls_cert_file             = /etc/ssl/certs/mailf.xxx.ru.crt
smtpd_tls_key_file              = /etc/ssl/private/mailf.xxx.ru.key
smtpd_use_tls                   = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache


config_dir                      = /etc/postfix/config
alias_maps                      = hash:/etc/aliases
alias_database                  = hash:/etc/aliases
myorigin                        = /etc/mailname
mydestination                   = $myhostname, localhost, localhost.$mydomain, $myhostname.$mydomain
relayhost =
mynetworks                      = 127.0.0.0/8 192.168.0.0/16
mailbox_size_limit              = 0
recipient_delimiter             = +
inet_interfaces                 = all
html_directory                  = /usr/share/doc/postfix/html
virtual_alias_domains =
virtual_alias_maps              = proxy:mysql:$config_dir/mysql-virtual_forwardings.cf, mysql:$config_dir/mysql-virtual_email2email.cf
virtual_mailbox_domains         = proxy:mysql:$config_dir/mysql-virtual_domains.cf
virtual_mailbox_maps            = proxy:mysql:$config_dir/mysql-virtual_mailboxes.cf
smtpd_sender_login_maps         = mysql:$config_dir/mysql-virtual_email2email.cf
virtual_mailbox_base            = /var/mail
virtual_uid_maps                = static:5000
virtual_gid_maps                = static:5000
smtpd_sasl_auth_enable          = yes
broken_sasl_auth_clients        = yes
smtpd_helo_required             = yes
smtp_always_send_ehlo           = yes
disable_vrfy_command            = yes
smtpd_recipient_restrictions    = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps                  = proxy:mysql:$config_dir/mysql-virtual_transports.cf
virtual_create_maildirsize      = yes
virtual_mailbox_extended        = yes
virtual_mailbox_limit_maps      = proxy:mysql:$config_dir/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override  = yes
virtual_maildir_limit_message   = "The user you are trying to reach is over quota."
virtual_overquota_bounce        = yes
proxy_read_maps                 = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps

# cat /etc/postfix/sasl/smtpd.conf | grep -v ^#

pwcheck_method:         saslauthd
mech_list:              plain login
allow_plaintext:        true
auxprop_plugin:         mysql
sql_hostnames:          127.0.0.1
sql_user:               xxx
sql_passwd:             xxx
sql_database:           xxx
sql_select:             select password from users where email = '%u'
sql_verbose:            true

wolverin
()

Как сделать courier-imap + md5 пароли?

Форум — General

Несколько не правильно сформировал тему Как выполнить авторизацию MD5 паролей в Postfix+Mysql+Sasl возможно не в ту ветку Суть проблемы - поставил Postfix+Mysql, как заставить courier понимать md5 хеши паролей??? Т.е. если пароли в encrypt('xxx') - все ок, как только md5('xxx') - ошибки в логах о неправильном пароле.

wolverin
()

Как выполнить авторизацию MD5 паролей в Postfix+Mysql+Sasl

Форум — Admin

ОС - Debian

cat /etc/postfix/sasl/smtpd.conf

pwcheck_method: saslauthd
mech_list: plain login
#mech_list: DIGEST-MD5 CRAM-MD5 PLAIN LOGIN
allow_plaintext: true
auxprop_plugin: mysql
sql_hostnames: xxx
sql_user: xxx
sql_passwd: xxx
sql_database: xxx
sql_select: select xxx from xxx where email = '%u'
попробовал оба варианта mech_list

cat /etc/pam.d/smtp

auth    required        pam_mysql.so user=xxx passwd=xxx host=xxx db=xxx table=xxx usercolumn=xxx passwdcolumn=xxx crypt=1 md5=1
account sufficient      pam_mysql.so user=xxx passwd=xxx host=xxx db=xxx table=xxx usercolumn=xxx passwdcolumn=xxx crypt=1 md5=1

если пароли в encrypt('xxx') - все ок, как только md5('xxx') - вот такие ошибки в логах cat /var/log/mail.log

Jun 20 10:07:04 proxy imapd-ssl: Connection, ip=[::ffff:xx.xx.xx.xx]
Jun 20 10:07:05 proxy authdaemond: received auth request, service=imap, authtype=login
Jun 20 10:07:05 proxy authdaemond: authmysql: trying this module
Jun 20 10:07:05 proxy authdaemond: authmysqllib: connected. Versions: header 50149, client 50161, server 50161
Jun 20 10:07:05 proxy authdaemond: SQL query: SELECT email, password, "", 5000, 5000, "/var/mail", CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/'), "", "", "" FROM users WHERE email = 'xxx@xxx.ru'
Jun 20 10:07:05 proxy authdaemond: supplied password 'xxx' does not match encrypted password '202cb962ac59075b964b07152d234b70'
Jun 20 10:07:05 proxy authdaemond: authmysql: REJECT - try next module
Jun 20 10:07:05 proxy authdaemond: FAIL, all modules rejected
Jun 20 10:07:05 proxy imapd-ssl: LOGIN FAILED, user=xxx@xxx.ru, ip=[::ffff:xx.xx.xx.xx]

wolverin
()

VPN через PPTP увидеть LAN

Форум — Admin

Настроил точка-точка на проксю (под Debian) снаружи, все замечательно.
Но как сделать чтобы видна была локальная сетка с виндовой машины (а можно прям в сетевом окружении?) и интернет с машины не ходил в vpn соединение?
Гуглил не сильно активно, поэтому не нашел.

 ,

wolverin
()

Нужны рекомендации по управлению полосой пропускания

Форум — Admin

Имеется сервер, который сопрягает внешнюю и локальную сеть, выполняя следующие задачи 1. форвардинг ип-телефонии с внутреннего сервера телефонии 2. сайт и личный кабинет 3. почта 4. прокси 5. днс 6. форвардинг служебного трафика

Все это необходимо уложить в канал 4мбита. Попробовал проксей-сквидом полосу ограничивать - но получается не надежно и не эффективно. Изучил букварь и из примеров написал такой скрипт, который еще не проверял, т.к. побаиваюсь на рабочей системе экспериментировать.

#!/bin/bash

tc qdisc del dev eth1 root

tc qdisc add dev eth1 root handle 1: htb default 20

tc class add dev eth1 parent 1: classid 1:1 htb rate 4mbit

tc class add dev eth1 parent 1:1 classid 1:10 htb rate 1mbit ceil 2mbit prio 10
tc class add dev eth1 parent 1:1 classid 1:20 htb rate 2mbit ceil 4mbit prio 20

tc qdisc add dev eth1 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth1 parent 1:20 handle 20: sfq perturb 10

tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dport 5060 0xffff flowid 1:10

Собственно самое важное это «оградить» трафик ип телефонии от всего остального, но и по остальному не понятно - стоит ли что то дополнительно выделять или достаточно такого варианта, не будут ли большие закачки забивать интерактивный трафик или как это исключить считая, что закачки идут либо через ssh, либо squid, либо форвардинг служебного трафика из локальной сети, хотя и почта ведь может давать большими письмами нагрузку.

 , ,

wolverin
()

DDNS на Bind9 вопросы по обновлению зоны

Форум — Admin

Настроил для локальной сети DDNS, с обновлением через DHCP - все заработало, клиенты обновили зоны прямые и обратные. Затем описал внешние зоны, добавил безопасности в локальные и тоже все работало. Потом решил уменьшить номер счетчика (серии) в локальных зонах, рестартанул бинд, но обновление не пошло, тогда удалил файлы журналов jnl и описание всех динамических клиентов - обновление пошло, но почему то только сетевые принтеры прописались, а ip телефоны никак. Причем постоянно вижу сообщение в логах

09-Mar-2012 10:17:56.543 update: info: client 192.168.36.1#55989: updating zone 'hq.ru/IN': update unsuccessful: XEROX3220.hq.ru: 'name not in use' prerequisite not satisfied (YXDOMAIN)
09-Mar-2012 10:17:56.544 update: info: client 192.168.36.1#41119: updating zone 'hq.ru/IN': deleting rrset at 'XEROX3220.hq.ru' A
09-Mar-2012 10:17:56.544 update: info: client 192.168.36.1#41119: updating zone 'hq.ru/IN': adding an RR at 'XEROX3220.hq.ru' A
09-Mar-2012 10:17:56.545 update: info: client 192.168.36.1#60786: updating zone '36.168.192.in-addr.arpa/IN': deleting rrset at '203.36.168.192.in-addr.arpa' PTR
09-Mar-2012 10:17:56.545 update: info: client 192.168.36.1#60786: updating zone '36.168.192.in-addr.arpa/IN': adding an RR at '203.36.168.192.in-addr.arpa' PTR
Что значит это первое сообщение перед обновлением зоны? Как принудительно заставить вписаться других клиентов?

Пробовал и allow client-updates и update-conflict-detection false в dhcpd.conf - не помогает, сообщение не пропадает, ип телефоны в локальных зонах не появляются, только сетевые принтеры пишут такие сообщения.

wolverin
()

Bind9 и прямая зона не хотят работать.

Форум — Admin

Обратную уже настроил, работает все прекрасно на те адреса что указаны в зоне, а вот прямая ну никак не хочет, подскажите в чем причина???

# nslookup hq.ru
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   hq.ru
Address: 192.168.36.2

# nslookup 192.168.36.2
Server:         127.0.0.1
Address:        127.0.0.1#53

2.36.168.192.in-addr.arpa       name = proxy-n.hq.ru.

root@proxy:/etc/bind# nslookup proxy-n.hq.ru
Server:         127.0.0.1
Address:        127.0.0.1#53

** server can't find proxy-n.hq.ru: NXDOMAIN

# cat db.hq.ru
$ORIGIN hq.ru.
$TTL 604800     ; 1 week
@ IN SOA        proxy-n.hq.ru. admin.hq.ru. (
                2012022701 ; serial
                3600       ; refresh (1 hour)
                600        ; retry (10 minutes)
                14400      ; expire (4 hours)
                600        ; minimum (10 minutes)
                )
@ IN NS         proxy-n.hq.ru.
@ IN A          192.168.36.2

server          IN A    192.168.36.1
proxy-n         IN A    192.168.36.2

wolverin
()

Squid 3 и «вконтакт»

Форум — Admin

Настроил Squid 3 почти с дефолтным конфигом с авторизацией через mysql, с браузера все работает прекрасно. Хочу использовать клиента от qip infinum для всех учеток - аська, майл поднялись на 443 порт по умолчанию, 5222 порт добавил в squid.conf для qip jabberа, но никак не могу понят что же хочет вконтакт от меня??? в acess.log вижу только

192.168.36.65 TCP_DENIED/407 4246 GET http://api.vk.com/oauth/authorize? - NONE/- text/html
192.168.36.65 TCP_DENIED/407 4246 GET http://api.vk.com/oauth/authorize? - NONE/- text/html
192.168.36.65 NONE/400 3886 GET /oauth/authorize?client_id=2386311&scope=friends%2Cphotos%2Caudio%2Cvideo%2Cwall%2Cmessages%2Coffline&r
edirect_uri=http%3A%2F%2Fapi.vk.com%2Fblank.html&display=wap&response_type=token - NONE/- text/html

407 вроде понятно - нет авторизации, но 400 то почему такой кривой адрес запрашивает???

wolverin
()

INIT: ID «1» respawning too fast: disable for 5 minutes

Форум — Admin

cat /etc/inittab

# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:2:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty 38400 vc/1
2:23:respawn:/sbin/getty 38400 vc/2
#3:23:respawn:/sbin/getty 38400 vc/3
#4:23:respawn:/sbin/getty 38400 vc/4
#5:23:respawn:/sbin/getty 38400 vc/5
#6:23:respawn:/sbin/getty 38400 vc/6

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

Вроде вполне нормальная строка 1:2345:respawn:/sbin/getty 38400 vc/1

Куда смотреть? Или как починить? Так то загрузка происходит до конца.

ЗЫ. Это осталось видимо от старого ядра 2.4 и etch, сейчас squeeze

wolverin
()

Права доступа или формат ls

Форум — Security

Никак не могу найти описание что значат цифры и точки в выводе.

:/var/spool/samba# ls -l
итого 44
drwxrwxr-x 7 samba samba 4096 Июл 26 23:39 1c
drwxr-xr-x 4 samba samba 4096 Июл 27 10:32 Bank
drwxrwxr-x 2 samba samba 4096 Июл 26 14:25 bases
drwxrwxr-x. 2 samba samba 4096 Июл 27 09:02 domofon
drwxr-xr-x 2 root root 4096 Июл 27 10:27 domofon1
drwxrwxr-x 2 samba samba 16384 Июл 27 10:10 reports
drwxrwxr-x 8 samba samba 4096 Янв 21 2011 work

. 2 Подскажите?

wolverin
()

Проблема с загрузкой нового ядра на Debian, переход с 2.4 на 2.6

Форум — Linux-install

Предыстория. Стоял Debian Etch с ядром 2.4 + Firebird 1.5 - возникла проблема - с какой то переодичностью начались биться базы. Решил обновить его до 2.0 хотя бы и Lenny. Поправил соурс лист на архив.дебиан, обновился до последних пакетов, поставил ядро 2.6.18 для 686, поправил lilo.conf Перезапускаюсь и ... местный энекейщик присылает мне текст загрузки

begin: Running /scripts/local-premount
done.
Usage: mod probe -и дальши пишуться ключи и х там много прописано потом
modprobe -r [-n] [-i] [v] <modulename> ...
modprobe -l -t <dirname> [ -a <modulename> ...]
mount: Cannont read /etc/fstab: No such file or directory
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/local-bottom ...
mount mounting /root/dev/ on /dev/.static/dev failed: No such file or directorymount
Done
mount mounting /sys om /root/sys failed: No such file or directorymount
mount mounting /proc on /root/proc failed: No such file or directorymount
Target filesystem doesn`t have /sbin/init

Старое ядро грузится без проблем. На системе стоит софтовый раид в зеркало

:~# fdisk -l

Disk /dev/md/0: 79.9 GB, 79998877696 bytes
2 heads, 4 sectors/track, 19530976 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

This doesn't look like a partition table
Probably you selected the wrong device.

Device Boot Start End Blocks Id System
/dev/md/0p1 ? 233721421 254807611 84344761 69 Unknown
Partition 1 does not end on cylinder boundary.
/dev/md/0p2 ? 212689936 446425119 934940732+ 73 Unknown
Partition 2 does not end on cylinder boundary.
/dev/md/0p3 ? 322 322 0 74 Unknown
Partition 3 does not end on cylinder boundary.
/dev/md/0p4 360710145 360716696 26207+ 0 Empty
Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

Disk /dev/ide/host0/bus1/target0/lun0/disc: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus1/target0/lun0/part1 * 1 155010 78125008+ fd Linux raid autodetect
/dev/ide/host0/bus1/target0/lun0/part2 155011 158816 1918224 82 Linux swap / Solaris

Disk /dev/ide/host0/bus0/target0/lun0/disc: 81.9 GB, 81963220480 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 * 1 9726 78124063+ fd Linux raid autodetect
/dev/ide/host0/bus0/target0/lun0/part2 9727 9964 1911735 82 Linux swap / Solaris 

:~$ cat /etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/md/0 / ext3 errors=remount-ro 0 0
/dev/discs/disc0/part2 none swap sw 0 0
/dev/discs/disc1/part2 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0

По инету поискал, вроде пишут надо fsck -yv запускать, но что то побаиваюсь на рабочей то системе.

:~# fsck /

fsck 1.40-WIP (14-Nov-2006)
e2fsck 1.40-WIP (14-Nov-2006)
/dev/md/0 is mounted.

WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? no

check aborted.

:/# cat /etc/modules

# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a "#", and everything on the line after them are ignored.

8139too
ide-scsi
sr_mod
sg
md

:~# cat /etc/lilo.conf

lba32

boot=/dev/md/0

root=/dev/md/0

install=menu

map=/boot/map

delay=20

vga=normal

default=Linux

image=/vmlinuz
        label=Linux
        initrd=/initrd.img
        read-only

image=/vmlinuz.old
        label=LinuxOLD
        read-only
#       restricted
#       alias=1

image=/vmlinuz.old1
        label=LinuxOLD1
        read-only
        optional
#       restricted
#       alias=2

wolverin
()

RSS подписка на новые темы