The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

форумы  помощь  поиск  регистрация  майллист  ВХОД  слежка  RSS
"восстановление загрузчика"
Вариант для распечатки  
Пред. тема | След. тема 
Форумы OpenNET: Виртуальная конференция (Public)
Изначальное сообщение [Проследить за развитием треда]

"восстановление загрузчика"  
Сообщение от Dmitriy Medvedeff email on 10-Окт-06, 16:12 
FreeBSD 6.0.

Пробовал установить VPN сервер:
- radius
- progresql
- ppp (модифицированный)

в ядре необходимо было выставить опцию "dummynet".
выставлена, и ядро было перекомпилено.
далее, после ребута, пинг на одном интерфейсе куда-либо пропал.
погрешив на файрвол, выключил его в rc.conf, там же зарубил самбу и радиус.
вовремя перезагрузки увидал, что есть жалобы на /dev/*
сделал fsck, ушел в ребут.
после этого машинка оттуда не пришла :)
висит приглашение:

FreeBSD/i386 boot
Default: 0:ad(0,a)/boot/ed/kernel
boot:

ведь есть же старое ядро? можно ли загрузиться с него?

ЗЫ прошу прощения за ламерские вопросы, но, ковер по мне плачет, не хочется очень :)

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

 Оглавление

Сообщения по теме [Сортировка по времени, UBB]


1. "восстановление загрузчика"  
Сообщение от co6aka (??) on 10-Окт-06, 16:47 
http://www.freebsd.org/doc/ru_RU.KOI8-R/books/handbook/boot.html
Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

2. "восстановление загрузчика"  
Сообщение от Dmitriy Medvedeff email on 10-Окт-06, 16:56 
>http://www.freebsd.org/doc/ru_RU.KOI8-R/books/handbook/boot.html

честно прочитал и попробовал и хелп попросить и kernel.old подгрузить.
на все один ответ:
Invalid partition

No *

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

5. "восстановление загрузчика"  
Сообщение от lavr email on 10-Окт-06, 17:07 
>>http://www.freebsd.org/doc/ru_RU.KOI8-R/books/handbook/boot.html
>
>честно прочитал и попробовал и хелп попросить и kernel.old подгрузить.
>на все один ответ:
>Invalid partition
>
>No *

загрузочный диск disk01 (выход в fixed) или frenzy в руки и вывод сюда:

# ls -la /dev/ad* - для ATA дисков
# ls -la /dev/da* - для SCSI

если frenzy, то вывод atacontrol список

# fdisk adX или daY
# bsdlabel adXsY или daXsY

если нужно прописать MBR:

# fdisk -B adX (daX для scuzzy)

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

3. "восстановление загрузчика"  
Сообщение от lavr email on 10-Окт-06, 17:03 
>FreeBSD 6.0.
>
>Пробовал установить VPN сервер:
>- radius
>- progresql
>- ppp (модифицированный)
>
>в ядре необходимо было выставить опцию "dummynet".
>выставлена, и ядро было перекомпилено.
>далее, после ребута, пинг на одном интерфейсе куда-либо пропал.
>погрешив на файрвол, выключил его в rc.conf, там же зарубил самбу и
>радиус.
>вовремя перезагрузки увидал, что есть жалобы на /dev/*
>сделал fsck, ушел в ребут.
>после этого машинка оттуда не пришла :)
>висит приглашение:
>
>FreeBSD/i386 boot
>Default: 0:ad(0,a)/boot/ed/kernel
-------------------------^^--------> это еще что за На...?

>boot:
>
>ведь есть же старое ядро? можно ли загрузиться с него?
>
>ЗЫ прошу прощения за ламерские вопросы, но, ковер по мне плачет, не
>хочется очень :)

- power off
- загрузка в single-user mode
- cat /etc/fstab - смотреть на какие /dev делать fsck
# fsck -y /
# mount /
# fsck -y /usr
# mount /usr
и т д и тп

# man boot
...
     The remainder of this subsection deals only with the boot blocks.  The
     loader(8) program is documented separately.

     After the boot blocks have been loaded, you should see a prompt similar
     to the following:

     >> FreeBSD/i386 BOOT
     Default: 0:ad(0,a)/boot/loader
     boot:

     The automatic boot will attempt to load /boot/loader from partition `a'
     of either the floppy or the hard disk.  This boot may be aborted by typ-
     ing any character on the keyboard at the `boot:' prompt.  At this time,
     the following input will be accepted:

     ?       Give a short listing of the files in the root directory of the
             default boot device, as a hint about available boot files.  (A ?
             may also be specified as the last segment of a path, in which
             case the listing will be of the relevant subdirectory.)

     bios_drive:interface(unit,[slice,]part)filename [-aCcDdghmnPprsv]
             [-Sspeed]
             Specify boot file and flags.

             bios_drive
                     The drive number as recognized by the BIOS.  0 for the
                     first drive, 1 for the second drive, etc.

             interface
                     The type of controller to boot from.  Note that the con-
                     troller is required to have BIOS support since the BIOS
                     services are used to load the boot file image.

                     The supported interfaces are:

                     ad    ST506, IDE, ESDI, RLL disks on a WD100[2367] or
                           lookalike controller
                     fd    5 1/4" or 3 1/2" High density floppies
                     da    SCSI disk on any supported SCSI controller

             unit    The unit number of the drive on the interface being used.
                     0 for the first drive, 1 for the second drive, etc.

             [slice,]part
                     The partition letter inside the BSD portion of the disk.
                     See bsdlabel(8).  By convention, only partition `a' con-
                     tains a bootable image.  If sliced disks are used
                     (``fdisk partitions''), any slice (1 for the first slice,
                     2 for the second slice, etc.) can be booted from, with
                     the default (if not specified) being the active slice or,
                     otherwise, the first FreeBSD slice.  If slice is speci-
                     fied as 0, the first FreeBSD slice (also known as
                     ``compatibility'' slice) is booted from.

             filename
                     The pathname of the file to boot (relative to the root
                     directory on the specified partition).  Defaults to
                     /boot/kernel/kernel.  Symbolic links are not supported
                     (hard links are).

             [-aCcDdghmnPpqrsv] [-Sspeed]
                     Boot flags:

                     -a    during kernel initialization, ask for the device to
                           mount as the root file system.
                     -C    try to mount root file system from a CD-ROM.
                     -c    this flag is currently a no-op.
                     -D    boot with the dual console configuration.  In the
                           single configuration, the console will be either
                           the internal display or the serial port, depending
                           on the state of the -h option below.  In the dual
                           console configuration, both the internal display
                           and the serial port will become the console at the
                           same time, regardless of the state of the -h
                           option.
                     -d    enter the DDB kernel debugger (see ddb(4)) as early
                           as possible in kernel initialization.
                     -g    use the GDB remote debugging protocol.
                     -h    force the serial console.  For instance, if you
                           boot from the internal console, you can use the -h
                           option to force the kernel to use the serial port
                           as its console device.  The serial port driver
                           sio(4) has a flag (0x20) to override this option.
                           If that flag is set, the serial port will always be
                           used as the console, regardless of the -h option
                           described here.  See the man page for sio(4) for
                           more details.
                     -m    mute the console to suppress all console input and
                           output during the boot.
                     -n    ignore key press to interrupt boot before loader(8)
                           is invoked.
                     -P    probe the keyboard.  If no keyboard is found, the
                           -D and -h options are automatically set.
                     -p    pause after each attached device during the device
                           probing phase.
                     -q    be quiet, do not write anything to the console
                           unless automatic boot fails or is disabled.  This
                           option only affects second-stage bootstrap, to pre-
                           vent next stages from writing to the console use in
                           combination with the -m option.
                     -r    use the statically configured default for the
                           device containing the root file system (see
                           config(8)).  Normally, the root file system is on
                           the device that the kernel was loaded from.
                     -s    boot into single-user mode; if the console is
                           marked as ``insecure'' (see ttys(5)), the root
                           password must be entered.
                     -Sspeed
                           set the speed of the serial console to speed.  The
                           default is 9600 unless it has been overridden by
                           setting BOOT_COMCONSOLE_SPEED in make.conf(5) and
                           recompiling and reinstalling the boot blocks.
                     -v    be verbose during device probing (and later).

     You may put a BIOS drive number, a controller type, a unit number, a par-
     tition, a kernel file name, and any valid option in /boot.config to set
     defaults.  Enter them in one line just as you type at the `boot:' prompt.

FILES
     /boot.config  parameters for the boot blocks (optional)
     /boot/boot1   first stage bootstrap file
     /boot/boot2   second stage bootstrap file
     /boot/loader  third stage bootstrap
     /boot/kernel/kernel
                   default kernel
     /boot/kernel.old/kernel
                   typical non-default kernel (optional)

# man loader

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

4. "восстановление загрузчика"  
Сообщение от Dmitriy Medvedeff email on 10-Окт-06, 17:06 
спасибо огромное, но тут проблема.
сразу после POSTa вылезает загрузчик и НИ на что не реагирует, ни на "?", ни на чтобы-то ни было.
пациент скорее мертв, чем жив?
Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

6. "восстановление загрузчика"  
Сообщение от lavr email on 10-Окт-06, 17:53 
>спасибо огромное, но тут проблема.
>сразу после POSTa вылезает загрузчик и НИ на что не реагирует, ни
>на "?", ни на чтобы-то ни было.
>пациент скорее мертв, чем жив?

POST - это программа в BIOS, если у вас на этом этапе вылетает, то OS тут не при делах.
Если нет или вы не знаете как работает BIOS:

1. выйти в BIOS и установить ПЕРВЫМ загружаемым устройством CD
2. взять ЛЮБОЙ загрузочный CD, например ПРОВЕРЕННЫЙ (Windows или еще что) и
проверить загрузку, если грузится к п.3
3. взять как ранее было сказано CD от FreeBSD, это disk1 (он же установочный и он же
live-cd - позволяет работать в Fixit-mode) или взять Frenzy - загрузиться с них
и выдать ТО ЧТО было сказано ранее

Incorrect partitions - обычно если криво была оформлена таблица партиций, например
с overlap (с перекрытиями или еще что)

Высказать мнение | Ответить | Правка | Наверх | Cообщить модератору

Архив | Удалить

Индекс форумов | Темы | Пред. тема | След. тема
Оцените тред (1=ужас, 5=супер)? [ 1 | 2 | 3 | 4 | 5 ] [Рекомендовать для помещения в FAQ]




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру