[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/24 10:39 (UTC)] – changed wording here and there brianl | wiki:user:bormant:booting_install_from_hdd [2012/10/24 12:48 (UTC)] (current) – moved to howtos namespace bormant | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Booting the Installation Environment from HDD ====== | ||
- | This article shows how to boot the Slackware installation environment from a hard drive instead of the usual installation media. | ||
- | The Slackware installation environment is a small live Linux system with busybox, partitioning and another useful utilities, and the '' | ||
- | |||
- | In order to boot the Slackware installation environment without creating install media you need an image of this boot environment, | ||
- | |||
- | ===== Image of the Environment ===== | ||
- | All software you can use after booting Slackware installation media resides in an [[wp> | ||
- | |||
- | ===== Linux Kernel ===== | ||
- | Slackware uses (at least now) one of its huge kernels to run the installation environment. You can find the kernel' | ||
- | |||
- | ===== Getting The Files ===== | ||
- | If you already have an ISO image of the Slackware install media you can mount this image with the loop option and copy the files, for example to a ''/ | ||
- | |||
- | * This is how that looks for a Slackware 14.0 64-bit ISO image: < | ||
- | # mkdir -p /mnt/tmp / | ||
- | # mount -o loop / | ||
- | # cp / | ||
- | # umount /mnt/tmp | ||
- | </ | ||
- | * And for Slackware 14.0 32-bit:< | ||
- | # mkdir -p /mnt/tmp / | ||
- | # mount -o loop / | ||
- | # cp / | ||
- | # umount /mnt/tmp | ||
- | </ | ||
- | |||
- | You can also download the kernel and initrd image from one of the 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 the install media, installs LILO to boot the installed system, and provides a GRUB-legacy package 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 a unused partition you can install Slackware on it right now. | ||
- | |||
- | ==== Using an ISO Image as Source ==== | ||
- | If you downloaded the Slackware DVD ISO image you can use it as package source. | ||
- | * In the "'' | ||
- | * enter the name of the disk partition containing the ISO image file, for example ''/ | ||
- | * then type in the full path on that partition' | ||
- | * and agree with the prompt to use the ISO image as package source: < | ||
- | ┌──────────────────────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 usual. | ||
- | |||
- | Slackware setup automatically finds an ISO image if it is named as '' | ||
- | You can also mount your image manually. | ||
- | * Before starting '' | ||
- | # mkdir /hd /iso | ||
- | # mount /dev/sda2 /hd | ||
- | # mount -o loop / | ||
- | </ | ||
- | * In the "'' | ||
- | * In the next dialog window, enter the path to the directory containing the "// | ||
- | Then continue with the installation as usual. | ||
- | |||
- | ====== Sources ====== | ||
- | * Originally written by [[wiki: | ||
- | |||
- | <!-- Please do not modify anything below, except adding new tags.--> | ||
- | {{tag> |