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...3283 
 Trees...455 
 Clickhouse...437 
 Go Web ...430 
 Ethreal 4...424 
 Максвелл 3...386 
 Ext4 FS...384 
 C++ Patterns 3...375 
 William Gropp...364 
 Rodriguez 6...360 
 Ethreal 1...356 
 Secure Programming for Li...356 
 Gary V.Vaughan-> Libtool...354 
 Steve Pate 1...349 
 Ethreal 3...341 
 Assembler...337 
 DevFS...334 
 Стивенс 9...333 
 Ulrich Drepper...322 
 Стивенс 10...301 
 
  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.)