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
 Part 4...2318 
 Linux Kernel 2.6...1766 
 Go Web ...1752 
 Linux Inline for x86...1751 
 William Gropp...1750 
 Trees...1750 
 Ext4 FS...1750 
 uOS...1750 
 Part 1...1749 
 Ext2 internals...1749 
 FAQ...1749 
 Assembler...1749 
 AT&T Tutorial...1749 
 M.Marcu...1749 
 NASM...1749 
 Rust 4...1748 
 File handling...1748 
 Redis...1748 
 DevFS...1748 
 Stevens-> Глава 4...1748 
 
  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.)