LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-03-2014, 08:49 AM   #1
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware
Posts: 49

Rep: Reputation: Disabled
Slack 14.1 USB install


Hi there

I have an XP laptop with Slackware 14.1 iso downloaded on it.
I have created a 500M bootable usb stick.
I have booted a Dell inspiron 1520 laptop with the USB stick, created the drives and am now up to select source media. This is where it goes wrong. I cannot FTP or telnet to my xp laptop. tftp does not seem to work. I cannot make head nor tail of NFS.

I thought I might be able to telnet or FTP into the new Dell laptop from my xp laptop to copy the linux files onto a drive there but access is denied in both directions.

I'm at the end of my knowledge and cannot get any further.

I know a CD or larger USB stick would work but I have neither.

Last edited by SAJM; 02-03-2014 at 08:50 AM.
 
Old 02-03-2014, 09:22 AM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,246

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Hi SAJM, welcome to LQ.

If you have an ethernet cable that can link both machines, easiest way is booting the USB installer on the XP laptop, then instead of running "setup" run "pxesetup". The installer will help you make of the XP laptop a PXE server (not changing anything on it besides that). When it'll be running, just wire link both laptops and start the Dell inspiron. You'll be greeted by Slackware installer that will allow you to download the packages from the XP laptop.

Of course, first set the BIOS of the Dell inspiron to PXE booting.

Last edited by Didier Spaier; 02-03-2014 at 09:24 AM.
 
Old 02-03-2014, 02:32 PM   #3
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Hi SAJM, welcome to LQ.

If you have an ethernet cable that can link both machines, easiest way is booting the USB installer on the XP laptop, then instead of running "setup" run "pxesetup". The installer will help you make of the XP laptop a PXE server (not changing anything on it besides that). When it'll be running, just wire link both laptops and start the Dell inspiron. You'll be greeted by Slackware installer that will allow you to download the packages from the XP laptop.

Of course, first set the BIOS of the Dell inspiron to PXE booting.

Thanks for the reply.

I tried what you suggested. I could mount the C: drive from my XP laptop OK as an ntfs sda device. I did an "ls" and see the contents of the c: drive but I could not get the PXEsetup to recognise the directory where slack was. It kept saying there was no kernel there. The directory in question is an iso download from a slackware recommended torrent. No reason to suspect it is incomplete or corrupted.
 
Old 02-03-2014, 04:08 PM   #4
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,246

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Quote:
Originally Posted by SAJM View Post
I did an "ls" and see the contents of the c: drive but I could not get the PXEsetup to recognise the directory where slack was. It kept saying there was no kernel there. The directory in question is an iso download from a slackware recommended torrent. No reason to suspect it is incomplete or corrupted.
That looks a bit strange. Once logged in the installer you should make two mount points, one for the NTFS partition and one for the ISO, mount the NTFS partition, then the ISO. e.g.:
Code:
mkdir /XP
mkdir /ISO
mount /dev/sda1 /XP # you can check partition's name with cfdisk first
mount /XP/path/to/the/ISO /ISO
Then run pxesetup and choose as SOURCE a pre-mounted directory, that will be either /ISO/slackware or /ISO/slackware64 depending if you downloaded slackware-14.1 or slackware64-14.1.

Last edited by Didier Spaier; 02-03-2014 at 04:19 PM.
 
Old 02-03-2014, 06:32 PM   #5
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
That looks a bit strange. Once logged in the installer you should make two mount points, one for the NTFS partition and one for the ISO, mount the NTFS partition, then the ISO. e.g.:
Code:
mkdir /XP
mkdir /ISO
mount /dev/sda1 /XP # you can check partition's name with cfdisk first
mount /XP/path/to/the/ISO /ISO
Then run pxesetup and choose as SOURCE a pre-mounted directory, that will be either /ISO/slackware or /ISO/slackware64 depending if you downloaded slackware-14.1 or slackware64-14.1.
I've done all that, the PXE runs on my XP laptop and the Del laptop boots up on the XP laptop but it cannot find the kernel. I have noticed that PXEsetup says it will work on Linux or FAT partitions, it makes no reference to NTFS. PXEsetup will simply not recognise the "slack" directory on my c: drive. I guess I'm snookered!
 
Old 02-03-2014, 11:56 PM   #6
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,246

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Quote:
Originally Posted by SAJM View Post
PXEsetup will simply not recognise the "slack" directory on my c: drive
??? It shouldn't have to, as the ISO is mounted in a RAM filesystem (provided you choose as SOURCE a pre-mounted directory as indicated in my previous post, not a hard drive partition).
 
Old 02-04-2014, 12:19 PM   #7
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
mkdir /XP
mkdir /ISO
mount /dev/sda1 /XP # you can check partition's name with cfdisk first
mount /XP/path/to/the/ISO /ISO
I don't get it, I just don't get it.

Let's go back to the beginning.

I have an xp laptop with slack 14.1 in a directory "slackware" on the C: drive

I load the xp laptop with linux from a usb stick.

On that machine I create 2 directories.

mkdir xp
mkdir slack

Then I mount -t ntfs /dev/sda2 xp

If I change to the xp directory and do ls I can see the contents, including slackware.

Now if I try mount /xp/slackware slack or mount /dev/sda2/slackware slack or any similar combination I get "not a block device"

Surly the kernel should be coming from the usb stick not the iso package which presumably has to be unpacked first.

I am guessing that my depth of knowledge is just not up to it. Am I wasting my time here?

Last edited by SAJM; 02-04-2014 at 12:35 PM. Reason: added a remark
 
Old 02-04-2014, 02:47 PM   #8
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,246

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Quote:
Originally Posted by SAJM View Post
Let's go back to the beginning.
Yes, let's do that.

Theory

C: represents a partition on the hard disk of your xp laptop.

Under Linux the same hard disk partition is named instead /dev/sda1 or /dev/sda2 for instance.

Now, when you launch the installer, at first it doesn't make use of your hard disk at all. Basically, what it does is:
  1. Create a file system in Random Access Memory or RAM (that is called for that reason an initramfs), and put in it all that's necessary to perform the installation (a kernel + modules, programs and files).
  2. Allow you to start the installation process running setup.
  3. Set the target hard disk partition (where the new Linux system will be installed).
  4. Ask for the source (where are the packages to be installed).
  5. Install the packages.
  6. Configure the new system.
Now if instead of setup you type pxesetup at step #2, the installer does what follows instead of steps # 3 through 6:
  • Set up on the first computer a PXE server, i.e. a server able to provide to another computer what it needs to boot (and possibly, as in our case, run an installer).
  • Check that the server has all it will need to provide to the other computer, in order for this other computer to perform the installation: the installer itself, a kernel and packages.
  • Start the PXE server, that is then able to answer requests from the other computer(s).
Please note that all that is done in RAM, nothing is modified in the first computer's hard disk.

Now, let's link both computers with an Ethernet cable and do what follows on the second computer:
  • Set up the BIOS so that the computer will first try to make a PXE (or network) boot.
  • (restart) the second computer: that will send a request to the first computer to provide what the second needs to boot.
  • The first computer (the XP laptop in your case) will the send the installer + the kernel and modules.
  • The second computer will then boot from that installer and then go through steps #2 through #6 already described. At step #5 the first computer will send the packages to be installed.

Practice

Do this:
  • Plug in the Slackware USB installer on the xp laptop.
  • Switch this laptop on.
  • When asked by the installer, login as "root".
  • Then type following commands (please note that you are actually making the directories and mounting the devices in RAM, not on the hard disk)
Code:
fdisk -l # To check what is the name of C: under Linux
mkdir   /XP
mkdir   /ISO
mount /dev/sda1   /XP # If C: is not /dev/sda1, adapt accordingly
# Check where is the DVD ISO file swith "ls /XP"
mount /XP/path/to/the/ISO   /ISO
  • Type pxesetup
  • When asked, choose as SOURCE a pre-mounted directory, that will be either /ISO/slackware or /ISO/slackware64 depending if you downloaded slackware-14.1 or slackware64-14.1.
  • Start the PXE server.
  • Link the two computers with an Ethernet cable.
  • If not already done set the BIOS of the second computer to try first PXE booting.
  • (Re)start the second computer.You should then see the greeting screen of the installer.
  • Proceed to installation on the second computer.

Last edited by Didier Spaier; 02-04-2014 at 05:30 PM. Reason: wording changed
 
Old 02-04-2014, 07:45 PM   #9
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
Yes, let's do that.

Theory

C: represents a partition on the hard disk of your xp laptop.

Under Linux the same hard disk partition is named instead /dev/sda1 or /dev/sda2 for instance.

Now, when you launch the installer, at first it doesn't make use of your hard disk at all. Basically, what it does is:
  1. Create a file system in Random Access Memory or RAM (that is called for that reason an initramfs), and put in it all that's necessary to perform the installation (a kernel + modules, programs and files).
  2. Allow you to start the installation process running setup.
  3. Set the target hard disk partition (where the new Linux system will be installed).
  4. Ask for the source (where are the packages to be installed).
  5. Install the packages.
  6. Configure the new system.
Now if instead of setup you type pxesetup at step #2, the installer does what follows instead of steps # 3 through 6:
  • Set up on the first computer a PXE server, i.e. a server able to provide to another computer what it needs to boot (and possibly, as in our case, run an installer).
  • Check that the server has all it will need to provide to the other computer, in order for this other computer to perform the installation: the installer itself, a kernel and packages.
  • Start the PXE server, that is then able to answer requests from the other computer(s).
Please note that all that is done in RAM, nothing is modified in the first computer's hard disk.

Now, let's link both computers with an Ethernet cable and do what follows on the second computer:
  • Set up the BIOS so that the computer will first try to make a PXE (or network) boot.
  • (restart) the second computer: that will send a request to the first computer to provide what the second needs to boot.
  • The first computer (the XP laptop in your case) will the send the installer + the kernel and modules.
  • The second computer will then boot from that installer and then go through steps #2 through #6 already described. At step #5 the first computer will send the packages to be installed.

Practice

Do this:
  • Plug in the Slackware USB installer on the xp laptop.
  • Switch this laptop on.
  • When asked by the installer, login as "root".
  • Then type following commands (please note that you are actually making the directories and mounting the devices in RAM, not on the hard disk)
Code:
fdisk -l # To check what is the name of C: under Linux
mkdir   /XP
mkdir   /ISO
mount /dev/sda1   /XP # If C: is not /dev/sda1, adapt accordingly
# Check where is the DVD ISO file swith "ls /XP"
mount /XP/path/to/the/ISO   /ISO
  • Type pxesetup
  • When asked, choose as SOURCE a pre-mounted directory, that will be either /ISO/slackware or /ISO/slackware64 depending if you downloaded slackware-14.1 or slackware64-14.1.
  • Start the PXE server.
  • Link the two computers with an Ethernet cable.
  • If not already done set the BIOS of the second computer to try first PXE booting.
  • (Re)start the second computer.You should then see the greeting screen of the installer.
  • Proceed to installation on the second computer.
Well I must have tried a thousand combinations of the above. I cannot mount the slackware directory because of the errors I listed in an earlier post. In the end I ignored the error messages and let the TFTP server run anyway. It connected to the laptop and loaded pxelinux.cfg. At the boot: prompt it gave the error

"could not find kernel image: kernels/huge.s/bzImage
 
Old 02-06-2014, 10:40 AM   #10
linuxtinker
Member
 
Registered: Dec 2013
Location: NJ / USA
Distribution: Slackware 64 -Current
Posts: 59

Rep: Reputation: 6
I am not sure how you created the Bootable Stick but If the stick has enough room you can copy the slackware tree to the stick. I did an install yesterday from a usb stick . I followed http://alien.slackbook.org/blog/inst...b-thumb-drive/ and then used an archive manager, that can read .ISO , to put the slackware install files into the usb itself .
 
Old 02-06-2014, 12:09 PM   #11
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linuxtinker View Post
I am not sure how you created the Bootable Stick but If the stick has enough room you can copy the slackware tree to the stick. I did an install yesterday from a usb stick . I followed http://alien.slackbook.org/blog/inst...b-thumb-drive/ and then used an archive manager, that can read .ISO , to put the slackware install files into the usb itself .
The problem is the usbstick is too small. I can load linux setup OK but cannot access my XP laptop that contains the Linux ISO files.
 
Old 02-06-2014, 12:55 PM   #12
linuxtinker
Member
 
Registered: Dec 2013
Location: NJ / USA
Distribution: Slackware 64 -Current
Posts: 59

Rep: Reputation: 6
I used a 2gb stick, I didnt include the src files and left out the KDI and KDE Stuff . I was able to add them later after I did the initial install. You can also look into installing SalixOS and then converting it to a true slackware install. There was a thread already posted on how to do that.
 
Old 02-06-2014, 04:51 PM   #13
SAJM
Member
 
Registered: Nov 2012
Location: Essex UK
Distribution: Slackware
Posts: 49

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by linuxtinker View Post
I used a 2gb stick, I didnt include the src files and left out the KDI and KDE Stuff . I was able to add them later after I did the initial install. You can also look into installing SalixOS and then converting it to a true slackware install. There was a thread already posted on how to do that.
Salix Ratpoison may just fit on my USB stick. I'll give it a go.
 
Old 02-06-2014, 11:03 PM   #14
linuxtinker
Member
 
Registered: Dec 2013
Location: NJ / USA
Distribution: Slackware 64 -Current
Posts: 59

Rep: Reputation: 6
Here is a link to covert it to Slackware http://straightedgelinux.com/blog/howto/salix.html
 
Old 02-07-2014, 07:29 AM   #15
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,246

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
I've cooked a mini iso that can be used to make an USB installer. It includes only packages series a, ap and n so its size is less than 400 mega bytes. Do this:
Code:
wget http://slint.fr/testing/slint-14.1-dvd.iso
wget http://slint.fr/testing/slint-14.1-dvd.iso.md5
md5sum -c http://slint.fr/testing/slint-14.1-dvd.iso.md5 #answer should be "OK"
# now, plug-in you USB stick (512MB is enough)
# check the name of the USB device.
cat /proc/partitions # I'll assume device name is /dev/sdb, but avoid wiping out a hard disk with following command, so...
# CHECK THE NAME and adapt accordingly. YOU HAVE BEEN WARNED.
su # we need to be root now
dd if=slint-14.1-dvd.iso of=/dev/sdb bs=1M
Now, boot off the USB stick to install Slackware on the other computer ("full" install, that will only include packages series a, ap and n) and reboot. During installation, for your network setting, choose Static IP or DHCP as you don't have the packages needed by NetworkManager yet.Then as root do this:
Code:
# You'll need this package from the l series because slackpkg uses awk, that needs it:
wget http://mirrors.slackware.com/slackware/slackware-14.1/slackware/l/mpfr-3.1.2-i486-1.txz
installpkg mpfr-3.1.2-i486-1.txz
nano /etc/slackpkg mirrors
# uncomment one (good) mirror for slackware-14.1 and exit
nano /etc/blacklist
# include what you don't want, e.g. kdei and exit
slackpkg update gpg
slackpkg update
slackpkg install slackware
You should then have a full Slackware-14.1, minus the packages or series of which you wrote the names in /etc/slackpkg/blacklist.

Last edited by Didier Spaier; 02-07-2014 at 10:59 AM.
 
2 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
Easy-Peasy USB install of slack-based zorOS-3.6 for grub/syslinux usb noburn iso2 cd linus72 Linux - General 0 07-16-2009 09:31 PM
Install slack from usb hdd using the slack dvd iso? okos Slackware 6 01-01-2009 02:06 AM
How can i install slack on USB disk sharapchi Slackware 2 12-08-2006 03:58 AM
slack 9.1 usb-cdrom parameters for install spd28 Slackware 2 10-29-2003 03:41 PM
slack 9.1 usb-cdrom parameters for install spd28 Linux - Newbie 1 10-27-2003 06:54 PM


All times are GMT -5. The time now is 01:26 PM.

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