LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Archaeology: Installing old box without CD/DVD (https://www.linuxquestions.org/questions/slackware-14/archaeology-installing-old-box-without-cd-dvd-918763/)

astrogeek 12-15-2011 04:44 PM

Quote:

Originally Posted by colorpurple21859 (Post 4550866)
What directory are you mounting the partition that the packages are stored on? You can't use /mnt, that is what the installer uses. Need to create a new directory and mount the partition where the files are stored to the newly created directory before running setup. Also why are you using the huge kernel instead of the hugesmp kernel? That might be a problem too.

Answers to all are in my original post: /sda and tried huge and smp, thanks.

astrogeek 12-15-2011 04:47 PM

Quote:

Originally Posted by lleroy (Post 4550569)
I do this all the time:

mount whatever /mnt/dvdimage
cd /mnt/dvdimage/slackware/a

export ROOT=/mnt/hda1
./install-packages

Bingo! You win the prize! Thanks!

This of course leaves you to set up fstab, network params, lilo, etc... but is the shortest path around the problem!

Now why didn't I think of that...?

astrogeek 12-15-2011 05:23 PM

Working now!
 
Thanks to all who replied!

I never got the setup installer to complete, but thanks to lleroy I now have the system working!

The method was simple in the end:

First mount the target and source partitions (while booted to installer as before):

Code:

mkdir /hda5
mount /dev/hda5 /hda5

mkdir /sda
mount /dev/sda5 /sda

export ROOT=/hda5

cd sda/slackware/.../a/
install-packages

Repeat install-packages for desired package series...

This gives you the installed base, but lacks fstab, host and network params, etc...

You cannot simply chroot into the resulting tree and configure lilo because there are no /proc, /dev entries yet, so I added a stanza to the lilo.conf that I am using to boot the installer kernel - voila! I can configure native lilo later, install to boot partition and chain from the MBR. Easy.

I had to create an fstab from scratch, but since there are no CD/DVD drives and I initially installed everything to one partition this was easy:
Code:

/dev/hda5 / ext3 defaults 1 1
I then chrooted into the target and used passwd to set the root password and used netconfig to set up a few things. Grabbed a copy of my master hosts file from my network... rebooted to new install!

To make the story complete - I am using the box as a headless server so did not install KDE, X, and quite a few other things. I will clean up the other partitions that I used for the installer, remove the DVD tree, and add them to fstab for usable space. I will leave the gparted and Slackware installer boot options intact for future use, but they reside on a small partition that is otherwise unused.

Another box saved from the landfill, and a very valuable addition to my currently limited resources! Thanks to all, and a special thanks to Pat who has made it possible for me to turn lumps of lead to gold when needed!

Now I need to clear my stuff out of the kitchen before my wife strangles me with a piece of cat-5 cable... she has been very patient...


All times are GMT -5. The time now is 12:16 AM.