Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Slackware - Installation This forum is for the discussion of installation issues with Slackware.


  Search this Thread
Old 05-18-2011, 10:28 PM   #1
LQ Newbie
Registered: Mar 2011
Location: NJ, USA
Distribution: Ubuntu, Arch Linux, Debian Sid, Slackware64-current, Gentoo
Posts: 26

Rep: Reputation: 12
HOWTO: Net-install Slackware(-current) as a dual-boot from within an exisiting Linux

Hi all,

This is the second time (the first was the 32-bit version, this time it was a replacement of that by 64-bit) I have succeeded in net-installing Slackware-current from inside another GNU/Linux distribution as a dual boot (well, actually a quintuple boot in my case), and I would like to share a consolidated version of that here, since no one place had all the information I used to that end. The ideas here stem from the following thread:

with thanks of course to Alien Bob and slac-in-the-box

The goal here is a little different from there, where the objective was to install Slackware inside a chroot. In fact, for a dual boot option, I would go so far as to recommend this method always over the traditional method - it is less hassle than with burning disks or writing to a USB drive. EDIT: Also, for those of us who are lazy and blessed with a broadcom-wifi card, this is the only other alternative to Alien Bob's mini-iso.

I welcome any suggestions for improvements/enhancements.

I shall use Ubuntu/Debian as the host example (although this should, in principle, work for any), with Slackware-current as the target. Note that this requires the installation of Slackware's pkgtools inside Ubuntu/Debian, therefore I suspect that Arch Linux would not be a good place to do this because both Arch and Slackware share the 'makepkg' command, and Slackware's version may overwrite it. That being said, I see no reason why it cannot be overwritten and re-overwritten again.

The target partition was /dev/sda8. I shall be using the ext4 filesystem, and I have set up the system to share swap space with all the other distros. Also, as there need be only one grub on the system, I have not tried to create a separate boot partition.

Ergo, we begin thus:



Prepare the target partition:

$ mkfs.ext4 /dev/sda8
Mount it at the desired location
$ sudo mount /dev/sda8 /mnt
Grab hold of the pkgtools*.tgz package from a Slackware mirror, under the 'a' directory.

Convert this now to a .deb package, through the use of 'alien' (As of this writing, the latest release version of Slackware is 13.37):
$ sudo alien -i pkgtools-13.37-noarch-9.tgz
This command creates as .deb package as well as installs it.

Now we need to obtain a local slackware mirror. One can in principle write a script to retrieve packages while installing them, but it amounts to the same thing. Hence, in the Downloads folder, or any other folder, perform:
To create the entire mirror:

$ wget -m
with the `-m' option implying that we are creating a local mirror of the tree we have chosen.
Change to the directory with the tree (it would be convenient to cut and paste the lowermost directory `slackware64' into the current folder directly to avoid dealing with a huge depth).

It is usually more practical to just download each individual series one wants to install - for instance, kde and kdei may not be required.
The series I myself use to set up a fully functional system are:
a, ap, d, f, k, l, n, tcl, x, xap
and the downloaded packages may be further fine-tuned for a customized system, eg., remove the X input/video drivers that the system does not need.

$ mkdir slackware64
$ cd slakware 64
$ mkdir {a,ap,d,f,k,l,n,tcl,x,xap}
$ cd a
$ wget -r -np -nd
$ cd ../ap
$ wget -r -np -nd
and so on for each series.
The good thing about this also is that one may download two or more series in parallel from different mirrors, speeding up the retrieval process.

Then, commence the installation from the `slackware64' directory:
$ cd ..
$ sudo installpkg --root /mnt {a,ap,d,f,k,l,n,tcl,x,xap}/*.t?z

Now that the system has been installed, we may chroot to it:

$ sudo mount -t proc proc /mnt/proc
$ sudo mount -t sysfs sys /mnt/sys
$ sudo mount -o bind /dev /mnt/dev
and for network access:

$ sudo cp -L /etc/resolv.conf /mnt/etc
$ sudo chroot /mnt /bin/bash
Make system libraries available:

# ldconfig
The font cache may be updated as (if one wants to start X):

# fc-cache
Set the root password:

# passwd
Add a user for everyday use:
# adduser
and follow the prompts.

Add the user to the /etc/sudoers file:
# groupadd sudo
# usermod -a -G sudo <user>
# nano -w /etc/sudoers
and uncomment the line
%sudo ALL=(ALL) ALL
Change the hostname:

# nano -w /etc/HOSTNAME
Add the hostname alias to the line in /etc/hosts

Create fstab:

# nano -w /etc/fstab
A good start may be by copying over the host system's fstab and editing it accordingly.
Make sure that all the mount points defined therein are created on the system.

Select a slackware mirror:

# nano -w /etc/slackpkg/mirrors
The best option is to usually select a dynamic mirror, which keeps fetching packages/updates at top speed, eg.:

Update the slackpkg tree:

# slackpkg update
OPTIONAL: Install other tools from /extra, like jdk. `emacs' may also now be installed.

I usually like wicd over other interfaces, particularly because of its curses interface options, which I can use even from a TTY.

While inside the chroot, install wicd from the Slackware extras repository.

# slackpkg install wicd
Add the following to /etc/rc.d/rc.local:
if [ -x /etc/rc.d/rc.wicd ]; then
/etc/rc.d/rc.wicd start
This allows wicd to start at boot.

Proprietary drivers like the broadcom-sta driver may be installed after reboot.

Do not forget to run:

$ sudo update-grub
on the host system - as there is no need for more than one bootloader on the system, there is no need for grub/lilo to be installed in Slackware.

Setting up X may be perfomed on the first boot of the OS, by running:

# xorgsetup

The first boot actually resulted in kernel panic, with an error:
not syncing: VFS: unable to mount root FS on unknown-block
This meant that the requred filesystem support was not present in the kernel, and a regeneration of initrd.gz was called for.
Therefore, I reverted back to the chroot and executed:

# mkinitrd -c -k <kernel-version> -m ext4 -f ext4 -r /dev/sda8
and all was well!

Note that `uname -r` will not work in a chrooted environment.
The kernel version may be found by looking at /lib/modules/

Last edited by manzdagratiano; 05-26-2011 at 12:50 PM. Reason: Edited post layout for readability.
Old 05-23-2011, 12:53 PM   #2
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,588
Blog Entries: 25

Rep: Reputation: 1972Reputation: 1972Reputation: 1972Reputation: 1972Reputation: 1972Reputation: 1972Reputation: 1972Reputation: 1972Reputation: 1972Reputation: 1972Reputation: 1972

Why not submit this to Applications / GUI / Multimedia.

Unique install method but Slackware does have several install options for a new user. My one criticism is the format/layout of the post. Get rid of the '#' used to delineate, possibly use the quote for each sub-section therefore the post will be cleaner thus easier to read through;

sample section one
inside section1
comments 1
inside section one
comments 2
some information

sample section two
inside section1
comments 2
inside section 2
comments 3
Some Information

end of sample

Your text will have scroll bars within each section which will depend on the growth within.
Old 05-26-2011, 12:16 PM   #3
LQ Newbie
Registered: Mar 2011
Location: NJ, USA
Distribution: Ubuntu, Arch Linux, Debian Sid, Slackware64-current, Gentoo
Posts: 26

Original Poster
Rep: Reputation: 12
Thank you very much for your comments! I will edit the first post accordingly!

EDIT: Edited, and also submitted to Applications_GUI_Multimedia for approval (I am still finding my way around the forum ). Thanks again!

Last edited by manzdagratiano; 05-26-2011 at 12:54 PM.
1 members found this post helpful.
Old 06-01-2012, 10:49 AM   #4
LQ Addict
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,158

Rep: Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661Reputation: 1661
I thought I'd replied to this already but it seems not.
Just wanted to say a big thank you for this guide, it worked perfectly for installing Slackware 13.37 from a running Debian system and saved me lots of headaches.
I've bookmarked this page, but I wonder if it deserves some kind of sticky status? Hopefully my post will bump it for a little while anyhow.
Thanks again


chroot, dual boot, install, slackware -current

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What does a Win7 user need to know before installing dual-boot Slackware 13? ZXDunny Linux - Newbie 27 05-31-2010 06:07 AM
Installing dual Boot 98/Linux - WONT 'LILO' Dual Boot !? L1nux3d Linux - Laptop and Netbook 15 02-11-2006 06:36 AM
Howto: Existing Win98 + Linux, dual boot using GRUB TheSwine Linux - Newbie 3 01-03-2004 11:06 AM
howto view linux hdd from windows? dual-boot aheirich Linux - Newbie 1 11-16-2003 11:02 PM
Redhat / Slackware Dual boot... howto?? patrik1982 Linux - Newbie 5 10-18-2003 01:29 PM

All times are GMT -5. The time now is 12:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration