LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 02-09-2005, 05:03 PM   #1
Samk
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Rep: Reputation: 1
Installing from pre-mounted directory


Hello,

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?
 
Old 02-09-2005, 11:51 PM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
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.

Last edited by DaHammer; 02-09-2005 at 11:52 PM.
 
Old 02-11-2005, 06:44 AM   #3
wandrer2
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
Same problem, no solution

Dear all,

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.

Thanks in advance,

Stefan.

Last edited by wandrer2; 02-11-2005 at 07:16 AM.
 
Old 02-11-2005, 07:00 PM   #4
Samk
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Original Poster
Rep: Reputation: 1
Hello,

I finally got it to work. Here's how I did it:

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
 
1 members found this post helpful.
Old 02-13-2005, 11:42 AM   #5
wandrer2
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
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!

Stefan.

Last edited by wandrer2; 02-13-2005 at 11:44 AM.
 
Old 02-15-2005, 06:00 PM   #6
spudthepotato
LQ Newbie
 
Registered: Feb 2005
Location: Texas
Posts: 1

Rep: Reputation: 0
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?
 
Old 02-18-2005, 01:58 PM   #7
Samk
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Original Poster
Rep: Reputation: 1
spudthepotato,

I encountered a similar problem. Try using the "installpkg *.tgz" command as root instead.

-Samk
 
Old 03-13-2005, 06:40 PM   #8
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,594

Rep: Reputation: 142Reputation: 142
Revoked. Please ignore.

gargamel

Last edited by gargamel; 03-13-2005 at 06:42 PM.
 
Old 10-01-2005, 01:24 AM   #9
Absolute_P
LQ Newbie
 
Registered: Nov 2004
Location: Land of the penguine's or maybe south london
Distribution: Gentoo 2008.0 (2.6.24)on Laptop Gentoo 2008.0 (2.6.25)
Posts: 16

Rep: Reputation: 0
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
 
Old 10-01-2005, 05:00 AM   #10
Absolute_P
LQ Newbie
 
Registered: Nov 2004
Location: Land of the penguine's or maybe south london
Distribution: Gentoo 2008.0 (2.6.24)on Laptop Gentoo 2008.0 (2.6.25)
Posts: 16

Rep: Reputation: 0
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.
 
Old 10-01-2005, 05:02 AM   #11
Absolute_P
LQ Newbie
 
Registered: Nov 2004
Location: Land of the penguine's or maybe south london
Distribution: Gentoo 2008.0 (2.6.24)on Laptop Gentoo 2008.0 (2.6.25)
Posts: 16

Rep: Reputation: 0
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.
 
Old 03-18-2011, 12:07 PM   #12
SlowLearner
LQ Newbie
 
Registered: Dec 2002
Location: Florida
Distribution: Slackware 13.1
Posts: 28
Blog Entries: 1

Rep: Reputation: 1
"go through set-up" means what exactly...

Quote:
Originally Posted by Samk View Post
Hello,

I finally got it to work. Here's how I did it:

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.

thanks-
SlowLearner
 
Old 03-18-2011, 05:40 PM   #13
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,194

Rep: Reputation: Disabled
Quote:
Originally Posted by SlowLearner View Post
When I give the install command from within the /INSTALL/slackware directory it asks for a destination
Did you try running the "setup" command? That's what it means when you read "go through setup".

Perhaps a good thing to do at this point, is to read http://slackbook.org/html/installation-setup.html

Eric
 
Old 03-19-2011, 08:06 AM   #14
SlowLearner
LQ Newbie
 
Registered: Dec 2002
Location: Florida
Distribution: Slackware 13.1
Posts: 28
Blog Entries: 1

Rep: Reputation: 1
Unhappy Setup: command not found

Quote:
Did you try running the "setup" command?
Yes. Will detail further below..

Quote:
That's what it means when you read "go through setup".
Oddly enough this was actually a very informative comment for me so, THANK YOU, Eric.

Quote:
Perhaps a good thing to do at this point, is to read http://slackbook.org/html/installation-setup.html
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.

I have configured a usb boot which contrary to Intel's own documentation does not boot.

Now it appears I have managed to get the contents of slackware 13.1 disc 1-3 ON to my hard partitioned hardrive but not "installed"

Any further assistance offered would be greatly appreciated.
 
Old 03-19-2011, 09:31 AM   #15
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,194

Rep: Reputation: Disabled
Quote:
Originally Posted by SlowLearner View Post
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.

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/

Eric

Last edited by Alien Bob; 03-19-2011 at 09:34 AM.
 
1 members found this post helpful.
  


Reply


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
Bash-Check If FS is Already Mounted On Directory fortezza Programming 15 04-27-2013 07:06 PM
chgrp doesn't work on mounted directory wycolorado Linux - Newbie 1 01-05-2005 10:18 PM
many hdds mounted on 1 directory kabitak Linux - Networking 2 11-18-2004 04:03 AM
Installing Linux from a Linux Pre-Mounted Partition dsuratman Linux - Newbie 0 07-19-2004 06:13 PM
can i have a few partitions mounted in one directory ? baronlynx Linux - Newbie 1 02-27-2004 03:46 AM


All times are GMT -5. The time now is 08:59 AM.

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