LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-17-2012, 11:03 PM   #1
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
how do I install slackware without any boot media


ok I have the ISO copied to /ext
I have a 30gig partition with a fresh ext4 filesystem a 4gig swap space
and a running slackware64.13.37 install to install from

now where do I find the install scripts
how do I tell them where to put the install
or do I just install all the packages with installpkg or pkgtool
and edit the configuration files by hand
 
Old 10-17-2012, 11:18 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,267
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
Hi Rob,

Maybe this thread will help: http://www.linuxquestions.org/questi...cd-dvd-918763/

Good signature BTW.
 
Old 10-17-2012, 11:23 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,267
Blog Entries: 24

Rep: Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195Reputation: 4195
I just re-read that thread to refresh my own memory, and you will find the answer in this post:

http://www.linuxquestions.org/questi...ml#post4551020

I never did figure out why setup would not complete, but this was an easy work-around for it.
 
Old 10-18-2012, 01:11 AM   #4
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Another way is to boot kernel+initrd containing installer with LILO (or other bootloader you use) and show them iso content as source.

1) Copy /isolinux/initrd.img and /kernels/huge.s/bzImage to /boot.
You can copy them from iso or download from any mirror, for ex. for Slackware64-14.0:
http://slackware.osuosl.org/slackwar...nux/initrd.img
http://slackware.osuosl.org/slackwar...huge.s/bzImage

To copy from iso mount it as loop device first:
a) get root, b) make mount point (or use existind, for ex. /mnt/cdrom), c) mount, and d) copy
Code:
$ su -
Password:
# mkdir /mnt/iso
# mount -o loop /ext/slackware64-14.0-install-dvd.iso /mnt/iso
# cp /mnt/iso/isolinux/initrd.img /mnt/iso/kernels/huge.s/bzImage /boot/
2) Configure LILO to boot Slackware installer
First we look into /isolinux/isolinux.cfg for parameters normally passed to kernel by isolinux on install media
http://slackware.osuosl.org/slackwar...x/isolinux.cfg or
less /mnt/iso/isolinux/initrd.img
Code:
label huge.s
  kernel /kernels/huge.s/bzImage
  append initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=huge.s
Now we instruct our LILO to boot installer as isolinux does. We add to /etc/lilo.conf something as
Code:
image = /boot/bzImage
  addappend = " load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=huge.s"
  initrd = /boot/initrd.img
  label = Setup
and run lilo as root
Code:
# lilo
...
Added Setup +
3) Reboot, select Setup at LILO screen to boot to Slackware installer.

4) Before running setup mount containing install iso partition and the iso itself (don't use /mnt or /var/log/mount as mountpoints!), for ex.
Code:
# mkdir /hd /iso
# mount /dev/sda2 /hd
# mount -o loop /hd/ext/slackware64-14.0-install-dvd.iso /iso
5) Start install as usual, on SOURCE MEDIA SELECTION step select Install from a premounted directory and type path to packages
/iso/slackware64

6) Continue as usual.

Good luck!

PS. If your iso image named as slackwar*-install-dvd.iso, you can
skip manual mounting step (4),
select Install from hard drive partition on step (5),
type partition with iso, for ex.
/dev/sda2
and type path to containing iso directory in next dialog, for ex.
/ext/
then agree with prompt to mount iso from that directory:
Code:
┌────────────────────────USE ISO IMAGE──────────────────────────┐
│                                                               │
│ An ISO image of Slackware's install DVD was found.            │
│ Do you want me to mount the ISO image and use this as the     │
│ package source?                                               │
│                                                               │
├───────────────────────────────────────────────────────────────┤
│                   < Yes >          < No  >                    │
└───────────────────────────────────────────────────────────────┘

Last edited by bormant; 10-18-2012 at 01:41 AM.
 
6 members found this post helpful.
Old 10-18-2012, 02:22 AM   #5
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
thanks
got it working I'm using slackware-14.00 right now
first I deleted kdei
mounted the partition then entered this command
installpkg -root /ext /ext2/slackware64/*/*.txz
then I edited /etc/fstab copied it to the new install
copyed the kernel from slack-14 to slack-13.37 edited /etc/lilo.conf ran lilo
rebooted
@bormant I did less work installing it than than you did replying to my question thanks anyway

Last edited by rob.rice; 10-18-2012 at 02:31 AM.
 
Old 10-18-2012, 04:02 AM   #6
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
And two words about
Quote:
Originally Posted by rob.rice View Post
where do I find the install scripts
in installed system... Run
Code:
# pkgtool
select Setup, mark scripts (as I can see without instal-kernel, make-bootdisk, liloconfig) and finish installation.
 
Old 10-18-2012, 04:07 AM   #7
bormant
Member
 
Registered: Jan 2008
Posts: 426

Rep: Reputation: 240Reputation: 240Reputation: 240
Quote:
Originally Posted by rob.rice View Post
installpkg -root /ext /ext2/slackware64/*/*.txz
Some critical packages still in .tgz and was skipped by *.txz mask. *.t?z was more suitable there.
installpkg -root /ext /ext2/slackware64/*/*.tgz
from 13.37 can help.

PS. Skipped packages are:
a/pkgtools-14.0-noarch-2.tgz
a/tar-1.26-x86_64-1.tgz
a/xz-5.0.4-x86_64-1.tgz
ap/slackpkg-2.82.0-noarch-8.tgz

Last edited by bormant; 10-18-2012 at 04:29 AM.
 
1 members found this post helpful.
Old 10-18-2012, 06:11 AM   #8
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
I keep a local mirror of slackware (rsync) and use the following in my lilo.conf
Code:
image=/local/mirrors/slackware64-14.0/kernels/huge.s/bzImage
  initrd=/local/mirrors/slackware64-14.0/isolinux/initrd.img
  append="rw printk.time=0 SLACK_KERNEL=huge.s"
  label=Install-14.0
That'll get you booted into the install environment. Then you mount the filesystem containing your mirror and use the "Install from already mounted directory" option in setup.

Last edited by GazL; 10-18-2012 at 06:12 AM.
 
Old 10-18-2012, 02:18 PM   #9
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
Quote:
Originally Posted by bormant View Post
Some critical packages still in .tgz and was skipped by *.txz mask. *.t?z was more suitable there.
installpkg -root /ext /ext2/slackware64/*/*.tgz
from 13.37 can help.

PS. Skipped packages are:
a/pkgtools-14.0-noarch-2.tgz
a/tar-1.26-x86_64-1.tgz
a/xz-5.0.4-x86_64-1.tgz
ap/slackpkg-2.82.0-noarch-8.tgz
well it looks like I'm gonna hav ta reboot 13.37 and redo
the commands to get those other packages

thanks

Last edited by rob.rice; 10-18-2012 at 02:20 PM.
 
Old 10-18-2012, 03:00 PM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
bormant:
I loved the recipe and posted an article here with those steps, and I cited my source.

I hope you don't mind.
 
1 members found this post helpful.
Old 10-18-2012, 04:41 PM   #11
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Original Poster
Rep: Reputation: 205Reputation: 205Reputation: 205
what I was looking for when I started this thread was the scripts that are written
to the initrd image mainly setup and it's slave scripts
hoping they would be in the slackware64.14.00 tree or installed on the system some place

the post was helpful just too late I'm running slackware-14 right now

this isn't windows there is no magic registry or machine only readable files that linux depends on (except /etc/ld.so.cache BUT that gets rebuilt on each boot up)
so the installation is mainly a matter of getting the packages installed to the partition and lilo and /etc/fstab setup to boot it
 
Old 10-18-2012, 05:21 PM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by bormant View Post
Another way is to boot kernel+initrd containing installer with LILO (or other bootloader you use) and show them iso content as source.
Hey bormant, don't you agree that this would be a valuable addition to http://docs.slackware.com/howtos:start ? Would you care to add it?

Quote:
PS. If your iso image named as slackwar*-install-dvd.iso, you can
skip manual mounting step (4),
select Install from hard drive partition on step (5),
type partition with iso, for ex.
/dev/sda2
and type path to containing iso directory in next dialog, for ex.
/ext/
then agree with prompt to mount iso from that directory:
Code:
┌────────────────────────USE ISO IMAGE──────────────────────────┐
│                                                               │
│ An ISO image of Slackware's install DVD was found.            │
│ Do you want me to mount the ISO image and use this as the     │
│ package source?                                               │
│                                                               │
├───────────────────────────────────────────────────────────────┤
│                   < Yes >          < No  >                    │
└───────────────────────────────────────────────────────────────┘
This too, is worth mentioning in a HOWTO. I added direct support for Slackware ISO images to the installer, a couple of Slackware releases back, but never added that feature to the official documentation.
Perhaps it is time to document this "easter egg" in our SlackDocs wiki.

Eric
 
1 members found this post helpful.
  


Reply



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
[SOLVED] Unable to boot install media. [user error] 273 Debian 13 03-18-2012 03:34 PM
Stuck CPU - on boot from install media Mark Pettit Slackware 2 05-31-2010 11:38 AM
Can I install Media Jukebox 12 with Ubuntu OS? Needs Windows Media Player Files. tlcmd Linux - Newbie 2 01-08-2010 03:29 PM
slackware usb install, select source media bet1840 Linux - Newbie 2 04-15-2007 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:48 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration