[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.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
wiki:user:bormant:booting_install_from_hdd [2012/10/23 12:53 (UTC)] – [Sources] bormantwiki:user:bormant:booting_install_from_hdd [2012/10/24 12:02 (UTC)] – [Test It] bormant
Line 1: Line 1:
-====== Booting Installation Environment from HDD ====== +====== Booting the Installation Environment from HDD ====== 
-This article shows how to boot Slackware installation environment from hard drive (don't ask me why).+This article shows how to boot the Slackware installation environment from hard drive instead of the usual installation media.
  
-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.+The Slackware installation environment is a small live Linux system with busybox, partitioning and another useful utilities, and the ''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, suitable Linux kernel, and boot loader. +In order to boot the Slackware installation environment without creating install media you need an image of this boot environment, suitable Linux kernel, and boot loader. 
-===== Image of Environment ===== + 
-All software you can use after booting Slackware installation media resides in [[wp>initrd|initial ramdisk image]]. You can found it as ''/isolinux/initrd.img'' on installation media or at the same path at one of Slackware mirrors. +===== Image of the Environment ===== 
 +All software you can use after booting Slackware installation media resides in an [[wp>initrd|initial ramdisk image]]. You can find it as ''/isolinux/initrd.img'' on any installation media or at the same location on any of the Slackware mirrors. 
  
 ===== Linux Kernel ===== ===== Linux Kernel =====
-Slackware uses (at least now) one of it'huge kernels to run installation environment. You can found kernel ''bzImage''in sub-directories of ''/kernel'' directory on installation media or at the same path at one of Slackware mirrors+Slackware uses (at least now) one of its huge kernels to run the installation environment. You can find the kernel'''bzImage'' files in sub-directories of the ''/kernel'' directory on the installation media or at the same location on any Slackware mirror.
  
 ===== Getting The Files ===== ===== 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 ''/boot/swsetup'' directory. +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 ''/boot/swsetup'' directory which you create yourself first.
  
-Slackware 14.0 64-bit: <code>+  * This is how that looks for a Slackware 14.0 64-bit ISO image: <code>
 # mkdir -p /mnt/tmp /boot/swsetup # mkdir -p /mnt/tmp /boot/swsetup
 # mount -o loop /tmp/slackware64-14.0-install-dvd.iso /mnt/tmp # mount -o loop /tmp/slackware64-14.0-install-dvd.iso /mnt/tmp
Line 20: Line 21:
 # umount /mnt/tmp # umount /mnt/tmp
 </code> </code>
-Slackware 14.0 32-bit:<code>+  * And for Slackware 14.0 32-bit:<code>
 # mkdir -p /mnt/tmp /boot/swsetup # mkdir -p /mnt/tmp /boot/swsetup
 # mount -o loop /tmp/slackware-14.0-install-dvd.iso /mnt/tmp # mount -o loop /tmp/slackware-14.0-install-dvd.iso /mnt/tmp
Line 27: Line 28:
 </code> </code>
  
-You can also download kernel and initrd image from one of Slackware mirrors. There are some examples below.+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:  +  * Slackware 14.0 64-bit:  
-  * kernel: http://slackware.osuosl.org/slackware64-14.0/kernels/huge.s/bzImage +    * kernel: http://slackware.osuosl.org/slackware64-14.0/kernels/huge.s/bzImage 
-  * initrd: http://slackware.osuosl.org/slackware64-14.0/isolinux/initrd.img+    * initrd: http://slackware.osuosl.org/slackware64-14.0/isolinux/initrd.img
  
-Slackware 14.0 32-bit: +  * Slackware 14.0 32-bit: 
-  * kernel: http://slackware.osuosl.org/slackware-14.0/kernels/hugesmp.s/bzImage +    * kernel: http://slackware.osuosl.org/slackware-14.0/kernels/hugesmp.s/bzImage 
-  * initrd: http://slackware.osuosl.org/slackware-14.0/isolinux/initrd.img+    * initrd: http://slackware.osuosl.org/slackware-14.0/isolinux/initrd.img
  
 ===== Boot Loader ===== ===== 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 ''/isolinux/isolinux.cfg'', you need them to properly configure your 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 GRUB-legacy package in ''/extra'' (32 bit only). Many distributions use GRUB (renamed from GRUB2) as their main boot loader. If you use a Linux system you probably already have suitable one. You need to put the ''bzImage'' and ''initrd.img'' files in a suitable place and instruct the boot loader to boot them. \\ Note that some parameters are passed to the kernel in ''/isolinux/isolinux.cfg'', you need them to properly configure your boot loader.
  
 ==== LILO ==== ==== LILO ====
Line 46: Line 47:
   addappend = "load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=huge.s"   addappend = "load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=huge.s"
   label = SwSetup   label = SwSetup
-</file>and run<code>+</file> and run <code>
 # lilo # lilo
 </code> </code>
Line 58: Line 59:
 } }
 </file> </file>
-<note>(hd0,2) means second partition on first drive (i.e. /dev/sda2). You can find right value in set root command of menuentry used to boot your system or consult with [[http://www.gnu.org/software/grub/manual/grub.html|GRUB manual]]. </note> +<note>(hd0,2) means "//the second partition on the first drive//" (i.e. ''/dev/sda2''). You can find the right value in the "''set root''" command of the menu entry used to boot your systemor else consult with [[http://www.gnu.org/software/grub/manual/grub.html|GRUB manual]]. </note> 
-<note>If you use separate partition for /boot remove "/boot" from paths.</note>+<note>If you use separate partition for ''/boot'', then you must remove "/boot" from any pathnames.</note>
  
 ==== GRUB-legacy ==== ==== GRUB-legacy ====
Line 68: Line 69:
   initrd /boot/swsetup/initrd.img   initrd /boot/swsetup/initrd.img
 </file> </file>
-<note>(hd0,1) means second partition (this in not typo, first partition has number 0 here) on first drive (i.e. /dev/sda2). You can find right value in root command in section used to boot your system or consult with [[http://www.gnu.org/software/grub/manual/legacy/grub.html|GRUB-legacy manual]]. </note> +<note>(hd0,1) means the //second partition// (this is not typo, first partition has number 0 here) on the //first drive// (i.e. ''/dev/sda2''). You can find the right value in the "''root''" command in the section used to boot your systemor else consult with [[http://www.gnu.org/software/grub/manual/legacy/grub.html|GRUB-legacy manual]]. </note> 
-<note>If you use separate partition for /boot remove "/boot" from paths.</note>+<note>If you use separate partition for ''/boot'', then you must remove "/boot" from any pathnames.</note>
  
 ===== Test It ===== ===== Test It =====
 Reboot your system and select SwSetup at boot prompt. Reboot your system and select SwSetup at boot prompt.
  
-If you have unused partition you can install Slackware on it right now. +If you have an unused partition you can install Slackware on it right now. 
  
-==== Using ISO Image as Source ==== +==== Using an ISO Image as Source ==== 
-If you downloaded Slackware DVD iso image you can use it as package source. On "SOURCE MEDIA SELECTION" step select "2 Install from hard drive partition", type in partition name with image file, for ex. ''/dev/sda2'', then type in path to directory with DVD iso image, for ex. ''/tmp/'', and agree with prompt to use image as package source: <code>+If you downloaded the Slackware DVD ISO image you can use it as package source. 
 +  * In the "''SOURCE MEDIA SELECTION''" step select "''2 Install from hard drive partition''", 
 +  *  enter the name of the disk partition containing the ISO image file, for example ''/dev/sda2'', 
 +  *  then type in the full path on that partition's filesystem to the directory with the DVD ISO image, for example ''/tmp/'', 
 +  *  and agree with the prompt to use the ISO image as package source: <code>
 ┌──────────────────────SOURCE MEDIA SELECTION────────────────────────┐ ┌──────────────────────SOURCE MEDIA SELECTION────────────────────────┐
 │ Please select the media from which to install Slackware Linux:     │ │ Please select the media from which to install Slackware Linux:     │
Line 141: Line 146:
 └───────────────────────────────────────────────────────────────┘ └───────────────────────────────────────────────────────────────┘
 </code> </code>
-Then continue as usually.+Then continue as usual.
  
-Slackware setup automatically finds iso image named as ''slackwar*-install-dvd.iso''.  +Slackware setup automatically finds an ISO image if it is named as ''slackwar*-install-dvd.iso''\\   
-You can also mount your image by hands before starting setup or after that from another console (use <key>Alt</key>+<key>Fn</key> to switch) <code>+You can also mount your image manually. 
 +  * Before starting ''setup'' or later from another console (use <key>Alt</key>+<key>F#</key> to switch to a different console number "#"), execute <code>
 # mkdir /hd /iso # mkdir /hd /iso
 # mount /dev/sda2 /hd # mount /dev/sda2 /hd
 # mount -o loop /hd/tmp/slackware64-14.0-install-dvd.iso /iso # mount -o loop /hd/tmp/slackware64-14.0-install-dvd.iso /iso
-</code> and on "SOURCE MEDIA SELECTION" step select "6 Install from a premounted directory" and type in path to packages ''/iso/slackware64'' for 64 bit system or ''/iso/slackware'' for 32 bit and continue as usually.+</code> 
 +  * In the "''SOURCE MEDIA SELECTION''" step select "''6 Install from a premounted directory''"
 +  * In the next dialog window, enter the path to the directory containing the "//package series//", meaning the subdirectories "''a''", "''ap''", ..., "''y''". This path would be ''/iso/slackware64'' for 64 bit system or ''/iso/slackware'' for 32-bit
 +Then continue with the installation as usual.
  
 ====== Sources ====== ====== Sources ======
Line 154: Line 163:
  
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
-{{tag>howtos author_bormant needs_attention}}+{{tag>howtos author_bormant}}
 wiki:user:bormant:booting_install_from_hdd ()