LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-21-2015, 03:17 AM   #1
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
Question USB MultiBoot for slackware install discs?


Hello!
I start new topics about subj some times in last years, but as i remember - not get any solid answer about that.
The question is: what way i can create bootable usb drive, that contains both slackware installers: x86 and x64
I do some research, and find there some multiboot managers:

http://www.pendrivelinux.com/multibo...sb-from-linux/

http://www.pendrivelinux.com/yumi-mu...t-usb-creator/

There is written:
" Installing Linux from the YUMI created USB Drive to a Hard Drive is not officially supported. If the installer portion of any Live Linux distro does work, consider it a bonus."

I plan to try it when next Slack version was out, but maybe anyone already have experience with slackware installers from that multiboot managers?
 
Old 01-21-2015, 11:34 AM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
If I got you well you want to boot several isos from same usb drive.. i achieved this with app multisystem. But note that when it comes to 32&64bit on the same drive it may complocate about the same name in boot menu.
 
Old 01-21-2015, 12:09 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
You could mount an ISO installer for 64 bit, copy all files somewhere, add a /slackware directory copied from a 32 bit ISO, add the 32-bit kernels under /kernels, edit under /isolinux isolinux.cfg to include stanzas for 32-bit kernels (you'll also need to distinguish the labels for 32 vs 64 bits), message.txt and f2.txt to inform the user, add there a 32-bit initrd, rebuild the ISO, run isohybrid on it, dd it on a big enough USB stick.

Technically not difficult, but it's simpler to just have two USB sticks at hand IMO

Last edited by Didier Spaier; 01-21-2015 at 12:22 PM. Reason: "add there a 32-bit initrd, " added
 
Old 01-21-2015, 08:19 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
I had both the 32bit and 64 bit iso files of Slackware 14 so I created two partitions on a flash drive. The first was a 200MB boot partition and the second was an ext2 partition. It should not be necessary to create a separate boot partition. Then installed Grub2 to the mbr of the flash pointing to the partition with the boot directory.

Next I created two directories on the ext2 partition, slack32 and slack64. Then loop mounted each the 32bit slack iso file and copied all its contents to the slack32 directory on the flash and repeated the process for the 64bit iso copying the extracted contents to slack64 on the flash drive. I used the menuentries below to boot each.

Quote:
menuentry 'Slack-32' {
set root='(hd0,2)'
linux /slack32/kernels/huge.s/bzImage load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=huge.s
initrd /slack32/isolinux/initrd.img
}
menuentry 'Slack-64' {
set root='(hd0,2)'
linux /slack64/kernels/huge.s/bzImage load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=huge.s
initrd /slack64/isolinux/initrd.img
}
Both booted to the installer and I started the install for each to test. I didn't finish either install as I already have Slackware 14 installed so I don't know if it will be successful. Separate flash drives would be a lot easier.

Last edited by yancek; 01-21-2015 at 08:25 PM.
 
Old 01-21-2015, 10:36 PM   #5
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
I have a multiboot USB stick that can boot with UEFI 64-bit and BIOS 32/64-bit modes for quite a few distros including Slackware 14.1 32/64-bit. I've tested it on an old Thinkpad (32-bit BIOS), a MacBook (64-bit EFI of some sort) and my current PC (64-bit UEFI).

For this I used:
  1. a MBR FAT32 formatted USB stick
  2. syslinux 6.03, with the bootloaders, library modules and config files for EFI and BIOS installed respectively in /efi/boot and /syslinux
  3. Slackware 14.1 and Slackware64-14.1 (ISO or directory tree, doesn't matter), extracted respectively to /slackware-14.1 and /slackware64-14.1, and the two initrd.img extracted from usb-and-pxe-installers/usbboot.img (I haven't tested whether isolinux/initrd.img does the same job, if it does work then I've been working too hard).
This boots and installs properly, and the correct Slackware folder is located automatically by the installers.

The relevant parts from my /syslinux/syslinux.cfg:
Code:
UI menu.c32
PROMPT 0
TIMEOUT 100
ONTIMEOUT slack_auto

MENU DEFAULT slack_auto

# Slackware related
LABEL slack_auto
MENU LABEL Slackware - Autoload depending on architecture
KERNEL	ifcpu.c32
APPEND	64 -- slack64 -- slack32_smp

LABEL slack64
MENU LABEL Slackware 64-bit
KERNEL	/slackware64-14.1/kernels/huge.s/bzImage
INITRD	/slackware64-14.1/kernels/initrd.img
APPEND	load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=huge.s nomodeset

LABEL slack32_smp
MENU LABEL Slackware 32-bit SMP
KERNEL	/slackware-14.1/kernels/hugesmp.s/bzImage
INITRD	/slackware-14.1/kernels/initrd.img
APPEND	load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=hugesmp.s nomodeset

LABEL slack32_nonsmp
MENU LABEL Slackware 32-bit Non-SMP (Use if other options fails)
KERNEL	/slackware-14.1/kernels/huge.s/bzImage
INITRD	/slackware-14.1/kernels/initrd.img
APPEND	load_ramdisk=1 prompt_ramdisk=0 rw printk.time=0 SLACK_KERNEL=huge.s nomodeset

Last edited by turtleli; 01-21-2015 at 10:39 PM. Reason: Clarity and sample syslinux.cfg
 
Old 01-22-2015, 01:00 AM   #6
Teufel
Member
 
Registered: Apr 2012
Distribution: Gentoo
Posts: 616

Rep: Reputation: 142Reputation: 142
Grub can boot iso directly, without unpacking it to pen drive.
You could just put two ISOs (32/64) to the pen drive, install Grub to MBR and add two menuentries for 32 and 64 iso to grub.cfg
This way you could get two absolutely separated installation environments

I created such a pen drive for Gentoo, Gparted and Mint. To be honest I didn't try it with Slackware ISO.

Last edited by Teufel; 01-22-2015 at 01:03 AM.
 
Old 01-22-2015, 01:10 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
I tried the method I indicated in my post above (#4) and installed without any problems.

Quote:
Grub can boot iso directly, without unpacking it to pen drive.
Grub2 does have that capability but the OS needs to be bootable as an iso and not many are. Most of the major Ubuntus and some tools like Gparted, Parted Magic, SystemRescueCD and a few others. I haven't tried Slackware from an iso either.
 
Old 01-23-2015, 04:14 AM   #8
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Original Poster
Rep: Reputation: 73
ok, thanks to all for valuable information. will to try when have a bit of spare time
 
Old 01-23-2015, 09:32 AM   #9
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
The Slackware docs page has some info on several methods including installing from the iso on the flash drive, near the bottom of the page at the link below.

http://docs.slackware.com/howtos:sla...stall_from_hdd
 
  


Reply

Tags
installer, multiboot, slackware, usb



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
Want to install Debian and Slackware and keep my Windows (multiboot) tin Linux - Distributions 13 05-18-2010 04:06 PM
Quick question about the install discs (Slackware 12.2) Innervision Slackware 4 06-03-2009 05:03 PM
how install Slackware from sources discs? azastro Slackware 3 11-18-2006 03:49 AM

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

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