четверг, 2 мая 2013 г.

Все о SysLinux - учим матчасть.

Вот, дошли руки до процесса загрузки с флешки... Пора разобраться со структурой папок, процессами и файлами... Клик по картинке выводит на HowTo, второй фрейм на greensoft.su Руководство по Syslinux После BIOS, где определяется порядок дисков на первом диске ищется MBR (структура), если флешка загрузочная, то ищется конфигурационный файла isolinux.cfg Основной текст Блок 1 Блок кода Основной текст Блок 2 Другие посты по теме

17 комментариев:

  1. На эту флешку я загрузил SciLinux при помощи утилиты (LILI) http://www.linuxliveusb.com/
    Попробовал еще несколько (смотри в меню), нашел еще ссылку http://sourceforge.net/directory/system-administration/boot/freshness%3Arecently-updated/?page=1

    И буду пробовать USB Installer вот основная статья, описывающая persistence http://www.dedoimedo.com/computers/linux-live-cd-persistence.html
    про статью забыл, а утилиту толком не попробовал...,

    НО пока разберемся с дейтвующей флешкой;
    Содержание D:\
    Имя Размер Последнее изменение
    EFI/ 24.08.12 3:57:24
    LiveOS/ 24.08.12 4:03:30
    syslinux/ 24.08.12 3:58:32
    autorun.inf 245 B 30.04.13 16:29:34
    GPL 18.0 kB 24.08.12 3:58:32
    ldlinux.sys 31.5 kB 30.04.13 16:29:30
    lili.ico 33.7 kB 13.11.11 23:56:10
    Remove_LiLi.bat 2.0 kB 30.04.13 16:29:34
    SmartClean.ini 338 B 30.04.13 16:29:34

    ОтветитьУдалить
    Ответы
    1. Содержание D:\syslinux\

      Имя Размер Последнее изменение
      [родительский каталог]
      boot.cat 2.0 kB 24.08.12 4:12:56
      initrd0.img 19.2 MB 24.08.12 3:57:24
      isolinux-orig.cfg 1.8 kB 24.08.12 3:58:32
      isolinux.bin 24.0 kB 24.08.12 3:57:24
      isolinux.cfg 1.8 kB 24.08.12 3:58:32
      memtest 161 kB 24.08.12 3:57:24
      splash.jpg 49.7 kB 24.08.12 3:57:24
      syslinux.cfg 2.2 kB 30.04.13 21:48:06
      syslinux.cfg.bak.txt 2.2 kB 30.04.13 21:43:02
      vesamenu.c32 152 kB 13.11.11 23:55:56
      vmlinuz0 3.8 MB 24.08.12 3:57:24

      Удалить
    2. Содержание D:\LiveOS\
      Имя Размер Последнее изменение
      [родительский каталог]
      osmin.img 20.0 kB 24.08.12 0:03:30
      overlay-MYLINUXLIVE-D087-690D 4.0 GB 30.04.13 16:29:24
      squashfs.img 2.3 GB 24.08.12 0:12:56

      Удалить
    3. Содержание D:\EFI\
      Имя Размер Последнее изменение
      [родительский каталог]
      boot/ 24.08.12 3:57:2

      Удалить
    4. Содержание D:\EFI\boot\
      Имя Размер Последнее изменение
      [родительский каталог]
      bootx64.conf 417 B 24.08.12 3:57:24
      bootx64.efi 243 kB 24.08.12 3:57:24
      grub.conf 417 B 24.08.12 3:57:24
      initrd0.img 19.2 MB 24.08.12 3:57:24
      isolinux.bin 24.0 kB 24.08.12 3:57:24
      isolinux.cfg 1.8 kB 24.08.12 3:58:32
      memtest 161 kB 24.08.12 3:57:24
      splash.jpg 49.7 kB 24.08.12 3:57:24
      splash.xpm.gz 2.3 kB 24.08.12 3:57:24
      vesamenu.c32 159 kB 24.08.12 3:57:24
      vmlinuz0 3.8 MB 24.08.12 3:57:24

      Удалить
  2. Файл D:\syslinux\isolinux.cfg

    default vesamenu.c32
    timeout 100

    menu background splash.jpg
    menu title Welcome to SL-63-x86_64-LiveDVD!
    menu color border 0 #ffffffff #00000000
    menu color sel 7 #ffffffff #ff000000
    menu color title 0 #ffffffff #00000000
    menu color tabmsg 0 #ffffffff #00000000
    menu color unsel 0 #ffffffff #00000000
    menu color hotsel 0 #ff000000 #ffffffff
    menu color hotkey 7 #ffffffff #ff000000
    menu color timeout_msg 0 #ffffffff #00000000
    menu color timeout 0 #ffffffff #00000000
    menu color cmdline 0 #ffffffff #00000000
    menu hidden
    menu hiddenrow 5
    label linux0
    menu label Boot
    kernel vmlinuz0
    append initrd=initrd0.img root=live:CDLABEL=SL-63-x86_64-LiveDVD rootfstype=auto ro liveimg quiet rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM
    menu default
    label linuxtext0
    menu label Boot (Text Mode)
    kernel vmlinuz0
    append initrd=initrd0.img root=live:CDLABEL=SL-63-x86_64-LiveDVD rootfstype=auto ro liveimg 3 quiet rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM
    label linux0
    menu label Boot (Basic Video)
    kernel vmlinuz0
    append initrd=initrd0.img root=live:CDLABEL=SL-63-x86_64-LiveDVD rootfstype=auto ro liveimg quiet rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM xdriver=vesa nomodeset
    label check0
    menu label Verify and Boot
    kernel vmlinuz0
    append initrd=initrd0.img root=live:CDLABEL=SL-63-x86_64-LiveDVD rootfstype=auto ro liveimg quiet rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM check
    label install0
    menu label Install
    kernel vmlinuz0
    append initrd=initrd0.img root=live:CDLABEL=SL-63-x86_64-LiveDVD rootfstype=auto ro liveimg liveinst noswap rd_NO_LUKS rd_NO_MD rd_NO_DM
    label textinstall0
    menu label Install (Text Mode)
    kernel vmlinuz0
    append initrd=initrd0.img root=live:CDLABEL=SL-63-x86_64-LiveDVD rootfstype=auto ro liveimg textinst noswap rd_NO_LUKS rd_NO_MD rd_NO_DM
    label memtest
    menu label Memory Test
    kernel memtest
    label local
    menu label Boot from local drive
    localboot 0xffff

    ОтветитьУдалить
  3. Файл D:\syslinux\syslinux.cfg


    default vesamenu.c32
    timeout 100
    menu background splash.png
    menu title Welcome to your LinuxLive Key !
    menu clear
    menu vshift 8
    menu rows 18
    menu margin 8
    menu helpmsgrow 15
    menu tabmsgrow 13
    menu color border * #00000000 #00000000 none
    menu color sel 0 #ffffffff #00000000 none
    menu color title 0 #ff7ba3d0 #00000000 none
    menu color tabmsg 0 #ff3a6496 #00000000 none
    menu color unsel 0 #84b8ffff #00000000 none
    menu color hotsel 0 #84b8ffff #00000000 none
    menu color hotkey 0 #ffffffff #00000000 none
    menu color help 0 #ffffffff #00000000 none
    menu color scrollbar 0 #ffffffff #ff355594 none
    menu color timeout 0 #ffffffff #00000000 none
    menu color timeout_msg 0 #ffffffff #00000000 none
    menu color cmdmark 0 #84b8ffff #00000000 none
    menu color cmdline 0 #ffffffff #00000000 none
    label live
    menu label Live режим
    kernel vmlinuz0
    append initrd=initrd0.img root=UUID=D087-690D rootfstype=vfat ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0
    menu default
    label persist
    menu label Saving mode settings
    kernel vmlinuz0
    append initrd=initrd0.img root=UUID=D087-690D rootfstype=vfat rw liveimg overlay=UUID=D087-690D quiet rhgb rd.luks=0 rd.md=0 rd.dm=0
    menu begin ^Troubleshooting
    menu title Troubleshooting
    label basic0
    menu label Start in ^basic graphics mode.
    kernel vmlinuz0
    append initrd=initrd0.img root=UUID=D087-690D rootfstype=vfat ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 xdriver=vesa nomodeset
    text help
    Try this option out if you're having trouble installing Fedora 16.
    endtext
    label check0
    menu label Checking the integrity of the
    kernel vmlinuz0
    append initrd=initrd0.img root=UUID=D087-690D rootfstype=vfat ro liveimg quiet rhgb rd.luks=0 rd.md=0 rd.dm=0 rd.live.check
    label memtest
    menu label Memory test
    text help
    If your system is having issues, a problem with your
    system's memory may be the cause. Use this utility to
    see if the memory is working correctly.
    endtext
    kernel memtest
    menu separator
    label local
    menu label Boot from ^local drive
    localboot 0xffff
    menu separator
    label returntomain
    menu label Return to ^main menu.
    menu exit
    menu end

    ОтветитьУдалить
  4. Файл D:\syslinux\isolinux-orig.cfg


    default vesamenu.c32
    timeout 100

    menu background splash.jpg
    menu title Welcome to SL-63-x86_64-LiveDVD!
    menu color border 0 #ffffffff #00000000
    menu color sel 7 #ffffffff #ff000000
    menu color title 0 #ffffffff #00000000
    menu color tabmsg 0 #ffffffff #00000000
    menu color unsel 0 #ffffffff #00000000
    menu color hotsel 0 #ff000000 #ffffffff
    menu color hotkey 7 #ffffffff #ff000000
    menu color timeout_msg 0 #ffffffff #00000000
    menu color timeout 0 #ffffffff #00000000
    menu color cmdline 0 #ffffffff #00000000
    menu hidden
    menu hiddenrow 5
    label linux0
    menu label Boot
    kernel vmlinuz0
    append initrd=initrd0.img root=live:CDLABEL=SL-63-x86_64-LiveDVD rootfstype=auto ro liveimg quiet rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM
    menu default
    label linuxtext0
    menu label Boot (Text Mode)
    kernel vmlinuz0
    append initrd=initrd0.img root=live:CDLABEL=SL-63-x86_64-LiveDVD rootfstype=auto ro liveimg 3 quiet rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM
    label linux0
    menu label Boot (Basic Video)
    kernel vmlinuz0
    append initrd=initrd0.img root=live:CDLABEL=SL-63-x86_64-LiveDVD rootfstype=auto ro liveimg quiet rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM xdriver=vesa nomodeset
    label check0
    menu label Verify and Boot
    kernel vmlinuz0
    append initrd=initrd0.img root=live:CDLABEL=SL-63-x86_64-LiveDVD rootfstype=auto ro liveimg quiet rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM check
    label install0
    menu label Install
    kernel vmlinuz0
    append initrd=initrd0.img root=live:CDLABEL=SL-63-x86_64-LiveDVD rootfstype=auto ro liveimg liveinst noswap rd_NO_LUKS rd_NO_MD rd_NO_DM
    label textinstall0
    menu label Install (Text Mode)
    kernel vmlinuz0
    append initrd=initrd0.img root=live:CDLABEL=SL-63-x86_64-LiveDVD rootfstype=auto ro liveimg textinst noswap rd_NO_LUKS rd_NO_MD rd_NO_DM
    label memtest
    menu label Memory Test
    kernel memtest
    label local
    menu label Boot from local drive
    localboot 0xffff

    ОтветитьУдалить
  5. В файле isolinux.bin есть фрагменты текста:
    ....
    ISOLINUX 4.02 2010-07-21
    No boot info table, assuming single session disk...
    Spec packet missing LBA information, trying to wing it...
    Loading spec packet failed, trying to wing it...
    xtremely broken BIOS detected, last attempt with drive = ...
    ....ailed to locate CD-ROM device; boot failed.
    See http://syslinux.zytor.com/sbm for more information.
    ....
    It appears your computer has less than 000K of low ("DOS")
    RAM. Syslinux needs at least this amount to boot. If you get
    this message in error, hold down the
    Ctrl key
    while booting, and I will take your word for it.

    ОтветитьУдалить
  6. Вот руководство для Scientific Linux Live CD and DVD - Live USB - Diskless Client
    http://www.livecd.ethz.ch/usbdisk.html#directly

    Его и надо разобрать самым подробным образом

    ОтветитьУдалить
  7. "Разобрал..." прочитал все страницы на http://www.livecd.ethz.ch
    Понял, что файл D:\LiveOS\overlay-MYLINUXLIVE-D087-690D 4.0 GB 30.04.13 16:29:24
    - это и есть тот самый "оверлей", но он можте быть не более 2Г для
    http://www.livecd.ethz.ch/usbdisk.html
    Data Persistence and its Limitations

    On FAT32 formatted USB sticks the overlay size can not be greater than 2047 MB. In case you want larger overlay size use EXT2 or EXT3.
    One very important note about using the "primary" persistent overlay for system changes is that due to the way it's currently implemented (as a LVM copy-on-write snapshot), every single change to it subtracts from its free space. Even if you delete a file, disk space will not be released. In case all free space is used up, your USB stick will no longer boot!
    The persistent overlay status can be queried by running the following command:
    dmsetup status

    ОтветитьУдалить
    Ответы
    1. А у меня - 4Г ...,надо бы исправить

      Удалить
    2. не надо http://www.linuxliveusb.com/en/help/faq/persistence/91-why-cant-i-have-more-than-4gb-for-persistent-datas-

      Удалить
    3. Yes, you can backup or re-use your persistent data. All you have to do is copying the casper-rw file (for Ubuntu and variants), live-rw file (for Debian and variants) or LiveOS\overlay-LABEL-XXXX file (for Fedora) when you are in Windows.

      You can even put this file on another LinuxLive USB key with the same config to access your data.

      http://www.linuxliveusb.com/en/help/faq/persistence/56-can-i-backup-or-re-use-my-persistent-data-

      Удалить
  8. Оверлей работает, все настройки, включая новый текстовый файл на рабочем столе и настройки интернет сохранились....
    И хотел бы дальше понять, что это за фича
    When a person or organization makes a custom version of Scientific Linux, we call it a "site" or a "spin". This documentation explains how to build a site for Scientific Linux 6.

    https://www.scientificlinux.org/distributions/6x/build/sites/view

    Но на новом компьютере (64 разряда) при загрузке с этой флешки возникает Kernel panic
    Надо понять, в чем дело... Потому продолжаем копать оверлей

    ОтветитьУдалить
    Ответы
    1. На этой же странице находим внизу:
      Troubleshooting
      Problem: I am having trouble building a 32 bit image, but I can build a 64 bit image. Or vice versa.
      Solution: A 32 bit image has to be built on a 32 bit machine or chroot area. A 64 bit image has to be built on a 64 bit machine.
      Note: If you are building a 32 bit image using a chroot area, make sure that /proc, /sys, and /dev are bind mounted to the appropriate chroot areas. Also make sure that you do a "setarch i386" after you chroot.

      Problem: I make an install image, but it doesn't do anything
      Solution: You have to have anaconda as one of your packages in your kickstart, or select anaconda in the graphical package selection page.

      Что они понимают под словом image, какой-то оверлей?

      Удалить
  9. Boot issues often come from the motherboard rather than from the USB device. Be sure that you have tried every options called "USB-SOMETHING" in the boot menu.

    VirtualBox is motherboard independent, so if you can boot your USB key with VirtualBox and you can't boot directly from the USB key, then it is clearly a motherboard issue.

    http://www.linuxliveusb.com/en/help/faq/boot/54-my-usb-device-does-not-boot

    ОтветитьУдалить