Search     or:     and:
 LINUX 
 Language 
 Kernel 
 Package 
 Book 
 Test 
 OS 
 Forum 
 iakovlev.org 
 Kernels
 Boot 
 Memory 
 File system
 0.01
 1.0 
 2.0 
 2.4 
 2.6 
 3.x 
 4.x 
 5.x 
 6.x 
 Интервью 
 Kernel
 HOW-TO 1
 Ptrace
 Kernel-Rebuild-HOWTO
 Runlevel
 Linux daemons
 FAQ
NEWS
Последние статьи :
  Тренажёр 16.01   
  Эльбрус 05.12   
  Алгоритмы 12.04   
  Rust 07.11   
  Go 25.12   
  EXT4 10.11   
  FS benchmark 15.09   
  Сетунь 23.07   
  Trees 25.06   
  Apache 03.02   
 
TOP 20
 Linux Kernel 2.6...4822 
 Trees...673 
 Go Web ...584 
 Максвелл 3...582 
 Clickhouse...563 
 Ethreal 4...544 
 Ext4 FS...533 
 William Gropp...525 
 Secure Programming for Li...514 
 Gary V.Vaughan-> Libtool...504 
 Steve Pate 1...503 
 Ethreal 3...500 
 C++ Patterns 3...499 
 Rodriguez 6...494 
 Assembler...474 
 Ethreal 1...470 
 DevFS...466 
 Стивенс 9...441 
 Ulrich Drepper...441 
 MySQL & PosgreSQL...439 
 
  01.01.2024 : 3621733 посещений 

iakovlev.org

Linux Bootdisk HOWTO

Tom Fawcett

        Bootdisk-HOWTO@linuxdoc.org
        

Copyright © 1995-2002 by Tom Fawcett

v4.5, January 2002

Этот документ описывает,как создать загрузочную дискету для Линукс.


Введение

Загрузочный диск полезен в ряде ситуаций, таких как тестирование нового ядра, восстановление потерянных данных или апгрэйд системы.

Есть несколько вариантов создания дискеты:

  • Использование дистрибутивов типа Slackware.

  • Использование rescue package .

  • Ваш собственный путь.

Некоторые выбирают последний путь. Это хороший способ понять,как работает Линукс.

Вы должны знать,что такое directories, filesystems , floppy diskettes. Вы должны знать, как работать с утилитами mount и df. Нужно знать, для чего нужны файлы /etc/passwd и fstab. Все команды необходимо выполнять под root.

Конструирование bootdisk from scratch-комплексная задача. Почитайте Linux FAQ , Linux Installation HOWTO , Installation Guide. Если вам нужна готовая дискета,смотрите Appendix A.1.

4.6. Some final details

Some system programs, such as login, complain if the file /var/run/utmp and the directory /var/log do not exist. So:

        mkdir -p /mnt/var/{log,run}
         touch /mnt/var/run/utmp

Finally, after you have set up all the libraries you need, run ldconfig to remake /etc/ld.so.cache on the root filesystem. The cache tells the loader where to find the libraries. You can do this with:
        ldconfig -r /mnt

4.7. Wrapping it up

When you have finished constructing the root filesystem, unmount it, copy it to a file and compress it:
        umount /mnt
         dd if=DEVICE bs=1k | gzip -v9 > rootfs.gz
When this finishes you will have a file rootfs.gz. This is your compressed root filesystem. You should check its size to make sure it will fit on a diskette; if it doesn't you'll have to go back and remove some files. Some suggestions for reducing root filesystem size appear in Section 8.

Notes

[1]

The directory structure presented here is for root diskette use only. Real Linux systems have a more complex and disciplined set of policies, called the Filesystem Hierarchy Standard, for determining where files should go.)