Slackware - InstallationThis forum is for the discussion of installation issues with Slackware.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to dual boot Slackware with Windows XP, and I don't have a CD burner with which to burn the ISOs. I followed the suggestion on the Slackware.org Installation FAQ:
Code:
Q: How do I install from the ISO9660 image if I don't have a CD-R or CD-RW drive (or "I have no way to burn this image that I just downloaded.")?
With loopback of course! You can mount the ISO9660 image on the kernel loopback device from another filesystem.
For example, say you download the ISO9660 image under Windows. Boot the Slackware boot and root disks for your system. Assuming your Windows partition is /dev/hda1 and you downloaded the ISO9660 image to C:, issue these commands:
mkdir -p /dos
mount -t vfat /dev/hda1 /dos
cd /dos
mknod /dev/loop0 b 7 0
mkdir /INSTALL
mount -o loop /dos/install.iso /INSTALL
You can then tell the Slackware setup program to install from a premounted directory and pass it /INSTALL/slakware. This trick can also be used if you cannot make a valid CD with your burner.
Have fun!
The problem I encountered with intalling from a pre-mounted directory was that there are two ISO's which I need for the installation process. When mounting the first ISO to the kernel loopback and trying to go through setup, the setup gave a "installation complete" sign before I the packages were ever installed. Similar problems arose when I then mounted the second ISO to the loopback device. How can I get around this??? Is there any way to install slackware from loopback using two ISO's?
I haven't looked at the installer's setup scripts lately, but what you are doing "should" work. ie mount the first ISO and it should prompt you for the 2nd once it sees it's missing packages. This of course assumes you are selecting packages to be installed that aren't on the first ISO. However, if you exit the setup program during the installation then all bets are off, as it doesn't recover from where it was previously, or at least it use to not. So switch to a 2nd console (ie ALT+F2) to mount the 2nd ISO when prompted. You can switch back with ALT+F1. If it doesn't prompt you for the 2nd ISO, then you can mount both ISOes, each in a different directory, then in a 3rd directory build links to all the packages of each ISO. This way you have all the files in one directory, well links to them anyway, and you'd just point the installer to that directory. Here is a script that "should" work for building the combined ISO directory:
Code:
#!/bin/sh
REPDIR=/mnt/slackware # Directory where the ISOes will be combined
ISODIR1=/mnt/loop1 # Directory where 1st ISO is mounted
ISODIR2=/mnt/loop2 # Directory where 2nd ISO is mounted
build_links ()
{
for file in `find . | cut -c 3-`
do
if [ -d "$file" ]; then
mkdir -p $REPDIR/$file
else
ln -sf $1/$file $REPDIR/$file
fi
done
}
build_links $ISODIR1
build_links $ISODIR2
I have not tested it. It's some code I ripped out of a script I wrote for combining them into 1 ISO for building a DVD ISO. You'll need to make sure both ISOes are mounted, that $REPDIR exists, and edit it to suit your needs.
Something else you could do is simply extract the ISOes somewhere and use that.
I am having pretty much the same problem as the first writer in this thread. I have the 4 CDs that are Slackware 10.1 as ISO files on my harddisk /dev/hda6. Slackware is intended to go to /dev/hda8 (over 3 GB) with /dev/hda7 as swapdrive. The total disk size is about 40GB. Setup works fine, up to the point of selecting which packages to use. I select all (even KDEI, in case I have to type something in Dutch), and hit ENTER. Then I select the mode of selecting packages, and choose "menu" (but I have also tried "full"). After this the system waits for a while, it very quickly shows one or two lines at the bottom of the screen (too fast to read), and then it mentions "System configuration and installation is complete. You may EXIT setup and reboot your machine with ctrl-alt-delete."
The message console (Alt-F4) showed - at least all times I tried - "mount: wrong fs type, bad option, bad superblock on /dev/hda8, or too many mounted filesystems." No other messages are shown.
I have tried to install using
1) Loopback according to the standard FAQ (i.e. mkdir -p /dos && mount -t vfat /dev/hda6 && mkdir /INSTALL && mount -o loop /dos/slackware/slackware-10.1-iso/slackware-10.1-install-d1.iso /INSTALL )
2) Extract the ISOs into a folder on /dev/hda6 and pointing to that, either mounting the drive myself or asking setup to mount it for me. The last option gives more mount errors under ALT-F4.
I have kind of run out of options here. Perhaps somebody can help me further? I really want Linux and I really want it to be slackware (due to good experiences in the past - it's not my first install).
EDIT: after exiting setup, /dev/hda8 has been mounted correctly to /mnt. Also, it makes no difference whether I use ext2 or ReiserFS.
1.) After booting to the boot/root disks, (re)parition all slackware partitions as usual (just to erase any data that may have been installed from prior setup attempts, if applicable). If fdisk gives any errors, reboot.
2.) Mount the first slackware ISO on the kernel loopback device from another filesystem, as shown in question #2 of the installation FAQ on slackware.org, by issuing the commands:
Code:
mkdir -p /dos
mount -t vfat /dev/hda1 /dos # Or whichever partition the ISO is on
cd /dos
mknod /dev/loop0 b 7 0 # On bare.i, the kernel told me loopback was already there
mkdir /INSTALL
mount -o loop /dos/slackware-10.1-install-d1.iso /INSTALL # Or wherever the ISO is on /dos
Note that the partition you are mounting to /dos (/dev/hda1 in this example) needs to be a FAT filesystem if it is a Windows partition, not NTFS, which isn't supported by the kernel. (I used Partition Magic to convert my Windows NTFS filesystem to FAT32 for the installation).
3.) With the contents of the first ISO in /INSTALL, go through setup, and tell it to install from the pre-mounted directory '/INSTALL/slackare'. Although the GNOME, KDE, or KDEI won't show up in the software set list, the packages should install if the ISO is not corrupt.
4.) After setup, if you want packages from GNOME, KDE, KDEI, or data from the other CD's, 'umount /INSTALL', and mount the appropriate ISO to it using the method described above. For installing GNOME or KDE, simply 'cd' to the directory containing the packages, and run the command './install-packages' to install.
5.) Reboot (duh.... ).
Just make sure that the filesystem you're mounting the ISO from is FAT if it is Windows, and that you remember to 'umount' before another 'mount'. I still don't know why setup told me that my ISO was corrupt a few times when it tried to install packages when it was not corrupt, but it eventually worked after I re-partitioned and re-booted.
For me, loopback has not worked. I have now "solved" the problem by simply burning the ISOs anyway, and ran into no further problems. However, it is not the most satisfactory way of getting around this problem.
Now I need to get my Wlan card to work and I can switch permanently!
Samk, i can't thank you enough for that walk-through... i was having trouble getting a working install burned to cd due to some unknown problem, however i was able to install everything from the first cd without a single issue... my base system is up and running perfectly and i selected fluxbox as my default x windows system... My problem comes afterwards, i want to install kde or gnome (doesn't matter) but when i browse to the kde dir and use the ./install-packages command the blue package selection screen comes up with a list of default packages checked, it says press enter to install and so forth... but when i press enter i'm sent straight back to the bash prompt... what am i doing wrong?
i've been trying to follow but i cant convert my windows drive to fat32, Partition magic greyed out that choice the only option it gives me is to convert to a logical drive.
what partition magic did you use
and if im installing from a different drive instead of a different partition should i just change hda1 to hdb1
alright change of plan converting my windows drive aint happing so does anybody think this can work if i partition my hdd like this
hda1 /
hda2 swap
hda3 format into fat32 from slackware to place my 2 ISO's to pre-mount
so basicly if i partition my hard drive into 3 parts install slack in hd1 30GB make hd2 swap 1GB
and hda3 9 GB either w95 FAT32 or w95 FAT32 (LBA) and put my slackware 10.2 ISO's there to do the pre-mounted install.
and BTW what's the difference between w95 FAT32 and w95 FAT32 (LBA) I'm guessing that w95 stands for Windows 95 but as for the (LBA) thing I'm clueless I'm thinking i should format it in the first one.
oh yeah and if i format hda3 in FAT32 windows will see it right otherwise i wont be able to get my ISO's there.
[part 1]
O.k partitioned my hdd in slackware with cfdisk like i said above set hda3 to 0B with 1.9GB what was the point in giving it 9GB so wrote to table/disk but forgot slack only formats in 3 ways so i booted up windows and formated it from there drag and dropped the ISO's and thats as far as i've got as of now so post back in a few hopefully it will be a success story.
oh well time will tell
*
followed your instructions to a T and so far so good the first ISO is flying just waiting for the prompt for disk 2 even do i'm gonna be using Fluxbox which is on disk1 i believe still like to have everything.
O.k maybe i misunderstood no need for 2nd do that bit manually
[/part 3]
all done and dusted no probs as of yet i've config'd xorgconf
gfx/snd cards up and running just got to get up to date with a few files and tweak fluxbox to perfection
oh yeah edit my distro in my profile 10.0 to 10.2
---Slackware 4 life
Last edited by Absolute_P; 10-01-2005 at 06:45 AM.
1.) After booting to the boot/root disks, (re)parition all slackware partitions as usual (just to erase any data that may have been installed from prior setup attempts, if applicable). If fdisk gives any errors, reboot.
2.) Mount the first slackware ISO on the kernel loopback device from another filesystem, as shown in question #2 of the installation FAQ on slackware.org, by issuing the commands:
Code:
mkdir -p /dos
mount -t vfat /dev/hda1 /dos # Or whichever partition the ISO is on
cd /dos
mknod /dev/loop0 b 7 0 # On bare.i, the kernel told me loopback was already there
mkdir /INSTALL
mount -o loop /dos/slackware-10.1-install-d1.iso /INSTALL # Or wherever the ISO is on /dos
Note that the partition you are mounting to /dos (/dev/hda1 in this example) needs to be a FAT filesystem if it is a Windows partition, not NTFS, which isn't supported by the kernel. (I used Partition Magic to convert my Windows NTFS filesystem to FAT32 for the installation).
3.) With the contents of the first ISO in /INSTALL, go through setup, and tell it to install from the pre-mounted directory '/INSTALL/slackare'. Although the GNOME, KDE, or KDEI won't show up in the software set list, the packages should install if the ISO is not corrupt.
4.) After setup, if you want packages from GNOME, KDE, KDEI, or data from the other CD's, 'umount /INSTALL', and mount the appropriate ISO to it using the method described above. For installing GNOME or KDE, simply 'cd' to the directory containing the packages, and run the command './install-packages' to install.
5.) Reboot (duh.... ).
Just make sure that the filesystem you're mounting the ISO from is FAT if it is Windows, and that you remember to 'umount' before another 'mount'. I still don't know why setup told me that my ISO was corrupt a few times when it tried to install packages when it was not corrupt, but it eventually worked after I re-partitioned and re-booted.
-Samk
OK everything is great right until i get up to step 3.) I see the new files in the INSTALL/slackware directory but...
Quote:
go through setup, and tell it to install from the pre-mounted directory '/INSTALL/slackare'.
How do i DO this?? When I give the install command from within the /INSTALL/slackware directory it asks for a destination? I am attempting to install disk 1. This is my initial install on a clean hard drive. I have a swap, /home, /var, and / partitioned. Any help would be greatly appreciated.
omg reading. I have read and re-read and learned soooo much about linux since I began this little project 2 weeks ago. My first attempt to migrate to Linux via a boxed copy of RedHat 8.0 in 2002 ended in failure after investing about 120 man hours.
I have invested about 80 man hours so far in 2011 on this go round with Slackware 13.1 and yes, while I have learned a great deal READING the slackbook and rute and many great forum threads and man pages. A functional booting system would greatly increase my learning curve.
Quote:
Did you try running the "setup" command?
user@debian:~$ setup
bash: setup: command not found
user@debian:~$ sudo setup
sudo: setup: command not found
user@debian:~$ cd /
user@debian:/$ setup
bash: setup: command not found
user@debian:/$ sudo setup
sudo: setup: command not found
I am guessing that this has something to do with my less-than-orthodox method of install. I booted from a version 0.8.1 g-parted disc. Partitioned /,/home,/var and swap. Performed Samk's loop described here pulling iso files from USB and now have 307mb in /var, 502mb in /home and 307 mb in /root. But nothing in swap. Which i believe needs lilo, bzImage and initrd.img or something along those lines to boot.
I assume the setup command will do this but haven't figure this out just yet. While typing this post I discovered that G-parted provides a lightbulb "Info" icon on its desktop. Clicking this brings up a dialog box titled INFORMATIONS. - Select items from the list below:
List of Packages
Windows Information
Selecting the List of Packages option brings up a 2 column list with approximately 300 packages listed alphabetically along the left and the word install down the page in the second column. A few of the 300 packages listed include:
adduser
base-files
console-data
console-setup
grud-common
live-boot
live-boot-initramgs-tools
live-config
But NO:
Lilo or bzImage and initrd.img...
Makes me wonder if I am looking at info that will install g-parted onto my hard drive. Not at all my intention.
I have burned 8 copies of slackware-13.1-install-d1.iso with infra-recorder,power2go and roxio and every one of them concluded the burn some type of error code i never was able to intrupret and predictably, would not boot system.
omg reading. I have read and re-read and learned soooo much about linux since I began this little project 2 weeks ago.
Reading documentation is actually one of the fastest way to learn something ;-)
Actual hands-on experience is another sure path to knowledge, but somethimes you just have to read first to see why the things you try are not working the way you think they work.
Quote:
user@debian:~$ setup
bash: setup: command not found
user@debian:~$ sudo setup
sudo: setup: command not found
user@debian:~$ cd /
user@debian:/$ setup
bash: setup: command not found
user@debian:/$ sudo setup
sudo: setup: command not found
I am guessing that this has something to do with my less-than-orthodox method of install. I booted from a version 0.8.1 g-parted disc. Partitioned /,/home,/var and swap. Performed Samk's loop described here pulling iso files from USB and now have 307mb in /var, 502mb in /home and 307 mb in /root. But nothing in swap. Which i believe needs lilo, bzImage and initrd.img or something along those lines to boot.
I assume the setup command will do this but haven't figure this out just yet.
Installing Slackware usually involves booting from a Slackware install medium. That can be a DVD, or the first CDROM in the Slackware set, or a bootable USB thumbdrive. The "setup" program is part of the "Slackware installer" which is not part of the Slackware you install as packages... it is only present on the bootable medium.
The Slackware installer's "setup" program guides you through the steps of activating a swap device, formatting your partitions, selecting the packages to install, installing these packages and then configuring your system for first use.
You seem to be skipping all of that by trying to install Slackware from a debian system you booted into. That is making it hader to install Slackware, but not impossible.
What you absolutely need is to have the Slackware pkgtools installed on the computer you are running if you want to install Slackware on one or more empty partitions of your hard disk (or in a subdirectory of your filesystem if you never intend to actually boot into Slackware but use it in a "chroot").
This will not be easy if you are not running Slackware already.
So why not go the failsafe way and install Slackware by booting off a Slackware install medium? If you are having issues burning an ISO image to DVD or CDROM, you can always try to create a bootable USB thumbrive containing nothing else but the installer. You can then use the ISO image on the harddisk as the source where "setup" will take the installable packages from.
A USB image that you can copy to a USB thumb drive using "dd" (thereby overwriting all data on that USB stick) can be found in the "usb-and-pxe-installers" directory of Slackware. There you will also find a README_USB.TXT with helpful hints.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.