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
 Rodriguez 3...2372 
 Linux Kernel 2.6...1780 
 Trees...1411 
 William Gropp...1408 
 Clickhouse...1406 
 Стивенс 9...1405 
 Rodriguez 7...1405 
 Mod_perl 2...1404 
 M.Pilgrim->Часть 2...1404 
 Httpd-> История Ap...1404 
 Part 3...1403 
 Rodriguez 8...1402 
 OS ->Intel Manual 1...1402 
 ground Up...1401 
 Rodriguez 6...1401 
 Stewens -> IPC 9...1400 
 Cluster 2...1400 
 FAQ...1400 
 Ext4 FS...1400 
 Robert Love 2...1399 
 
  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.)