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
 MINIX...3057 
 Solaris...2933 
 LD...2906 
 Linux Kernel 2.6...2486 
 William Gropp...2182 
 Rodriguez 6...2016 
 C++ Templates 3...1946 
 Trees...1938 
 Kamran Husain...1866 
 Secure Programming for Li...1792 
 Максвелл 5...1711 
 DevFS...1695 
 Part 3...1684 
 Stein-MacEachern-> Час...1632 
 Go Web ...1627 
 Ethreal 4...1619 
 Стивенс 9...1607 
 Arrays...1607 
 Максвелл 1...1593 
 FAQ...1539 
 
  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.)