LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-19-2012, 12:00 AM   #1
katokato
Member
 
Registered: May 2011
Location: united states
Distribution: i have used ubuntu, but want to switch to slackware (ubuntu is too user friendly).
Posts: 62

Rep: Reputation: 0
how to install slackware from a usb drive


so i tried to copy the contents of the slackware iso onto the usb, then
i went and renamed the isolinux.cfg to syslinux.cfg
then i downloaded the syslinux zip from kernel.org
then i navigated to the syslinux folder that i downloaded, and into win32 (...\syslinux\win32) and ran "syslinux.exe K:" in the commandprompt.
when i try to boot my usb to install, it tells me that there is no media to use.

is there another way to do this or am i doing it wrong?

i need to get slackware on my laptop and my burner crapped out.
 
Old 01-19-2012, 12:53 AM   #2
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-C ML
Posts: 885

Rep: Reputation: 78
I recenty did it with 2 usb sticks on a Dell 630 with a broken dvd drive.

1st stick) image
http://slackware.org.uk/slackware/sl...rs/usbboot.img
2nd stick) the tree
http://slackware.org.uk/slackware/sl...t/slackware64/
(I copied the tree from my local mirror.)

Boot from the stick with the image. (bios must be set to boot from usb)
Mount the 2nd stick and use the install from “mounted hard drive” or “partition” option. (can't remember which it was.)

Hope this helps. And I also hope I'm remembering this right.
 
Old 01-19-2012, 09:14 AM   #3
katokato
Member
 
Registered: May 2011
Location: united states
Distribution: i have used ubuntu, but want to switch to slackware (ubuntu is too user friendly).
Posts: 62

Original Poster
Rep: Reputation: 0
for usbootimg do i just unpack the iso and copy the contents onto the flashdrive?
and what format do i partition the usb with? fat32, ext?

Last edited by katokato; 01-19-2012 at 09:16 AM.
 
Old 01-19-2012, 09:36 AM   #4
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,064

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
there are several ways to do this, some have scripts, etc
but this is how I do it, and I dont have windows so do it from your Ubuntu install or any livecd that has syslinux and a fat32 usb

first get a app called isomaster from ubuntu repos or whatever distro you have
open a terminal and become root (su + password)
type in isomaster, when it opens find the slackware cd/dvd and open it with isomaster
extract the initrd.img, kernel (/kernels/hugesmp.s/bzImage) and isolinux.cfg from the iso to usb

(if you dont have isomaster just mount the iso somewhere and copy kernel/initrd/isolinux.cfg to somewhere)
mkdir /tmp/iso
mount -o loop /tmp/slackware.iso /tmp/iso
cp -r /tmp/iso/isolinux/isolinux.cfg /media/disk
cp -r /tmp/iso/isolinux/initrd.img /media/disk
cp -r /tmp/iso/kernels/hugesmp.s/bzImage /media/disk

rename isolinux.cfg to syslinux.cfg
edit syslinux.cfg and make it like this

label slack
kernel /bzImage
append initrd=/initrd.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=hugesmp.s

notice that the kernel and initrd are at top level of usb, not in any folders...

now copy the slackware cd/dvd to the iso
cp -r /path/to/slackware-iso /path/to/usb
or say usb is sdb1 and is mounted on /media/disk and slackware iso is in /tmp
cp -r /tmp/slackware.iso /media/disk

so on your usb should be bzImage, initrd.img, syslinux.cfg, and the slackware.iso

install syslinux to usb with
syslinux /dev/sdb1

boot off usb, login, and type in these commands

fdisk -l (to identify usb and hdd partitions)
additionally run cfdisk, etc first if you need to create partitions

mkdir /source
mkdir /iso
mount /dev/sdb1 /source
mount /source/slackware.iso /iso

then enter setup by typing "setup"
choose language, partition, etc
when it gets to part about installing packages, choose "install from pre-mounted directory"
enter "/iso/slackware" without quotes

it should mount the iso read-only and ask what packages you wish to install, etc
thats it

Last edited by linus72; 01-19-2012 at 09:46 AM.
 
Old 01-19-2012, 09:59 AM   #5
NyteOwl
Member
 
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512

Rep: Reputation: 139Reputation: 139
An excellent how-to for Slackware isntalls from USB

http://alien.slackbook.org/blog/inst...b-thumb-drive/
 
1 members found this post helpful.
Old 01-19-2012, 09:10 PM   #6
katokato
Member
 
Registered: May 2011
Location: united states
Distribution: i have used ubuntu, but want to switch to slackware (ubuntu is too user friendly).
Posts: 62

Original Poster
Rep: Reputation: 0
so i did what you told me except i used windows, since i dont have linux

so i did what you said:

mount iso file on a virtual drive

copy contents initrd.img, bzImage and isolinux.cfg to usb drive (with fat32)

rename syslinux.cfg

delete all contents of syslinux.cfg and put in

label slack
kernel /bzImage
append initrd=/initrd.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=hugesmp.s

save syslinux.cfg

put slackware iso on usb drive

run syslinux.exe K: (my usb drive) to put ldlinux.sys on my usb drive

and then when i put my usb into my laptop and try to boot it it says theres no bottable media?






---------------------edit

so i realized i had to rename the usb drive to slack
but then when i boot with my laptop it says pxe broadcom, media test failure, then it says no bootable devices.
so what must i be doing wrong?
do i have to use usbboot.img?
do i have to extract the slackware iso and put the actual folders on the usb drive?

Last edited by katokato; 01-19-2012 at 09:19 PM.
 
Old 01-19-2012, 09:58 PM   #7
katokato
Member
 
Registered: May 2011
Location: united states
Distribution: i have used ubuntu, but want to switch to slackware (ubuntu is too user friendly).
Posts: 62

Original Poster
Rep: Reputation: 0
i also tried to follow step 2. of this article using usbboot.img and writing it with win32 image writer: http://www.webupd8.org/2009/04/4-way...-live-usb.html

it says boot failed when i try to boot with usb.

could it be that my usb drive is bad?

ive noticed that when i did that there was no bzimage in the usb drive, im gonna add that file in right now and see what happens; edit i cant do that because it says there no room it says there is only 23mb on my usb drive when it really is 3.8 gigs, but when i reformat it it goes back to 3.8 gigs total.

Last edited by katokato; 01-19-2012 at 10:04 PM.
 
Old 01-20-2012, 02:40 AM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,038
Blog Entries: 52

Rep: Reputation: Disabled
Another solution in this post:
http://www.linuxquestions.org/questi...9/#post4579567
 
Old 01-20-2012, 07:05 AM   #9
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,064

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
OK
a couple pointers, dont delete everything in the syslinux.cfg
just change
label hugesmp.s
kernel /kernels/hugesmp.s/bzImage
append initrd=initrd.img

to

label hugesmp.s
kernel /bzImage
append initrd=/initrd.img load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=hugesmp.s

2nd, you should probably use a linux livecd both for installing syslinux to usb and for using Gparted or similar to check usb, make sure bootable flag is on, etc
you dont have to rename usb either.

if you see in attached pic boot flag must be on, see right corner, syslinux must be installed and syslinux.cfg needs to be as original except for kernel/initrd entries as above

make sure your usb is formatted fat32 and is clean
Attached Images
File Type: png gparted.png (42.5 KB, 19 views)

Last edited by linus72; 01-20-2012 at 01:48 PM.
 
Old 01-21-2012, 01:52 AM   #10
katokato
Member
 
Registered: May 2011
Location: united states
Distribution: i have used ubuntu, but want to switch to slackware (ubuntu is too user friendly).
Posts: 62

Original Poster
Rep: Reputation: 0
so i decided to get some dvds at the store and install my slackware

it was working fine but it just crashed during installation -- fixed, since it was sitting on my bed it was overheating (dam laptops!) so i raised it by putting a few cups underneath it.)

once i get slackware going im going to follow the knowledge youve given me to make a usb installation in case i need it again (dont have to worry about scratches)

thanks for your help

=)

-kelvin
 
Old 01-21-2012, 09:03 AM   #11
fb0x
Member
 
Registered: Aug 2011
Location: Serbia
Distribution: Slackware
Posts: 30

Rep: Reputation: Disabled
Put usbboot.img on usb http://slackware.osuosl.org/slackwar...rs/usbboot.img
Code:
dd if=/path/to/usbboot.img of=/dev/sdxx bs=1MB
Boot usb and install from http/ftp server.
 
  


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
Install slackware on a USB drive without creating an USB livecd Barx Slackware 4 06-28-2010 01:31 PM
Install slackware from a USB Flash Drive compgenius999 Linux - Newbie 1 09-21-2009 06:45 AM
Install slackware from USB drive. kd5pbo Slackware - Installation 2 10-05-2006 05:53 AM
how to install a usb hard drive in slackware 10.1...? sugar2 Linux - Hardware 7 02-15-2006 01:43 PM
Slackware 10.1 Install on External USB Drive SlammedDime Slackware 11 06-21-2005 02:40 AM


All times are GMT -5. The time now is 11:27 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