Sunday, June 23, 2013

Installing Slackware 14 from a USB drive

The following notes collect important tips to consider in the installation of Slackware 14.

Before any modification in my computer I use to load a USB drive with Slax, in case something goes wrong I can use it to fix problems or to find help on Internet.
  1. Download Slax
  2. Install it in a USB drive (this erase all data in it).
    1. Extract Slax inside it.
    2. Run the script xxxx.sh for make it bootable.
  3. Boot one time to try it and to verify all works fine.
Downloading Slackware by torrent.
I like download the DVD ISO by using torrent, you can find it in the Slackware official site (~2,3GiB).

Installing the complete distribution in the USB drive and do it bootable
  1. To mount Slackware iso image, it should be done by root user: # mount -t iso9660 -o loop /.../slackware-14.0-iso/slackware-14.0-install-dvd.iso /media/dvd
  2. Go to /../usb-and-pxe-installers folder: $ cd /media/dvd/usb-and-pxe-installers/
  3. Type $ sh usbimg2disk.sh -h to getting help.
  4. With the pendrive unmounted run this command as root: $ sh usbimg2disk.sh -f -s /media/dvd/ -o /dev/sdc where -s /media/dvd/ is the folder were Slackware tree is mounted, and /dev/sdc the path to the pendrive. -f is the parameter to format the pendrive. Note that pendrive shouldn't be mounted before run this script, if you do it, unplug it and plug it again but without mounting it.
Booting from the USB drive
If the computer doesn't boot automatically from the USB drive, you will have to find the correct configuration inside the BIOS setup. Usually you have to change the order of the devices that can boot the system, put the USB drive in the first place. In some systems the USB drive have to be plugged to appears in the devices list.

Kernel selection
After the Slackware installer boots it will ask you for witch kind of kernel should it use. You have two options: huge.s and hugesmp.s, the first should be used in computer with single processor while the second in multiprocessors computers. I have chose hugesmp.s.

Preparing the hard drive
This time I have change the partitions in the hard drive, I have created one for the / folder (20GiB, ext4), another for swap (2GiB, linux swap), a third for the /home folder (80GiB, ext4) and the rest available space in a fourth partition for a testing area (ext4).

Installing Slackware
I use to avoid the installation of games and FAQs, then I chose the complete installation without prompting.

A good practice is to mount the /home folder in a different partition. This helps when you do an update of the operating system conserving users files and configurations.

No comments: