Main menu:

About this blog

I am Eric Hameleers, and this is where I think out loud.
More about me.

Site search

Links:

Categories

RSS Alien's Slackware packages

Sponsoring

Please consider a small donation:

 

History

September 2010
M T W T F S S
« Aug    
 12345
6789101112
13141516171819
20212223242526
27282930  

Meta

Welcome Windows user!

… I am going to show you how to create a Slackware USB installer when all you have is a Windows computer.

As a Linux user, this would not cause you any problems since there is a shell script that does the work for you – all you need is the Slackware DVD and a re-usable USB stick of sufficient size.

If you run Windows, it is still possible to create a bootable USB stick that can start Slackware’s installer. If the stick is big enough (2 GB in size) you can even add Slackware’s packages to it and avoid the use of a Slackware DVD as the package source entirely.

The requirements:

What tools will you need for the job at hand?

  • A version of dd for Windows. This is needed to copy a USB image file to the USB stick. You can obtain it here at chrysocome.net., the same site that also hosts RAWRITE.EXE which ships with Slackware in the isolinux/sbootmgr directory.
  • The syslinux tool from syslinux.zytor.com. This will be used to make your stick bootable. Download it directly from kernel.org – the .zip file contains a Windows executable.
  • A program like Winimage (a shareware program, free 30-day trial, but I can’t think of anything else right now) that is able to open the usbboot.img disk image file and extract its content to your hard drive.
  • Of course you need a Slackware DVD. Either buy it at the Slackware Store (which helps keeing the distro alive) or download a DVD ISO image from any Slackware mirror. It is also possible to use a local copy of a Slackware package tree (either downloaded from a Slackware mirror or copied off a DVD). In the examples below I am using “slackware-13.0″ which is the 32-bit Slackware version 13.0. The instructions are not limited to this particular version of Slackware – you can do this for every recent version of Slackware, including the 64-bit release.
  • And finally, a USB stick with a (single) FAT32 partition. If it has 40 MB of  free space, you can use this stick as a bootable Slackware installer but still need the DVD or a set of CDROMs for the actual packages. If the stick has 2 GB of available free space, you will be able to copy all Slackware packages to the stick as well. The resulting bootable USB stick will be all you need in order to install Slackware. Ideal for netbooks that do not have a DVD drive!

Preparations:

First things first:

  1. Insert the Slackware DVD or make sure you have a copy of a Slackware tree somewhere on your local drive (more specifically: everything on the Slackware DVD with the exception of the source and slackbook directories will be required). In the examples below I will assume that the top of the Slackware tree is “D:\slackware-13.0\“. For other releases of Slackware or for the 64-bit version of Slackware the pathnames will be a bit different of course, but the same procedure applies.
  2. Insert the USB stick, make sure it gets assigned a drive letter. In the examples below I assume that the drive letter for the USB stick is “U:
  3. Now, you have to decide what to do with your stick. This depends on how much data it can contain (less than 2GB, or more than 2GB). See below, there is a set of instructions for both cases.

If you have (much) less than 2 GB available on the stick, we can transform the stick into a bootable Slackware setup disk.

NOTE: the following procedure will erase all existing data on the USB stick, so be careful and check what’s on it before you proceed.

  1. Install the Windows version of dd (see above) onto your Windows computer.
  2. Open a DOS box (i.e. get a command prompt) by running
    cmd.exe
  3. Run the following command at the prompt:
    dd if=d:\usb-and-pxe-installers\usbboot.img of=\\.\u:
  4. That’s it! You have created a bootable Slackware setup USB stick

If you have 2 GB or more available on the stick, we will be creating a full “USB equivalent” to a Slackware DVD:

NOTE: The following procedure is non-destructive; meaning that no files on the stick will have to be deleted.

  1. Install Winimage and the Windows version of syslinux (see above) onto your Windows computer.
  2. Create a directory “U:\boot\syslinux\” on the USB stick
  3. Use Winimage to extract the content of the image file “D:\usb-and-pxe-installers\usbboot.img” to the newly created directory “U:\boot\syslinux\” on the stick
  4. Remove the file “U:\boot\syslinux\ldlinux.sys
  5. Open a DOS box (i.e. get a command prompt) by running
    cmd.exe
    On Vista at least, you have to run cmd.exe as Administrator to avoid the “Accessing physical drive: access denied” message when running the syslinux command in the next step.
  6. Run the following command at the prompt to make the stick bootable (you will notice the directory /boot/syslinux in that command which is the directory we just populated):
    syslinux.exe -m -a -d /boot/syslinux u:
  7. Using Windows Explorer, give the U: drive the label “USBSLACKINS
  8. Copy the whole Slackware tree “D:\slackware-13.0” to the root of the USB stick, “U:\“. Exclude the slackbook, source and usb-and-pxe-installers directories while copying if you have just about 2 GB free. If you have a 4 GB stick you will find that everything will fit nicely. Using a Windows Explorer for this is probably easiest. As the end result you should have a “U:\slackware-13.0” directory on the stick with (among others) a file “PACKAGES.TXT” and a directory “slackware” below that.

Booting the USB stick and installing Slackware:

When booting this USB installer (the version containing the Slackware packages), you have to mount the USB partition before starting “setup” because you can access your packages only after mounting it. You cannot use the directory “/mnt” to mount this partition because the Slackware installer uses “/mnt” already. After the booting has finished and it delivers you to a command-prompt, you create a new directory in the installer, for instance “/usbinstall“:

mkdir /usbinstall

After you have created this mount point, you have to find out the name of your partition (you can run “fdisk -l” or “blkid” to find out) and then use the following mount command to preserve upper case filenames:

mount -t vfat -o ro,shortname=mixed $(/sbin/blkid -t LABEL=USBSLACKINS | cut -f1 -d:) /usbinstall

The “shortname” option used in that mount command is required, and Slackware installation will fail if you forget it.

If you labeled the stick’s partition “USBSLACKINS” in step 7 above, then you can use the following command instead of the previous mount command. It will find the correct partition automatically (note that what follows is a single command line !):

mount -t vfat -o ro,shortname=mixed $(/sbin/blkid -t LABEL=USBSLACKINS | cut -f1 -d:) /usbinstall

Then afterwards, when it is time to specify the package SOURCE directory, you type:

/usbinstall/slackware-13.0/slackware

The rest of the installation will proceed as usual. Give me feedback in the comment section below if you encounter any problems.

Good luck! I hope this small tutorial will be able to snatch you away from the Dark Side ;-)

Eric

Comments

Comment from Mich
Time December 19, 2009 at 14:30

Hi Eric,

I was looking for blogs on beginner’s slackware installation and landed on your blog.

I’ve problem concentrating and reading long articles/books, appreciate if you can point me to a source (or your even your blogpost)

Thanks in advance.

Comment from alienbob
Time December 19, 2009 at 19:56

If you have problems with reading & understanding, perhaps watching a video of a Slackware installation will give you some degree of confidence.
For instance, look at this Slackware 12.0 installation video on Youtube: http://www.youtube.com/watch?v=vlOoU3SZLcE

Also, the Slackware Book is written so that it is easy to follow: http://slackbook.org/html/installation.html

Cheers, Eric

Comment from Mich
Time December 20, 2009 at 12:29

Just watched the video and believe it will install KDE (maybe the complete KDE?).

Preferred to install a light/basic system and then slowly add apps as and when required.

Thanks anyway.

Comment from alienbob
Time December 21, 2009 at 11:06

I assume you will opt for the “full installation” which is the easiest because it will not ask you what to install on individual packages. As part of this “full” installation, there is a “select package sets” dialog which allows you to make a decision on what you do not want to install. If you uncheck “KDE” there, then none of KDE will be installed.

You can always decide later (after you have installed Slackware and decide that you want to try KDE) to install KDE. The program “slackpkg” will help you with that.

Cheers, Eric

Comment from Dmitry
Time April 27, 2010 at 01:50

Hello Eric,

first of all I’d like to apologize for my poor English and to thank you for such a good guide!
Unfortunately I have a little problem with installation: I cannot mount my USB partition. The message I become sounds “mount point /usbinstall does not exist”. Could you please describe this last step more detailed: where exactly and when should I create this folder and then mount? Just after logging in as a root after booting?

Thanks.

Comment from alienbob
Time April 27, 2010 at 10:31

I thought I had written it clear enough that you have to create a directory after booting from the installer and before startign “setup”. Obviously you would have to create that directory before attempting the “mount” command which wants to use that new directory!

I will add the “mkdir /usbinstall” command to the article if that helps.

Eric

Comment from Dmitry
Time April 27, 2010 at 12:59

Sorry for my stupidity, your hint helped!
If you add there this “mkdir /usbinstall” command it could help such newbies as I, but it’s of course your choice.

Thank you.

Pingback from Alien Pastures » Slackware 13.1 is here
Time May 24, 2010 at 22:24

[...] If you want to know more about how to create a Slackware USB installer if your computer does not have a CD or DVD drive, read this older article of mine: http://alien.slackbook.org/blog/installing-slackware-using-usb-thumb-drive/ – or for the Windows users: http://alien.slackbook.org/blog/welcome-windows-user/ [...]

Comment from ebo
Time July 24, 2010 at 08:50

Great tutorial, works perfectly ! Thanks dude.

Pingback from Install Slackware from Pendrive: img file?
Time August 18, 2010 at 11:35

[...] Theres a good guide here [...]

Comment from doriska
Time August 28, 2010 at 21:40

Hello,
How to install this slackware for an amd K with up to 350 Mhz -old pc?

Write a comment





You need to enable javascript in order to use Simple CAPTCHA.
Security Code: