[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:user:bormant:booting_install_from_hdd [2012/10/23 12:52 (UTC)] – [Using ISO Image as Source] bormant | wiki:user:bormant:booting_install_from_hdd [2012/10/24 12:48 (UTC)] (current) – moved to howtos namespace bormant | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Booting Installation Environment from HDD ====== | ||
- | This article shows how to boot Slackware installation environment from hard drive (don't ask me why). | ||
- | Slackware installation environment is a small live Linux system with bysybox, partitioning and another useful utilities, and setup program. It starts automatically when you boot your system from Slackware install media: CD, DVD, USB stick or PXE. | ||
- | |||
- | To boot Slackware installation environment by hands without creating install media you need image of environment, | ||
- | ===== Image of Environment ===== | ||
- | All software you can use after booting Slackware installation media resides in [[wp> | ||
- | |||
- | ===== Linux Kernel ===== | ||
- | Slackware uses (at least now) one of it's huge kernels to run installation environment. You can found kernel '' | ||
- | |||
- | ===== Getting The Files ===== | ||
- | If you already have iso image of Slackware install media you can mount image with loop option and copy the files, for ex. to ''/ | ||
- | |||
- | Slackware 14.0 64-bit: < | ||
- | # mkdir -p /mnt/tmp / | ||
- | # mount -o loop / | ||
- | # cp / | ||
- | # umount /mnt/tmp | ||
- | </ | ||
- | Slackware 14.0 32-bit:< | ||
- | # mkdir -p /mnt/tmp / | ||
- | # mount -o loop / | ||
- | # cp / | ||
- | # umount /mnt/tmp | ||
- | </ | ||
- | |||
- | You can also download kernel and initrd image from one of Slackware mirrors. There are some examples below. | ||
- | |||
- | Slackware 14.0 64-bit: | ||
- | * kernel: http:// | ||
- | * initrd: http:// | ||
- | |||
- | Slackware 14.0 32-bit: | ||
- | * kernel: http:// | ||
- | * initrd: http:// | ||
- | |||
- | ===== Boot Loader ===== | ||
- | There are many boot loaders around. Slackware uses SYSLINUX to boot from install media, installs LILO to boot installed system, provides GRUB-legacy package in /extra (32 bit only). Many distributions use GRUB (renamed from GRUB2) as they main boot loader. If you use a Linux system you probably already have suitable one. You need to put bzImage and initrd.img to right place and instruct boot loader to boot them. \\ Note parameters passed to kernel in ''/ | ||
- | |||
- | ==== LILO ==== | ||
- | Add to ''/ | ||
- | image = / | ||
- | initrd = / | ||
- | addappend = " | ||
- | label = SwSetup | ||
- | </ | ||
- | # lilo | ||
- | </ | ||
- | |||
- | ==== GRUB ==== | ||
- | Add to ''/ | ||
- | menuentry ' | ||
- | set root=' | ||
- | linux / | ||
- | initrd / | ||
- | } | ||
- | </ | ||
- | < | ||
- | < | ||
- | |||
- | ==== GRUB-legacy ==== | ||
- | Add to ''/ | ||
- | title SwSetup | ||
- | root (hd0,1) | ||
- | kernel / | ||
- | initrd / | ||
- | </ | ||
- | < | ||
- | < | ||
- | |||
- | ===== Test It ===== | ||
- | Reboot your system and select SwSetup at boot prompt. | ||
- | |||
- | If you have unused partition you can install Slackware on it right now. | ||
- | |||
- | ==== Using ISO Image as Source ==== | ||
- | If you downloaded Slackware DVD iso image you can use it as package source. On " | ||
- | ┌──────────────────────SOURCE MEDIA SELECTION────────────────────────┐ | ||
- | │ Please select the media from which to install Slackware Linux: | ||
- | │ ┌────────────────────────────────────────────────────────────────┐ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ └────────────────────────────────────────────────────────────────┘ │ | ||
- | ├────────────────────────────────────────────────────────────────────┤ | ||
- | │ < | ||
- | └────────────────────────────────────────────────────────────────────┘ | ||
- | </ | ||
- | ┌────────────────────INSTALLING FROM HARD DISK───────────────────────┐ | ||
- | │ In order to install directly from the hard disk you must have a │ | ||
- | │ partition (such as /dev/sda1, /dev/sdb5, etc) with the Slackware | ||
- | │ distribution' | ||
- | │ site. It can be in another directory. | ||
- | │ distribution is in / | ||
- | │ directories named / | ||
- | │ on each containing the files that would be in that directory on │ | ||
- | │ the FTP site. You may install from FAT or Linux partitions. | ||
- | │ │ | ||
- | │ Please enter the partition (such as /dev/sda1) where the Slackware │ | ||
- | │ sources can be found, or [enter] to see a partition list: │ | ||
- | │ ┌────────────────────────────────────────────────────────────────┐ │ | ||
- | │ │/ | ||
- | │ └────────────────────────────────────────────────────────────────┘ │ | ||
- | ├────────────────────────────────────────────────────────────────────┤ | ||
- | │ < | ||
- | └────────────────────────────────────────────────────────────────────┘ | ||
- | </ | ||
- | ┌───────────────────SELECT SOURCE DIRECTORY─────────────────────┐ | ||
- | │ Now we need to know the full path on this partition to the │ | ||
- | │ slackware/ directory where the directories containing | ||
- | │ installation files and packages to be installed are kept. │ | ||
- | │ For example, if you downloaded Slackware into the / | ||
- | │ directory on your hard drive (so that you have the │ | ||
- | │ directories / | ||
- | │ on each containing the files that would be in that directory | ||
- | │ on the FTP site), then the full path to enter here would be: │ | ||
- | │ │ | ||
- | │ / | ||
- | │ │ | ||
- | │ What directory are the Slackware sources in? │ | ||
- | │ ┌───────────────────────────────────────────────────────────┐ │ | ||
- | │ │/ | ||
- | │ └───────────────────────────────────────────────────────────┘ │ | ||
- | ├───────────────────────────────────────────────────────────────┤ | ||
- | │ < | ||
- | └───────────────────────────────────────────────────────────────┘ | ||
- | </ | ||
- | ┌────────────────────────USE ISO IMAGE──────────────────────────┐ | ||
- | │ │ | ||
- | │ An ISO image of Slackware' | ||
- | │ Do you want me to mount the ISO image and use this as the │ | ||
- | │ package source? | ||
- | │ │ | ||
- | ├───────────────────────────────────────────────────────────────┤ | ||
- | │ < Yes > < No > │ | ||
- | └───────────────────────────────────────────────────────────────┘ | ||
- | </ | ||
- | Then continue as usually. | ||
- | |||
- | Slackware setup automatically finds iso image named as '' | ||
- | You can also mount your image by hands before starting setup or after that from another console (use < | ||
- | # mkdir /hd /iso | ||
- | # mount /dev/sda2 /hd | ||
- | # mount -o loop / | ||
- | </ | ||
- | |||
- | ====== Sources ====== | ||
- | * Originally written by [[wiki: | ||
- | |||
- | <!-- Please do not modify anything below, except adding new tags.--> | ||
- | {{tag> |