Boot and run linux

6 шагов загрузки Linux на пальцах

Нажмите кнопку включения питания на вашем системнике, и спустя несколько секунд вы увидите окно входа в систему.

Посмею предположить, что каждого интересовало хоть когда-либо то, что происходит за занавесом заставок и загрузочных экранов с момента включения питания компьютера к моменту, когда предлагается войти в систему.

Я предлагаю вам познакомиться со следующими уровнями типичной загрузки Linux:

1. BIOS

2. MBR

3. GRUB

#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.el5PAE)
root (hd0,0)
kernel /boot/vmlinuz-2.6.18-194.el5PAE ro root=LABEL=/
initrd /boot/initrd-2.6.18-194.el5PAE.img

4. Ядро или Kernel

5. Init

6. Уровень выполнения программ (Runlevel)

  • Когда Линукс выполняет свою загрузку, вы можете наблюдать загрузку различных служб. К примеру, это могут быть сообщения типа «starting Postfix … OK» (запускается Postfix). Эти службы — и называются программами уровня выполнения, выполняемые из директории, которая соответствует нужному уровню выполнения.
  • Исходя из настроек по умолчанию, система будет выполнять файлы в соответствии с нижеприведенными директориями.
    • Выполнение уровня 0 – /etc/rc.d/rc0.d/
    • Выполнение уровня 1 – /etc/rc.d/rc1.d/
    • Выполнение уровня 2 – /etc/rc.d/rc2.d/
    • Выполнение уровня 3 – /etc/rc.d/rc3.d/
    • Выполнение уровня 4 – /etc/rc.d/rc4.d/
    • Выполнение уровня 5 – /etc/rc.d/rc5.d/
    • Выполнение уровня 6 – /etc/rc.d/rc6.d/
  • Но имейте ввиду, что еще в каталоге /etc могут быть символические ссылки. Например, /etc/rc0.d залинкован на /etc/rc.d/rc0.d.
  • В каталогах /etc/rc.d/rc*.d/ вы можете увидеть список программ, имя которых начинается из букв S и K.
  • Программы, начинающиеся на S используются для запуска. S, потому что startup.
  • Программы, которые начинаются с литеры K используются — правильно — для завершения работы. K, потому что kill.
  • Еще есть номера рядом с буквами S и K в именах программ. Эти номера используются для определения порядка запуска этих программ.
  • К примеру, S12syslog предназначен для запуска демона syslog, его порядковый номер 12. S80sendmail — для запуска демона sendmail, имеющего порядковый номер 80. Таким образом, программа syslog будет запущена перед sendmail.

Вот и все. Возможно, некоторым из вас это не ново и особого интереса не было при чтении статью, поскольку она более ориентирована на начально-средний уровень знакомства з Линуксом.
В таком случае могу лишь сказать, что «повторение — мать учения» (с).

Дополнения, исправления, уточнения

В комментариях неоднократно было апеллировано к тексту статьи, поэтому, думаю, стоит учесть некоторые важные комментарии хабрасообщества. (спасибо artemlight, 3al, Tishka17, HhyperH, Next_Alex, Ilya_Shmelykh, Aux, soomrack, Xpeh )

  • artemlight:: «Ну скажем прямо — так грузятся далеко не все дистры». С ним согласилось большинство, отмечая и bsd-style init, u-boot, и хоть initrd в статье пропущен, стоить заметить, что он нужен ядру не во всех дистрибутивах. Также отмечено, что в slackware поддержка rc.d осуществляется только в качестве совместимости, а встраиваемые системы грузятся иначе. На декстопах иногда бывает EFI, а кроме того Linux популярен в мире embedded и там ещё куча разных платформ. Линукс в телефоне вообще иначе грузится.
  • soomrack, ссылая на википедию: Еще хочется сделать замечание по поводу MBR, первого сектора и пр. Все несколько усложнилось за последние годы. Сейчас уместней говорить о EFI.

Источник

Boot and Run Linux from a USB Flash Drive

Boot from USB and take your favorite Portable Linux Desktop with you!
Make a Linux Bootable USB to Boot and Run Linux from a USB Flash Drive.
Recommended YUMI – Multiboot USB Creator Updated: September 29, 2021
Legacy Classic Universal USB Installer – UUI Updated: August 29, 2021

Easily install your favorite Linux operating system to a bootable USB flash drive. Take your portable Linux with you to run from any computer that can boot from a USB device. You can also Boot Multiple ISO files from a flash drive by using tools like YUMI to create a MultibootUSB. Multibooting allows you to store, boot and then run several Live Linux Operating Systems, Windows installers, diagnostic utilities, antivirus scanners, penetration testing, backup tools, and more, all from the same device. Resulting in your very own custom USB bootable diagnostic tool kit that will fit in your pocket.

Helping You Make Linux Boot from USB since 2006

Pendrivelinux provides simplified information to make it easy for anyone to install, USB boot, and then run their favorite Distros and tools from a flash drive.

  • USB Boot Creators
  • USB Emulation
  • USB Boot From Windows
  • USB Boot From Linux

Источник

Create a USB Bootable Runt Linux from Windows

Last updated: August 9, 2010

Creating a USB Bootable RUNT Linux; This walk through illustrates how to install, boot, and run RUNT Linux from a USB flash drive. RUNT is a super super tiny and very basic Linux distro. It is recommended for intermediate to advanced users who prefer to do work without using a graphical interface like X. Beware that by default it does not feature a GUI, it uses a text only based interface.

USB RUNT Linux

Distribution Home Page: http://runt.mybox.org/

Persistent Feature: Unknown

What you’ll need:

  • USB Flash Pen Drive
  • Runt Linux
  • A running Windows 8/10 (to perform the install)
  • Universal USB Installer

How to create a RUNT Bootable USB Flash Drive using UUI

  1. Download and launch the Universal USB Installer,
  2. 1.) Select Runt Linux from the drop down. 2.) Browse to your .zip file. 3.) Select your Flash Drive. 4.) Click Create.
  3. Once the Installation has finished, restart your PC and set your BIOS or Boot Menu to boot from the USB device, save your changes and reboot.

Save your BIOS settings. On the next reboot, you should have a successful launch of RUNT Linux.

Login name for RUNT: Root

Pass: No password set by default

Use the runthelp or diskhelp commands to get started using RUNT.

We will explain how to add a GUI login and other modules to this distro later.

Источник

Universal USB Installer – Easy as 1 2 3

Last updated: August 29, 2021

Universal USB Installer aka UUI is a Live Linux Bootable USB Creator. It allows users to make a USB Boot from a Linux distribution, Windows Installer, Windows To Go, Antivirus Scanner, Disk Cloning Software or any other System Tool that can be put on a flash drive. The software is easy to use; Simply choose your distribution from the list, browse to the ISO file, select your target flash drive, and then click Create. Once finished, you should have a ready to run Bootable Flash Drive containing the operating system or tool you selected.

Unlike tools which simply use the DD (Copy and Convert) command to directly Burn ISO to USB, the Universal USB Installer includes several other methods that natively allow you to continue using your flash drive for storage purposes, whilst including a “Try via DD” option. The DD method of copying, also known as D ata D estroyer works by overwriting the entire file system, making the USB device appear as a CD/DVD which is limited to the size of the ISO file. However, it may be possible to Recover Lost USB flash drive space and then create an exFAT partition for continued storage purposes. Another key feature of UUI is Persistence storage, where available. This Persistent feature allows you to save some changes and then restore them on subsequent boots. Ubuntu based Casper Persistence works with FAT32 or NTFS formatted drives. A larger than 4GB casper-rw or persistent option is also possible when the USB drive is formatted with an NTFS filesystem.

NOTE : If you are wanting to add multiple Live Linux Distributions, System Diagnostic Tools, Antivirus Utilities, and Windows Installers, you should use the YUMI Multiboot USB Software, instead. It can help you Boot Multiple ISO files from one flash drive.

Universal USB Installer (UUI)

Download Universal USB Installer (UUI)

August 29, 2021 Universal-USB-Installer-2.0.0.7.exe: Added Wipe option to reformat and restore a USB flash drive. Included a Try via DD option. Updated Archbang and Archlinux to use dd rawwrite method. Updated AmogOS download link.

  • Requirements
  • Changes
  • Supported Distros
  • FAQ

Requirements to Create a Live Bootable USB Flash Drive

IMPORTANT : UUI only shows USB drives detected by Windows as removable media. See the best recommended Fast Flash Drives .

Your flash drive must be Fat32/NTFS formatted, otherwise Syslinux will fail to install an MBR ( M aster B oot R ecord), and as a result the device will NOT Boot.

Additionally, the Windows to Go option requires an NTFS formatted device with 20GB free disk space to hold the virtual disk. See FAQ for more info.

  • Universal-USB-Installer-2.0.0.7.exe to make the Bootable USB.
  • Windows 11, 10, 8, 7 Operating System to run UUI.
  • Greater than 2GB *Fat32 or NTFS Formatted Flash Drive. MBR partition table.
  • Computer with a BIOS that can boot from USB.
  • Your Favorite Linux ISO File.

Feel free to inform me of unlisted Live Linux distributions or version revisions, and I will do my best to update the UUI tool to support them.

Universal USB Installer Changelog

The following Changelog outlines any recent changes made to the software. Only the latest revisions are listed.

8/29/21 – Version 2.0.7: Added Wipe option to reformat and restore a USB flash drive. Included a Try via DD option. Updated Archbang and Archlinux to use dd rawwrite method. Updated AmogOS download link.

8/4/21 – Version 2.0.6: Updated AmogOS with persistence download link.

7/23/21 – Version 2.0.5: Updated to support AmogOS and HDClone.

5/4/21 – Version 2.0.4: Re-enabled the ability to run from earlier versions of Windows. Moved checkpoint to simply prevent NTFS format option from appearing on systems prior to Windows 8.

4/26/21 – Version 2.0.0.3a: quick revision to disallow (Disk 0) from being displayed.

4/26/21 – Version 2.0.0.3: Set to show Local Drives in addition to USB Drives. Included a confirmation prompt before proceeding to format a drive. Implemented a checkpoint to prevent running from Operating Systems prior to Windows 8.

4/16/21 – Version 2.0.0.2: Performed general cleanup of unused code. Fixed the broken Debian Live entry. Removed the Wipe option. Also switched to list only removable USB media. Note that devices listed as local (fixed) disks will no longer be detected.

3/19/21 – Version 2.0.0.1: Fixed Zorin persistence feature. Updated to support newer Clonezilla and OpenSUSE. Also removed old distros that are no longer in development.

12/3/20 – Version 2.0.0.0: Recompiled the tool using the newer Nullsoft Scriptable Install System Version 3.06.1.

USB Bootable Distributions and Tools

The Universal USB Installer (UUI) might be used to make a USB Boot from the following Live Linux Operating Systems, Windows Installers, System Tools, and Antivirus Utilities.

— Ubuntu 32/64 Bit —

  • Ubuntu Live Desktop
  • Xubuntu Live Desktop
  • Kubuntu Live Desktop
  • Lubuntu Live Desktop
  • Edubuntu Live Desktop
  • *Ubuntu Live Server Installer
  • Blackbuntu

— Linux Mint 32/64 Bit —

  • Linux Mint

— Debian Live/Netinst 32/64 Bit —

  • Debian Netinst
  • *Debian Live

— Backtrack/Kali Versions —

  • Kali Linux
  • Backtrack

— Fedora 32/64 Bit —

  • Fedora Desktop

— OpenSUSE 32/64 Bit —

  • OpenSUSE 32bit
  • *OpenSUSE 64bit

— Puppy Linux Based —

  • Fatdog64
  • Lighthouse Puppy
  • Lucid Puppy
  • Precise Puppy
  • Puppy Arcade
  • Puppy 4.3.1
  • Racy Puppy
  • Slacko Puppy
  • Wary Puppy

— Linux Distros for Kids —

  • DouDouLinux
  • Qimo 4 Kids 2.0
  • Sugar on a Stick

— Other Distros Alphabetical —

  • amogOS
  • AOMEI (Disk Cloning and Backup Tool)
  • Acronis Rescue CD
  • Android
  • AntiX
  • Antergos
  • ArchBang
  • ArchLinux
  • ArtistX
  • Aurora
  • BackBox
  • Baltix Linux
  • BCCD
  • BlehOS
  • Bodhi
  • Boot Repair Disk
  • Carmedia
  • CentOS
  • Chakra
  • Clonezilla
  • Crunchbang
  • DBAN 2.2.X
  • Deft Linux
  • Deepin Linux
  • DRBL
  • DSL 4.4.10
  • Dreamlinux
  • Dynebolic
  • EASUS Disk Copy
  • EasyPeasy
  • Elementary OS
  • Elementary Unleashed
  • Feather Linux
  • Finnix
  • Fuduntu
  • Fusion Linux
  • Gamedrift
  • Gentoo
  • GEEXBOX
  • gNewSense
  • GRML
  • gOS gadgets
  • GParted
  • Jolicloud
  • Kiwi
  • KNOPPIX
  • Kororaa
  • KXStudio
  • Leeenux
  • Liberte
  • LinHES
  • Linux XP Like
  • LPS
  • Macbuntu
  • Mandriva One 2011
  • Matriux
  • MCNLive Toronto
  • Meego
  • MicroCore
  • Netrunner
  • Ophcrack
  • OSGeo Live
  • Pardus
  • PartedMagic
  • PCLinuxOS
  • Pear OS
  • Peppermint
  • PING
  • Pinguy OS
  • Plasma active
  • PLoP Linux
  • Porteus
  • Redo Backup
  • Rescatux
  • RIP Linux
  • Runt Linux
  • Sabayon Linux
  • SalineOS
  • Satux
  • Simply MEPIS
  • SLAX
  • SliTaZ
  • Sn0wL1nuX
  • SolusOS
  • System Rescue CD
  • Tails
  • Terralinux
  • TinyCore
  • Trisquel
  • Uberstudent
  • Ultimate Boot CD
  • Ultimate Edition
  • WifiWay
  • WifiSlax
  • xPUD
  • XBMC
  • XBMCbuntu
  • StartOS
  • wattOS R5
  • Zenwalk Live
  • Zorin OS

— Live Antivirus Rescue CDs —

  • AOSS (Malware Scanner)
  • AVG Rescue CD
  • Avira Antivir Rescue Disk
  • Bitdefender Rescue CD
  • Comodo Rescue Disk
  • DrWeb LiveCD
  • F-Secure Rescue CD
  • G DATA Antivirus
  • Kaspersky Rescue Disk
  • Panda Safe CD
  • Trinity Rescue Kit

— Other Software —

  • Falcon 4 Boot CD
  • Hiren’s Boot CD
  • Kon-Boot
  • Sergei Strelec

— Windows to Go + Windows Installers —

  • Windows to Go (on VHD)
  • **Windows 7/8/10 Installer

— Try to use an Unsupported ISO —

  • Try Unlisted Linux ISO

More Live Linux Distributions will be added as time permits. Feel free to contact me to submit recommendations.

Universal USB Installer Troubleshooting, Issues, Bugs

The Windows to Go option does require the USB drive be NTFS formatted and have 20GB+ free space to hold the virtual disk. Most of the flash drives found at local department stores won’t be fast enough. You will need a very fast solid state flash drive. When Windows boots from the USB for the first time, it will go through the setup process and then reboot. You will need to boot using your Windows to Go flash drive a second time to finalize the setup process. And then finally boot into your full Portable Windows.

The tool expects the Volume Label of your USB drive to be UUI in order for OpenSUSE, CentOS and a few other distributions to boot. It does attempt to automatically create this Label, but may fail. So make sure it remains UUI in order to allow those distributions to boot.

Persistence feature is currently broken with Newer Debian based distributions. This is due to upstream changes. In that Debian now requires a rename of the persistent block file and label from live-rw to persistence . In addition, it must house a persistence.conf file containing the text / Union. I plan to make all of the necessary changes and then provide a fix as time allows.

If you’re using Universal-USB-Installer-2.0.0.7.exe and you still receive Insane primary (MBR) partition notices,

Insane primary (MBR) partition. Can’t find myself on the drive I booted from

Your USB drive may be improperly formatted, contains more than one partition or MBR, or your BIOS is not properly detecting the USB drive. In which case your firmware probably needs to be updated. You can also try to Format and Restore a USB Drive .

An Error (1) occurred while executing syslinux

If you encounter a message stating;

An error (1) occurred while executing syslinux. Your USB drive won’t be bootable.

The most likely cause is that your USB drive is formatted as exFAT or some other unsupported format. You’ll need to reformat as fat32 (currently preferred) or NTFS.

My PC wont Boot from my Flash Drive, but supports USB boot!

Older flash drives shipped USB-FDD formatted and some systems will not boot USB-FDD. However, I have found that most systems can boot USB-ZIP, and or USB-HDD. If you are having a hard time getting your BIOS to detect your flash drive, reformat it. Then try again to see if your BIOS can detect and boot from it.

OTHER IMPORTANT NOTES :

  • If you’re running a Windows Vista or 7 Installer from your USB, after the first reboot, remove the flash drive and let the pc complete from the hard disk.
  • When browsing for an ISO, UUI will only display ISO Files that match what the tool is asking for. For example, if you chose to install ubuntu-20.10- Desktop -i386, the tool might not display your ubuntu-20.10- Server -i386.iso because you have not selected the server variant. However, you can force all ISO files to be shown by clicking the Show All ISOs box.

Auto Detection : If you also run Universal USB Installer from the same directory containing an installable ISO, the UUI script will auto detect the ISO and bypass step 2.

* Although you can use an NTFS formatted USB, Ubuntu based “persistence” features will only work with a Fat16 or Fat32 formatted drive. Additionally some Linux Distributions will not boot from an NTFS formatted USB.

Again, Universal USB Installer does not support booting from multiple Linux distributions. Only one distribution can be installed per USB drive. However the YUMI Multiboot USB Creator can be used to create a Multi System USB Boot Device.

To try an ISO that isn’t listed, simply choose one of the the last three options in Step 1. I recommend “Try Unlisted Linux ISO (GRUB)” because it seems to be the most successful. Feel free to inform me of unlisted “Linux ISOs” you get to work via these options, so I can add them to the supported list.

OpenSUSE DVD and other ISOs with a single file that exceed 4GB will not work due to the Fat32 file size limitation.

The Universal USB Installer will NOT currently work from within Linux using WINE due to drive detection and privilege issues. I plan to revisit this issue when I find the time.

Источник

Читайте также:  Windows 10 неправильно задано имя папки
Оцените статью