Main menu:

Sponsoring

Please consider a small donation:

 

Also appreciated: support me by clicking the ads (costs nothing) :-)

 

Or you can donate bitcoin:

 

Thanks to TekLinks in Birmingham, AL, for providing colocation and bandwidth.

Page Rank

Fame

FOSS Force Best Blog--2013 Award

Recent posts

Recent comments

About this blog

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

Search

My Favourites

Slackware

Calendar

April 2014
M T W T F S S
« Mar    
 123456
78910111213
14151617181920
21222324252627
282930  

RSS Alien's Slackware packages

RSS Alien's unofficial KDE Slackware packages

RSS Alien's multilib packages

Tag cloud

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), or IZarc (might be a good free alternative to Winimage) 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
Posted: 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
Posted: 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
Posted: 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
Posted: 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
Posted: 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
Posted: 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
Posted: 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
Posted: 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
Posted: July 24, 2010 at 08:50

Great tutorial, works perfectly ! Thanks dude.

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

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

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

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

Comment from Luca
Posted: October 1, 2010 at 12:29

GREAT Tutorial! It worked like a charm at first try! This is the only well-written simple and straight forward how-to available on the www!
Congratulations and thank you very much!
Luca from Italy

Pingback from slackware boot from USB problems
Posted: October 4, 2010 at 00:50

[...] I wanted to use a USB drive to boot slackware because I do not have a blank CD or DVD. So I went to http://alien.slackbook.org/blog/welcome-windows-user/ first, but I couldn't get dd and syslinux to install on windows 7. So then I brought out my trusty [...]

Pingback from Installing Slackware 13.1 on ASUS Eee PC with USB Stick from Win7
Posted: November 17, 2010 at 22:04

[...] Linux CLI code and programs.. ? You apparently did not find the Windows-oriented instructions: http://alien.slackbook.org/blog/welcome-windows-user/ [...]

Comment from Brian Lawrence
Posted: November 17, 2010 at 22:13

IZarc might be a good free alternative to Winimage.
http://www.izarc.org/

Comment from alienbob
Posted: November 17, 2010 at 23:10

@Brian,
Nice! That would make this tutorial use only completely free tools.

Cheers, Eric

Comment from Emrik
Posted: November 20, 2010 at 12:19

Hi there Eric,
just wanted to thank you for this excellent guide! I am (like most others) a newbie to linux, but because of all the good and usable features in slackware OS i’ll give it a serious try :) I’m tired of microsoft at this point.. regards,
E.

Comment from Alvin Chey
Posted: December 10, 2010 at 09:16

I have successfully extracted the files from usbboot.img using 7zip archiver (www.7-zip.org).

I failed to extract the file using IZArc.

Comment from Matthew
Posted: January 11, 2011 at 11:48

Thanks for this great little tutorial :)

I noticed your examples for mounting /usbinstall are both the same (“mount -t vfat -o ro,shortname=mixed $(/sbin/blkid -t LABEL=USBSLACKINS | cut -f1 -d:) /usbinstall”). I assume the first one was meant to specify the device literally – just confused me for a second, so thought I should point it out :)

Thanks again

Pingback from Installing From USB Question??
Posted: March 6, 2011 at 17:03

[...] article http://alien.slackbook.org/blog/welcome-windows-user/ explains how to create a USB bootable installer for Slackware if you are running Windows. [...]

Pingback from Slackware Installation FAQ #1 confounding "install from the ISO9660 image if no CD"
Posted: March 16, 2011 at 11:12

[...] Slackware installer environment. This can done by USB if your system supports booting from USB (see http://alien.slackbook.org/blog/welcome-windows-user/ ) or via a network boot if you make an appropriately setup PXE server available. Last edited [...]

Pingback from Installing from pre-mounted directory
Posted: March 19, 2011 at 15:31

[...] hints. And if you want to create a more fully-fledged USB based installer, you can also read http://alien.slackbook.org/blog/welcome-windows-user/ (instructions for Windows users) or http://alien.slackbook.org/blog/inst…b-thumb-drive/ [...]

Comment from Chandy
Posted: March 22, 2011 at 05:26

Hello alienbob,i have 1 problem at end:
/usbinstall/slackware-13.0/slackware: permission denied :(
Help me please,thanks :)

Comment from Mark
Posted: January 27, 2012 at 23:51

AlienBob,

I have read and did exactly what it says in your tutorial but it won’t boot into the thumb drive. Can you please help. After I set the USBSLACKINS label on the drive i restarted and it won’t boot into setup. I ran the command “syslinux -m -a -d /boot/syslinux d: (d: is my thumb drive) and i got the prompt so I assumed it went through, reboot and it won’t work. Thanks in advance.

Mark

Comment from Mark
Posted: January 28, 2012 at 09:56

AlienBob,

I have tried to installed Slackware using this tutorial and I have not yet succeeded….the point where i get stuck is the following I have plenty of space in my thumb drive and I have gone through the steps in Option 2 several times. I get stuck in step #6 where i run the following command “syslinux.exe -m -a -d /boot/syslinux d: (d: being my thumb drive) I get the following error—> “an application has attempted to directly access the harddisk, which is not supported. This may cause the application to function incorrectly. Choose close to terminate the application.

Note: When I choose to “Ignore” —->i get this syslinux: sector read error

Comment from alienbob
Posted: January 28, 2012 at 12:04

@Mark

It looks like syslinux.exe was not able to make your USB stick bootable. Did you follow the advice in the tutorial to run the command with administrator rights by running it in a command window (cmd.exe) which has been started as Admiistrator (right-click on the Command Prompt and select “Run as Administrator”)?

Without administrative rights, you will get the errors like “an application has attempted to directly access the harddisk”.

Eric

Comment from Mark
Posted: January 28, 2012 at 22:11

AlienBob,

THanks for your reply…I am running cmd.exe as the admin and it’s still giving me the same error message.

an application has attempted to directly access the harddisk, which is not supported. This may cause the application to function incorrectly. Choose close to terminate the application.

Note: When I choose to “Ignore” —->i get this syslinux: sector read error

Is there an alternate program out there besides syslinux? or i have to change some settings around? Thanks…

Marco

Comment from Mark
Posted: January 29, 2012 at 20:04

AlienBob,

I was able to boot from my thumb drive!!! I’m working on setting up my hard drive partitions…I encountered problems using syslinux to make the thumb drive bootable and so I didn’t give up and searched for other means to make this work. I came across this software: UNetbootin and you can find it here

unetbootin.sourceforge.net/

for those that perhaps are having problems in making a thumb drive bootable use this alternative and see if it works; it worked for me so hopefully it would be of help. Cheers!

Mark

Comment from Mark
Posted: March 2, 2012 at 00:43

i installed Slack 13.37 onto my eeePC 1005HAB. the installation went well :) but when i reached the point where I had to install LILO into the MBR thats when i encountered problems. first the system reported that my video card didnt support VESA and that my partition table had a problem. This is what one of the logs says: *warning: LBA32 addressing assumed reading boot sector from /dev/sda1
*warning: unable to determine video adapter in use in the present system.
*using BITMAP secondary loader calling map-insert-data
mapping bitmap file /boot/salix.bmp

FATAL:open /boot/salix.bmp:NO such file or directory

All the packages installed flawlessly but hitting a brick wall when I reach the LILO installation…well actually im not going nowhere when i boot

Comment from alienbob
Posted: March 2, 2012 at 12:48

Hi Mark

Please take any Salix related issues to the Salix forum. I work on Slackware, not on Salix.

Eric

Comment from Mark
Posted: March 4, 2012 at 20:12

Eric,

I mentioned in my post that I installed SLACKWARE 13.37 on my system. I am NOT runnning SALIX and I am not planning to use it…I installed Slackware and cannot access because of a LILO issue/bug? thanks for your time

Comment from alienbob
Posted: March 5, 2012 at 01:17

Wee Mark, “FATAL:open /boot/salix.bmp:NO such file or directory” certainly is not an error message from Slackware.

Eric

Comment from Mark
Posted: March 6, 2012 at 08:23

Wee Eric, the DVD iso i downloaded had a bug! I had to erase the system I had install and downloaded individual Slackware CD iso’s…i installed Slackware using VMware workstation on another laptop I have…I had to make sure because this previous installation gave me a headache…anyway, the installation within VMware was a smooth ride…the only problem was a faulty iso…thanks anyway

Mark

Mark

Comment from alienbob
Posted: March 7, 2012 at 11:40

Hi Mark

Can you tell me where you downloaded that ISO? It looks like you downloaded a Salix ISO or a custom ISO to which someone added Salix components. In any case, you did not use an official Slackware ISO.

Eric

Comment from Mark
Posted: March 9, 2012 at 23:11

Eric,

I downloaded the “buggy” DVD iso from distrowatch.com You were right, that iso had Salix components, I had to clean up my whole harddrive, partion it and reinstall Slackware….it works ok now. I still have to play around with the display settings cause X won’t work fine in my eeePC 1005Hab netbook. Anyway, I have installed Arch and Slackware on it. I stoked cause I really want to learn Linux and finally found two good distros! Oh, i almost forgot to mention, i downloaded the ‘official’ dvd iso from the slackware site so, I would suggest to those who want to slack not to download iso images from distrowatch just in case they might encounter a problem similar to mine. Go to the slackware.com/getslack/

Comment from Navigateur
Posted: June 6, 2012 at 18:12

Hi Eric, thanks for this blog post.

However when I type “setup” it says “There don’t seem to be any partitions on this machine of type Linux” – then when I go back and do “cfdisk”, it only allows me to see the USB drive, no hard drive.

How do I get it to look at and install to my hard drive, instead of just on the USB stick? Is what I described unexpected behaviour?

Comment from alienbob
Posted: June 6, 2012 at 22:20

Hi Navigateur

Does “fdisk -l” (run it instead of “setup”) show any disk or partition that is not the USB stick?

Eric

Comment from Navigateur
Posted: June 7, 2012 at 17:12

Dear Eric,

Thanks for your reply.

Yes!!! /dev/cciss/c0d0p1. Then I simply did
cfdisk /dev/cciss/c0d0p1 instead of just “cfdisk” then the installation went well.

However, now I have a different problem. It’s not booting even though I flagged “bootable” to yes on the linux partition, size 90GB, which I set to target, ext4. (I also created another partition of type “Linux swap”, size 2GB, not bootable, which I chose as the swap space). It’s stuck at “Attempting to Boot from Hard Drive (C:)”. There are no other disks in any of the drives. The installation seemed to go perfectly. I cleared and repeated the partitions and installed again from scratch and got the same problem.

What must I have failed to do properly?

Comment from alienbob
Posted: June 7, 2012 at 18:35

Hi Navigateur

Linux does not care about the “bootable” flag of a partition. LILO will figure it out. However¸ “Attempting to Boot from Hard Drive (C:)” is not a message I recognize from any Linux bootloader. How did you install Slackware? Using another (perhaps Windows) bootloader? That is not going to work magically – You can get an idea of what is involved in threads like this one: http://www.linuxquestions.org/questions/slackware-14/dual-booting-win7-starter-slackware-13-1-a-845373/

Eric

Comment from Navigateur
Posted: June 7, 2012 at 20:21

Hi Eric, thanks again..
There’s no dual-booting here, just a plain old server computer.
I’m following your instructions exactly. My hard disk is a CCISS (HP Smart Array Raid controller) and it appears Slackware vs CCISS is a known issue – however I’m following these instructions http://www.xunilarium.com/2009/10/solve-boot-problem-on-slackware-with.html . Could you please help me as there is no lilo! (it says “lilo: not found” when I try to type the lilo line). The installer (slackware64-13.37) doesn’t take me to any “lilo” page to install lilo, and typing “liloconfig” also says “liliconfig: not found”. Should it automatically install lilo? How do I reach a stage where I can carry out the instructions on that page?

Comment from Navigateur
Posted: June 7, 2012 at 20:41

…(continued)… Just to be clear, I’m installing to a blank server with nothing on it…

Comment from alienbob
Posted: June 7, 2012 at 20:46

Navigateur,

Your issues are with the installation of Slackware, not with the creation of a bootable installer…
If lilo and liloconfig can not be found after installation then either you did not do a full installation of Slackware (and skipped the lilo package) or you are using a corrupted installation source which is missing at least the lilo package.
The installer itself does not contain lilo. It installs lilo from the package source you point it to. The liloconfig script is part of the lilo package. If that package has not been installed, then the liloconfig steps will not appear.

Eric

Comment from Navigateur
Posted: June 8, 2012 at 16:52

Hi Eric,
Thanks for your observations.
It wasn’t just lilo but the entire slackware that I wasn’t installing. Even though it said “Installation is completed”, I had chosen a folder which didn’t contain any packages at all.
After doing the install I followed the last bit of the instructions here http://www.megalinux.net/installing-slackware-10-on-a-dl380/ , changing c0d0p2 to c0d0p1 (the main partition in my case) and it seems to be booting fine now.
What are the best forums for Slackware help in case I run into more problems?
Thanks again, N.

Comment from Sam
Posted: July 28, 2012 at 16:43

“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.”

Yes, listing every necessary command in a sequential tutorial is pretty much required. Indeed, listing every step in this way is what distinguishes a tutorial from a discussion. What seems obvious to you as an expert is not necessarily obvious to everyone else.

Don’t get me wrong–I do appreciate your efforts with Slackware, but I have read a lot of what you have written and have found this sort of ambiguity to be a bit of a trend. And frankly, this vagueness surrounding key information makes your guides a great resource for people who already know what they are doing, but next to useless for people who do not and are trying to learn.

No offense. I just wish you could be a bit more aware that not everyone already understands Linux. That’s why some of us are reading about it.

Pingback from Slackware 14.0 Install from 16GB USB
Posted: October 3, 2012 at 10:02

[...] errors repeat, that's it. I want to do this through Windows…. You can follow this guide: http://alien.slackbook.org/blog/welcome-windows-user/ [...]

Comment from Jewstin
Posted: January 13, 2013 at 13:41

I’ve used Slackware for a good long time, but this was most.helpful since I’ve never installed from a USB stick.

I did have a small hiccup. For some reason the packages wouldn’t install from the flash drive. I added a small partition to my disk drive and copied the slackware file tree to that partition. From there everything installed just fine

Comment from I1
Posted: February 15, 2013 at 22:07

somehow process not working with slack 14

Comment from alienbob
Posted: February 16, 2013 at 00:23

Perhaps if you explain more about your issues (error messages?) I could think of a reply. Just “not working” is not something I can comment on.

Eric

Comment from Robert Corkum
Posted: March 1, 2013 at 14:52

worked perfectly as usually anything by this author. installed slackware 14 64 bit.

Pingback from Successfully installed Slackware64 14.0 onto Dell PowerEdge T420
Posted: July 19, 2013 at 17:13

[...] [...]

Pingback from my first slackware experience not going so well
Posted: August 23, 2013 at 00:38

[…] you mentioned that you're trying this from a Windows computer, Alien Bob's USB install guide for Windows users should get a proper […]

Write a comment